Skip to content

fix tag used for hourly CI runs #954

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

Merged
merged 4 commits into from
Oct 3, 2022
Merged

fix tag used for hourly CI runs #954

merged 4 commits into from
Oct 3, 2022

Conversation

RTann
Copy link
Collaborator

@RTann RTann commented Sep 30, 2022

I noticed "hourly" CI runs are pushing images with the nightly tag. I think this is because we set CIRCLE_TAG to git tag --sort=creatordate --contains | tail -1. I think if there have not been any merges to the master branch since the nightly ran, then this will return a nightly tag. For example, running this on the master branch right now gave me 2.26-nightly-20220930.

This PR removes CIRCLE_JOB and CIRCLE_TAG and replaces CIRCLE_TAG with NIGHTLY_TAG

@ghost
Copy link

ghost commented Sep 30, 2022

Images are ready for the commit at 0e491b1.

To use the images, use the tag 2.26-27-g0e491b16e3.

Copy link
Contributor

@gavin-stackrox gavin-stackrox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if this works for you but I think the change alters the meaning of CIRCLE_TAG which might cause confusion. It will now always be set. In the Circle CI world this was used only with CI that was triggered by the addition of a tag. Which was releases, rcs, nightlies.

@RTann
Copy link
Collaborator Author

RTann commented Sep 30, 2022

LGTM if this works for you but I think the change alters the meaning of CIRCLE_TAG which might cause confusion. It will now always be set. In the Circle CI world this was used only with CI that was triggered by the addition of a tag. Which was releases, rcs, nightlies.

That's what I was thinking, but I noticed that git tag --sort=creatordate --contains | tail -1 returns a nightly tag, so it's possible this has been getting set by accident already?

@gavin-stackrox
Copy link
Contributor

LGTM if this works for you but I think the change alters the meaning of CIRCLE_TAG which might cause confusion. It will now always be set. In the Circle CI world this was used only with CI that was triggered by the addition of a tag. Which was releases, rcs, nightlies.

That's what I was thinking, but I noticed that git tag --sort=creatordate --contains | tail -1 returns a nightly tag, so it's possible this has been getting set by accident already?

I think with stackrox/stackrox using --contains works ok because there is no automation that runs on a cron against the main branch.

@RTann
Copy link
Collaborator Author

RTann commented Oct 3, 2022

@gavin-stackrox I updated it to set a new NIGHTLY_TAG and I removed CIRCLE_TAG since it's not really used (especially not as widely used as it is in the stackrox repo). Let me know if this makes more sense now, thanks

@RTann RTann requested a review from gavin-stackrox October 3, 2022 18:23
Copy link
Contributor

@gavin-stackrox gavin-stackrox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

@openshift-ci
Copy link

openshift-ci bot commented Oct 3, 2022

@RTann: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-tests 0e491b1 link false /test e2e-tests
ci/prow/slim-e2e-tests 0e491b1 link false /test slim-e2e-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@RTann RTann merged commit 24c03d6 into master Oct 3, 2022
@RTann RTann deleted the ross/hourly-tag-fix branch October 3, 2022 21:05
@RTann RTann mentioned this pull request Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants