Repository navigation
Closed
Labels
component/internal-toolskind/test-flakeCategorizes issue or PR as related to test flakes.priority/P1
Description
I think this happened because the tag is on the stage branch but this PR is against master?
########## STARTING STAGE: BUILD AN OPENSHIFT-ANSIBLE RELEASE ##########
+ [[ -s /var/lib/jenkins/jobs/test_pull_request_openshift_ansible_extended_conformance_install_with_status_check/workspace/activate ]]
+ source /var/lib/jenkins/jobs/test_pull_request_openshift_ansible_extended_conformance_install_with_status_check/workspace/activate
++ export VIRTUAL_ENV=/var/lib/jenkins/origin-ci-tool/b58d70e4ba8547fb716da04deb467ce17ccf4345
++ VIRTUAL_ENV=/var/lib/jenkins/origin-ci-tool/b58d70e4ba8547fb716da04deb467ce17ccf4345
++ export PATH=/var/lib/jenkins/origin-ci-tool/b58d70e4ba8547fb716da04deb467ce17ccf4345/bin:/sbin:/usr/sbin:/bin:/usr/bin
++ PATH=/var/lib/jenkins/origin-ci-tool/b58d70e4ba8547fb716da04deb467ce17ccf4345/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_with_status_check/workspace/.config
++ OCT_CONFIG_HOME=/var/lib/jenkins/jobs/test_pull_request_openshift_ansible_extended_conformance_install_with_status_check/workspace/.config
++ mktemp
+ script=/tmp/tmp.SXCuZksfW9
+ cat
+ chmod +x /tmp/tmp.SXCuZksfW9
+ scp -F ./.config/origin-ci-tool/inventory/.ssh_config /tmp/tmp.SXCuZksfW9 openshiftdevel:/tmp/tmp.SXCuZksfW9
+ ssh -F ./.config/origin-ci-tool/inventory/.ssh_config -t openshiftdevel 'bash -l -c "/tmp/tmp.SXCuZksfW9"'
+ cd /data/src/github.com/openshift/openshift-ansible
+ tito_tmp_dir=tito
+ mkdir -p tito
+ tito tag --offline --accept-auto-changelog
Creating output directory: /tmp/tito
Tagging new version of openshift-ansible: 3.6.62-1 -> 3.6.63-1
Traceback (most recent call last):
File "/usr/bin/tito", line 23, in <module>
CLI().main(sys.argv[1:])
File "/usr/lib/python2.7/site-packages/tito/cli.py", line 202, in main
return module.main(argv)
File "/usr/lib/python2.7/site-packages/tito/cli.py", line 666, in main
return tagger.run(self.options)
File "/usr/lib/python2.7/site-packages/tito/tagger/main.py", line 114, in run
self._tag_release()
File "/usr/lib/python2.7/site-packages/tito/tagger/main.py", line 136, in _tag_release
self._check_tag_does_not_exist(self._get_new_tag(new_version))
File "/usr/lib/python2.7/site-packages/tito/tagger/main.py", line 501, in _check_tag_does_not_exist
raise Exception("Tag %s already exists!" % new_tag)
Exception: Tag openshift-ansible-3.6.63-1 already exists!
++ export status=FAILURE
++ status=FAILURE
+ set +o xtrace
########## FINISHED STAGE: FAILURE: BUILD AN OPENSHIFT-ANSIBLE RELEASE ##########
Metadata
Metadata
Assignees
Labels
component/internal-toolskind/test-flakeCategorizes issue or PR as related to test flakes.priority/P1
Activity
sdodson commentedon May 10, 2017
I think I've fixed this by tagging stage 3.6.65.0 and master 3.6.66
stevekuznetsov commentedon May 10, 2017
Yeah, we need to be using that four-number workaround until we have a better solution, but this isn't necessarily a tooling or testing issue -- we just need to have a method for making unique tags.
sdodson commentedon May 10, 2017
Well, we should use tools to handle the stage branching, so just making sure you guys are aware of that and we add .0 to the current version while branching and tagging stage.
stevekuznetsov commentedon May 10, 2017
Is this problem solved? Are the people reporting this above doing so from old failures? Do we need to take action right now?
sdodson commentedon May 10, 2017
Those are old failures. I fixed it at
tnozicka commentedon May 31, 2017
seems like it's still there: https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_conformance_install_update/713/console
mfojtik commentedon May 31, 2017
Note that this happened exactly when the new tag was cut for OSE and the versions in error matches, so maybe just bad timing.
tnozicka commentedon May 31, 2017
#14322 hit it again - https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/853/
This seem to be serious :)
sdodson commentedon May 31, 2017
On stage branch set rpm specfile version to 3.6.88.0, tag and pushed to github.
On master branch set rpm specfile version to 3.6.89, tag and pushed to github.
We need to fix the stage branch tooling to append a fourth version segment when forking that branch.
Looks like @jupierce built the jobs for that, assigning to him.
jupierce commentedon May 31, 2017
@sdodson I think the only patch that will hold up through stagecut is adding a .0 to the openshift-ansible.spec in master. A change in the stage branch will be wiped out every time we build stage (since the o-a spec version is always replaced by the ose spec version). When stagecut ends and we return to master, the .0 will similarly be wiped out.
Discussing longer term solutions with @stevekuznetsov to determine the best route.
jupierce commentedon Jun 16, 2017
Should be fixed with openshift-eng/aos-cd-jobs@ca7f5b2
enj commentedon Jun 24, 2017
Seen in #14853 https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1111/
jupierce commentedon Jun 24, 2017
Fixed again. The present workaround relies on careful management of Jenkins job scheduling. Working on a more robust solution.
jupierce commentedon Jun 24, 2017
@stevekuznetsov I think I asked this before during our discussion, but I'll lay it out there again. Addressing this completely outside of CI is tricky. I think a simple and effective approach would be for CI to sed append .1000 to any version it found in openshift-ansible.spec before doing tito tag. This is effectively what has to happen outside of CI to avoid this problem, but performing it outside of CI involves git commits and adds complexity to entering and exiting stagecut.
stevekuznetsov commentedon Jun 24, 2017
Not the cleanest thing in the world but we can try that on Monday.
jupierce commentedon Jun 28, 2017
We should now have a reliable fix in place: