Self-mutation commit makes running workflows silently no-op
See original GitHub issueOn this PR: https://github.com/cdklabs/cdk-ops/pull/1815
- GitHub Actions “build” started running, it was going to do a “cdk diff” that I want to see
- For whatever reason, some GitHub workflow that Projen creates decided it wanted to add a
chore: self mutation
commit - The addition of this commit canceled the running “build” workflow: https://github.com/cdklabs/cdk-ops/runs/4286695636?check_suite_focus=true
- Because they don’t want to hit an infinite loop, GitHub Actions pushes never trigger workflows. Since the latest commit was added by GitHub Actions, the new “build” workflow that was supposed to replace the old one silently no-ops: https://github.com/cdklabs/cdk-ops/pull/1815/checks?check_run_id=4286717896
The end result is:
- “build” didn’t run (so I never get to see the result of my “cdk diff”)
- What’s worse: the UI makes it look like the workflow ran successfully. So if it was doing something like running unit tests, potential failures would not be caught and I might accidentally merge a broken PR.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[pipelines] Self mutation deploys everything not just ... - GitHub
The update pipeline deploys changes that are made outside of the pipeline, e.g. creating a s3 bucket. this is the pipeline that got...
Read more >Skip or cancel jobs and workflows - CircleCI
The jobs within a pipeline can be skipped on commit, or workflows can be cancelled using the auto-cancel feature. Both methods are described...
Read more >aws-cdk/pipelines module - AWS Documentation - Amazon.com
To make the development more convenient, the self-mutation feature can be turned off temporarily, by passing selfMutation: false property, example: // Modern ...
Read more >GitLab CI/CD `workflow` keyword
Pipelines for push events with -draft in the commit message don't run, because they ... To make the pipeline switch from branch pipelines...
Read more >Running pre-commit in GitHub workflow on pull request
We have one pipeline that runs when a pull request in made active as it first caches the files, compares the main branch...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Definitely a good idea
Closing this issue as it hasn’t seen activity for a while. Please add a comment @mentioning a maintainer to reopen. If you wish to exclude this issue from being marked as stale, add the “backlog” label.