-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KUBECONFIG somehow reverted back to the original path in CI #3501
Comments
@prietyc123 Branch https://github.com/openshift/odo/tree/multistage has been created. You can experiment your stuff in no time. |
I was thinking to use Hence we have to work with the same process as we are doing. What we can do is if the changes are not breaking master and valid, merge it asap or forcefully to our repo. It will reduce the unwanted wastage of time. |
I have observed that the However still I am not clear what is reverting it back to the original kubeconfig from the temporary one . @kadel @girishramnani @mohammedzee1000 @amitkrout Can you please share thoughts on this? |
i am looking into it |
/kind test @prietyc123 Please attach kind/test label into the issues that are related to test infra test suite etc... |
The scope of the exported variable lives within the shell script instance while calling the script through make, so it does not reflect in the current shell. For example
This need to be fixed through MAKEFILE itself |
You should be able to do something like this https://github.com/openshift/odo/blob/e367c334c2e6a15f584821c34af4659bb2658a30/Makefile#L35 |
Me and Amit spend some time to get it done through the makefile. But we couldn't breakthrough it. Our plan was to export a
Each time it was throwing runtime error of The test script used:
Also we discussed the alternative way. But fixing it through makefile is a ideal solution IMO. Anyway let me explore it more on fixing it. Thanks @amitkrout for the input. |
Yes, we explored this option as well but didn't find any luck. The steps we followed:
Running Test script:
Executed output:
Ideally it should overwrite the |
@prietyc123 In make target once the child process starts through the So the suggested way you are looking for can not be implemented through passing variable in make target. But it can be doable through modifying few more scripts. For example Replace https://github.com/openshift/odo/blob/master/scripts/configure-installer-tests-cluster.sh#L17 with
And at the end of the file add a KUBECONFIG clean up step for the child instance
And the rest change you have tested through the pr https://github.com/openshift/odo/pull/3503/files#diff-7b5f3e630b18a516b0827419c75d2234R17-R21. Please create a separate pr whit all these changes i suggested. |
Hmm… Then i am pretty sure we have never tested our test script as a developer in prow CI. Let me confirm it through my debug pr #3503. |
Right, the child recipes can not be copied to the parent shell. i can see it locally too
|
yup, we never tested our test script from a developer login - https://storage.googleapis.com/origin-ci-test/pr-logs/pull/openshift_odo/3503/pull-ci-openshift-odo-master-v4.3-integration-e2e/1281079863381331968/artifacts/integration-e2e/container-logs/test.log |
/kind bug
What versions of software are you using?
Operating System:
supported
Output of
odo version
:master
How did you run odo exactly?
Tests running on openshift repo verifies that https://deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gcs/origin-ci-test/pr-logs/pull/openshift_release/9431/rehearse-9431-periodic-ci-openshift-odo-master-v4.3-integration-e2e-periodic-steps/1280376323939766272#1:build-log.txt%3A323
Though we are already setting up the
KUBECONFIG
environment var to a temporary directory which can be seen from test logs also.Not sure whether it is getting reverted back or it is a problem from our odo side. I will send a pr to confirm this weird behaviour on CI.
Actual behavior
Though
KUBECONFIG
is set to a temporary file but during test run originalKUBECONFIG
getting fetched.Expected behavior
KUBECONFIG
should not get reverted to original one.Any logs, error output, etc?
https://deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gcs/origin-ci-test/pr-logs/pull/openshift_release/9431/rehearse-9431-periodic-ci-openshift-odo-master-v4.3-integration-e2e-periodic-steps/1280376323939766272#1:build-log.txt%3A323
The text was updated successfully, but these errors were encountered: