Skip to content

ci/gha: review/fixup auto-cancel settings - #1292

Closed
vszakats wants to merge 3 commits into
libssh2:masterfrom
vszakats:gha-auto-cancel
Closed

vszakats wants to merge 3 commits into
libssh2:masterfrom
vszakats:gha-auto-cancel

Conversation

@vszakats

@vszakats vszakats commented Dec 19, 2023 •

Copy link
Copy Markdown
Member
  • use the group expression from reuse.yml (via curl).
  • add auto-cancel for ci and cifuzz.
  • add auto-cancel to appveyor_docker. I'm just guessing here.
    The hope is that it fixes AppVeyor CI runs when re-pushing a PR.
    This frequently caused the freshly pushed session to fail waiting for
    a connection.
  • sync group expression in appveyor_status with reuse.

Closes #1292

@vszakats vszakats added the build label Dec 19, 2023
@vszakats vszakats closed this in b08cfbc Dec 21, 2023
@vszakats
vszakats deleted the gha-auto-cancel branch December 21, 2023 21:44
@vszakats

Copy link
Copy Markdown
Member Author

Well, that doesn't work as excpted. When pushing to master twice, the previous GHA session isn't cancelled.

agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
- use the group expression from `reuse.yml` (via curl).
- add auto-cancel for `ci` and `cifuzz`.
- add auto-cancel to `appveyor_docker`. I'm just guessing here.
  The hope is that it fixes AppVeyor CI runs when re-pushing a PR.
  This frequently caused the freshly pushed session to fail waiting for
  a connection.
- sync group expression in `appveyor_status` with `reuse`.

Closes libssh2#1292
vszakats referenced this pull request Jun 9, 2026
Removed concurrency settings from AppVeyor Docker workflow.

Since a single PR or commit can require multiple Docker instances, we cannot come up with a functioning identifier.
vszakats added a commit that referenced this pull request Jun 10, 2026
Put each invocation in its own concurrency group, via `run_id`.

Silencing:
```
help[concurrency-limits]: insufficient job-level concurrency limits
  --> .github/workflows/appveyor_docker.yml:29:1
   |
29 | / 'on':
30 | |   workflow_dispatch:
31 | |     inputs:
32 | |       ssh_host:
...  |
42 | |       ssh_privkey:
43 | |         required: true
   | |______________________^ workflow is missing concurrency setting
...
52 |       name: 'Daemon'
   |       -------------- job affected by missing workflow concurrency
   |
   = note: audit confidence -> High
   = help: audit documentation -> https://docs.zizmor.sh/audits/#concurrency-limits
```
Ref: https://github.com/libssh2/libssh2/actions/runs/27208823858/job/80331881952?pr=2001#step:5:18

Ref: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#concurrency
Follow-up to 90497ad
Follow-up to b08cfbc #1292

Closes #2002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant