Skip to content
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

flake: python: can't open file 'hack/determine_install_upgrade_version.py': [Errno 2] No such file or directory #13833

Closed
rhcarvalho opened this issue Apr 20, 2017 · 6 comments
Labels
kind/test-flake Categorizes issue or PR as related to test flakes.

Comments

@rhcarvalho
Copy link
Contributor

First seen in openshift/openshift-ansible#3919, https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible_extended_conformance_install_update/118/console

...
########## STARTING STAGE: INSTALL ANSIBLE ATOMIC-OPENSHIFT-UTILS ##########
+ [[ -s /var/lib/jenkins/jobs/test_pull_request_openshift_ansible_extended_conformance_install_update/workspace/activate ]]
+ source /var/lib/jenkins/jobs/test_pull_request_openshift_ansible_extended_conformance_install_update/workspace/activate
++ export VIRTUAL_ENV=/var/lib/jenkins/origin-ci-tool/6a41b1c0e6822ccfb40398a030e16a09894da043
++ VIRTUAL_ENV=/var/lib/jenkins/origin-ci-tool/6a41b1c0e6822ccfb40398a030e16a09894da043
++ export PATH=/var/lib/jenkins/origin-ci-tool/6a41b1c0e6822ccfb40398a030e16a09894da043/bin:/sbin:/usr/sbin:/bin:/usr/bin
++ PATH=/var/lib/jenkins/origin-ci-tool/6a41b1c0e6822ccfb40398a030e16a09894da043/bin:/sbin:/usr/sbin:/bin:/usr/bin
++ unset PYTHON_HOME
++ export OCT_CONFIG_HOME=/var/lib/jenkins/jobs/test_pull_request_openshift_ansible_extended_conformance_install_update/workspace/.config
++ OCT_CONFIG_HOME=/var/lib/jenkins/jobs/test_pull_request_openshift_ansible_extended_conformance_install_update/workspace/.config
++ mktemp
+ script=/tmp/tmp.PuA3PtA4ON
+ cat
+ chmod +x /tmp/tmp.PuA3PtA4ON
+ scp -F ./.config/origin-ci-tool/inventory/.ssh_config /tmp/tmp.PuA3PtA4ON openshiftdevel:/tmp/tmp.PuA3PtA4ON
+ ssh -F ./.config/origin-ci-tool/inventory/.ssh_config openshiftdevel /tmp/tmp.PuA3PtA4ON
+ cd /data/src/github.com/openshift/aos-cd-jobs
+ pkg_name=origin
+ git checkout sjb
+ echo origin
+ echo 'openshift-ansible openshift-ansible-callback-plugins openshift-ansible-docs openshift-ansible-filter-plugins openshift-ansible-lookup-plugins openshift-ansible-playbooks openshift-ansible-roles'
++ cat OPENSHIFT_ANSIBLE_BUILT_VERSION
+ sudo python hack/determine_install_upgrade_version.py atomic-openshift-utils-3.6.30-1.git.0.63e1bed.el7.noarch
python: can't open file 'hack/determine_install_upgrade_version.py': [Errno 2] No such file or directory
++ export status=FAILURE
++ status=FAILURE
+ set +o xtrace
########## FINISHED STAGE: FAILURE: INSTALL ANSIBLE ATOMIC-OPENSHIFT-UTILS ##########
@rhcarvalho rhcarvalho added the kind/test-flake Categorizes issue or PR as related to test flakes. label Apr 20, 2017
@rhcarvalho
Copy link
Contributor Author

rhcarvalho commented Apr 20, 2017

This seems to be more of an issue with CI than a "flake". @stevekuznetsov @jhadvig is it fair to tag it as kind/test-flake and have it here in origin, or should we/I create issues in aos-cd-jobs or other repo next time?

@mfojtik
Copy link
Member

mfojtik commented Apr 20, 2017

Since the missing determine_install_upgrade_version.py file is not part of origin repo, I wouild say this belongs to aos-ci-jobs.

@rhcarvalho
Copy link
Contributor Author

@mfojtik the doubt arises when we consider that AFAIK Rosie only considers flake issues in this repo, and that influences the merge queue process (e.g. for re-triggering merges), at least it is how it affects the merge queue in openshift-ansible, not sure if it is the same for the origin queue.

Then again, if we take a strict interpretation of the label this is issue is not a test flake, but if we expand the interpretation of the label to involve anything that makes a Jenkins job fail for reasons unrelated to the code changes in the PR, then this would make sense, thus my question ;)

@jhadvig
Copy link
Member

jhadvig commented Apr 20, 2017

The issue has been fixed. It was not a flake. It was cause by fact that we moved jobs and scripts from aos-cd-jobs repo branches into master, which deleted all the branches and we didnt have time to adjust those scripts (eg. determine_install_upgrade_version.py) with proper prefix, which is the branch name.
Closing this issue

@jhadvig jhadvig closed this as completed Apr 20, 2017
@jhadvig
Copy link
Member

jhadvig commented Apr 20, 2017

@rhcarvalho next time please ping somebody from the CD team and ask if its worth to open an issue, cause while we are under the infrastructure development these types of mistakes may happen.
And if you want to open an issue open it in a proper repo. Since this is jenskins job related issue, aos-cd-jobs repository should be your first guess.

@stevekuznetsov
Copy link
Contributor

Since this is jenskins job related issue, aos-cd-jobs repository should be your first guess.

They'll probably still want to open it here since the robot wants Origin kind/test-flake issues for re-triggering the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/test-flake Categorizes issue or PR as related to test flakes.
Projects
None yet
Development

No branches or pull requests

4 participants