Repository navigation
ci: Avoid cancelling release-drafter ack jobs when PRs are opened - #167
Open
edgarrmondragon wants to merge 1 commit into
Open
edgarrmondragon wants to merge 1 commit into
edgarrmondragon wants to merge 1 commit into
Conversation
edgarrmondragon
marked this pull request as ready for review
October 8, 2026 04:10
edgarrmondragon
force-pushed
the
ci/ack-workflow-no-cancel
branch
from
October 8, 2026 04:12
d7254dc to
b00b9f1
Compare
Small but annoying issue: a new PR triggers the `opened` event, then labels are added, so a few `labeled` events are added. This combined with the concurreny config recommended by zizmor, cause the job to be cancelled. Instead: make a concurrency group per PR (or per merge queue branch) and don't cancel in-flight runs of `ack.yml`. Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
edgarrmondragon
force-pushed
the
ci/ack-workflow-no-cancel
branch
from
November 1, 2026 01:13
b00b9f1 to
d85c2e2
Compare
Contributor
|
These will be disabled in just a few days. https://github.blog/changelog/2026-11-02-pull_request_target-blocked-by-default-december-2/ There might be a setting we can change, it looks like. |
Collaborator
Author
I think we can import something like policy.json
{
"id": 9999,
"name": "Allow PR labeling from forks",
"target": "actions",
"source_type": "Repository",
"source": "pytest-dev/pytest-github-actions-annotate-failures",
"enforcement": "active",
"conditions": {
"workflow_path": {
"exclude": [],
"include": [
".github/workflows/ack.yml"
]
}
},
"rules": [
{
"type": "restrict_action_events",
"parameters": {
"allowed_events": [
"merge_group",
"pull_request_target"
]
}
}
],
"bypass_actors": []
}in https://github.com/pytest-dev/pytest-github-actions-annotate-failures/settings/actions/rules (I don't have such access though). That should allow just this workflow to be triggered by the |
Collaborator
Author
|
I'm curious what @ssbarnea thinks |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Small but annoying issue: a new PR triggers the
openedevent, then labels are added, so a fewlabeledevents are added. This combined with the concurreny config recommended by zizmor, causes the job to be cancelled.Fix: make a concurrency group per PR (or per merge queue branch) and queue in-flight runs of
ack.ymlinstead of cancelling.