mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #608] ci: add a concurrency group to xma2-decoder.yml (CI-XMA2-CONCURRENCY) #651
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#651
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/608
Author: @TuroYT
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:ci/xma2-concurrency📝 Commits (2)
14d72d6ci: add a concurrency group to xma2-decoder.yml (CI-XMA2-CONCURRENCY)24569eaci: key the xma2-decoder push group on run_id, as the other workflows will📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
.github/workflows/xma2-decoder.yml(+6 -0)📄 Description
Claimed in the coordination issue as: CI-XMA2-CONCURRENCY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7127997219)
xma2-decoder.ymlis the only workflow in.github/workflows/without a top-levelconcurrency:block. It runs onwindows-latest, so a superseded pull request run keeps a Windows runner busy until it finishes.This adds the same block
ci.ymluses, with the group prefixxma2-decoder-:xma2-decoder-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}cancel-in-progress: ${{ github.event_name == 'pull_request' }}A pull request cancels its superseded run. A push gets its own group, because
run_idis unique per run, so a burst of merges cannot replace a queued main run before it starts. This is the shape #771 givesci.yml,jactionlint.yml,no-game-data.ymlandruntime.yml, which leaves this file to this PR. Nothing else in the file changes.The branch is based on origin/main. #595 (
persist-credentials: falseon checkout) was still open when this branch was made. Its hunk is elsewhere in the same file, so the two do not overlap.Tested:
python3 -I -c "import yaml,glob; ..."parses every file in.github/workflows/: printsok.concurrencyof xma2-decoder.yml is the expected mapping, and the top-level keys are name, on, permissions, concurrency, jobs.git diff --check: clean.git diff --numstat: 5 added lines, 0 removed.python3 -I tests/test_ci_registration.py: 15 tests OK.python3 -I tests/test_no_game_data_workflow.py: 3 tests OK.python3 -I tests/test_runtime_paths.py: 5 tests OK.python3 -I tests/test_pr_conflict_label.py: 12 tests OK.python3 -I scripts/check_no_game_data.py .github/workflows/xma2-decoder.yml: exit 0.xma2-decoder-pull_request-<n>with different n. A push has no PR number, so it falls through to the run id, givingxma2-decoder-push-<run_id>, a different group for every push.cancel-in-progressis false for a push.Review follow-up: MoonEyes pointed out that the first revision keyed a push on the ref, so two pushes to main shared one group and GitHub, which keeps at most one pending run per group, replaced the queued one. The second commit uses the run id, as #771 does for the other workflows.
Not tested:
AI-assisted (Claude Code).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.