Skip to content

Manual backport of [NET-11150] ci: fix conditional skip and add safeguard into release/1.6.0#646

Merged
zalimeni merged 1 commit into
release/1.6.0from
zalimeni/backport/fix-ci-skip-action-1.6.0
Sep 27, 2024
Merged

Manual backport of [NET-11150] ci: fix conditional skip and add safeguard into release/1.6.0#646
zalimeni merged 1 commit into
release/1.6.0from
zalimeni/backport/fix-ci-skip-action-1.6.0

Conversation

@zalimeni
Copy link
Copy Markdown
Member

@zalimeni zalimeni commented Sep 26, 2024

No changes other than CI configuration are included in this PR.

Backport

This PR is manually created from #637 to be assessed for backporting into release/1.6.0.

The reason for backporting this PR is the known issue with consul-dataplane's use of the skip CI job, noted in the coped description below. This should be fixed so that pre-release CI checks are correctly enforced.

The below text is copied from the body of the original PR.


Fix CI skip workflow by adopting tj-actions/changed-files (used by several other hashicorp repos) and putting in safeguards to avoid false negatives on changed files due to inappropriate workflow triggers.

Reproduced bug (skipped checks on Dockerfile change): https://github.com/hashicorp/consul-dataplane/actions/runs/10984338025/job/30494819791?pr=630#step:3:14

Debugging 🧵 for posterity, which has some notes w/ more background on our previous script and potential gotchas: https://go.hashi.co/net-11150-debugging-slack

PRs for other repos:

Testing

pull_request retrieves changes between base and feature branch: https://github.com/hashicorp/consul-dataplane/actions/runs/11017376755/job/30595124657?pr=637#step:4:64

Prints both skippable and non-skippable files: https://github.com/hashicorp/consul-dataplane/actions/runs/11017376755/job/30595124657?pr=637#step:5:12

Skip test: https://github.com/hashicorp/consul-dataplane/actions/runs/11018306352/job/30598259268?pr=638#step:6:6

Safeguard test: https://github.com/hashicorp/consul-dataplane/actions/runs/11016637261/job/30592629656?pr=636#step:2:14

Simulated push with non-skippable commit (diff is just latest commit): https://github.com/hashicorp/consul-dataplane/actions/runs/11020606567/job/30605759628#step:3:62

Simulated push with skippable commit (diff is just latest commit): https://github.com/hashicorp/consul-dataplane/actions/runs/11020613882/job/30605785364#step:4:12


Overview of commits

@zalimeni zalimeni requested a review from a team as a code owner September 26, 2024 23:03
@zalimeni zalimeni requested review from blake and sophie-gairo and removed request for NicoletaPopoviciu September 27, 2024 15:41
Copy link
Copy Markdown

@dhiaayachi dhiaayachi left a comment

Choose a reason for hiding this comment

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

🚢

@zalimeni zalimeni merged commit 7a51386 into release/1.6.0 Sep 27, 2024
@zalimeni zalimeni deleted the zalimeni/backport/fix-ci-skip-action-1.6.0 branch September 27, 2024 18:33
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.

3 participants