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

ci: prevent triggering release builds accidentally #7401

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

thesuperzapper
Copy link
Member

There is currently a serious bug in the CI which may result in image tags being re-pushed post-release.

The issue is that our current system to detect when the releasing/version/VERSION file has changed (and thus a new "release" image tag needs to be created) will trigger 100% of the time.

This is because, by default, the dorny/paths-filter@v2 will compare against master, even if the push was to the v1.8-branch, and there will always be a different on the releasing/version/VERSION between master and release branches.

This PR simply uses ${{ github.ref }} as the base of comparison, as suggested by the author of dorny/paths-filter for long-lived branches.

@thesuperzapper
Copy link
Member Author

/assign @DnPlas
/cc @kimwnasptd

@thesuperzapper
Copy link
Member Author

Once we merge this, we need to cherry-pick it into the v1.8-branch before we cut the final 1.8.0 tag.

@DnPlas
Copy link
Contributor

DnPlas commented Nov 1, 2023

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Nov 1, 2023
@thesuperzapper
Copy link
Member Author

/approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: thesuperzapper

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 16ae921 into kubeflow:master Nov 1, 2023
2 checks passed
DnPlas pushed a commit to DnPlas/kubeflow that referenced this pull request Nov 1, 2023
google-oss-prow bot pushed a commit that referenced this pull request Nov 1, 2023
Co-authored-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants