Skip to content

Use cancel-in-progress instead of styfle/cancel-workflow-action. - #8542

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_943469061
Jul 6, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_943469061

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Use cancel-in-progress instead of styfle/cancel-workflow-action.

Advantages:

  • We don't need to grant write permissions to a third-party action (or even use it at all).
    • Not that I have any reason to think it's likely to be a problem, but strange things happen sometimes.
  • One less action means one less thing for us to merge Dependabot updates for.
  • The new approach can easily allow CI for merged trunk commits to continue even after other trunk commits are merged, while still stopping PR CI when new changes are pushed.
    • This is especially nice because cancellations (at least those from styfle/cancel-workflow-action, maybe in general) show up as failures. It's nice to be able to pick out real failures (e.g., those fixed by 8ee72dc and 74eccf2) without sorting through cancellations.
  • All else being equal, it's nice to have smaller, simpler configuration.

Assuming that this approach holds up, I'll replicate it to our other projects.

RELNOTES=n/a

Advantages:
- We don't need to grant write permissions to a third-party action (or even use it at all).
  - Not that I have any reason to think it's likely to be a problem, but strange things happen sometimes.
- One less action means one less thing for us to merge Dependabot updates for.
- The new approach can easily allow CI for merged trunk commits to continue even after other trunk commits are merged, while still stopping PR CI when new changes are pushed.
  - This is especially nice because cancellations (at least those from `styfle/cancel-workflow-action`, maybe in general) show up as _failures_. It's nice to be able to pick out _real_ failures (e.g., those fixed by 8ee72dc and 74eccf2) without sorting through cancellations.
- All else being equal, it's nice to have smaller, simpler configuration.

Assuming that this approach holds up, I'll replicate it to our other projects.

RELNOTES=n/a
PiperOrigin-RevId: 943495905
@copybara-service
copybara-service Bot merged commit 61c5f64 into master Jul 6, 2026
@copybara-service
copybara-service Bot deleted the test_943469061 branch July 6, 2026 21:26
copybara-service Bot pushed a commit to google/inject-common that referenced this pull request Jul 13, 2026
Compare cl/943495905 / google/guava#8542.

RELNOTES=n/a
PiperOrigin-RevId: 947083935
copybara-service Bot pushed a commit to google/escapevelocity that referenced this pull request Jul 13, 2026
Compare cl/943495905 / google/guava#8542.

RELNOTES=n/a
PiperOrigin-RevId: 947083935
copybara-service Bot pushed a commit to google/guava-beta-checker that referenced this pull request Jul 13, 2026
Compare cl/943495905 / google/guava#8542.

RELNOTES=n/a
PiperOrigin-RevId: 947083935
copybara-service Bot pushed a commit to google/caliper that referenced this pull request Jul 13, 2026
Compare cl/943495905 / google/guava#8542.

RELNOTES=n/a
PiperOrigin-RevId: 947083935
copybara-service Bot pushed a commit to google/auto that referenced this pull request Jul 13, 2026
Compare cl/943495905 / google/guava#8542.

RELNOTES=n/a
PiperOrigin-RevId: 947083935
copybara-service Bot pushed a commit to google/truth that referenced this pull request Jul 13, 2026
Compare cl/943495905 / google/guava#8542.

RELNOTES=n/a
PiperOrigin-RevId: 947083935
copybara-service Bot pushed a commit to google/jimfs that referenced this pull request Jul 13, 2026
Compare cl/943495905 / google/guava#8542.

RELNOTES=n/a
PiperOrigin-RevId: 947083935
copybara-service Bot pushed a commit to google/flogger that referenced this pull request Jul 13, 2026
Compare cl/943495905 / google/guava#8542.

RELNOTES=n/a
PiperOrigin-RevId: 947083935
cpovirk added a commit to google/google-java-format that referenced this pull request Aug 10, 2026
Compare google/guava#8542.

Aside from the reasons listed there, I wonder if this would have avoided a flaky(?) failure that I saw today on #1441:

```
Run styfle/cancel-workflow-action@d07a454
  with:
    access_token: ***
    ignore_sha: false
    all_but_latest: false
    force_cancel: false
{
  eventName: 'pull_request',
  sha: 'ca5f660437c7f1489d511540cf8c6d047ea0edcf',
  headSha: 'a160145b17ff487adfa4519b087472e3d328088d',
  branch: 'zizdep',
  owner: 'google',
  repo: 'google-java-format',
  GITHUB_RUN_ID: '31412633123'
}
Found token: yes
Error: self-signed certificate; if the root CA is installed locally, try running Node.js with --use-system-ca
```
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.

1 participant