[PR #608] ci: add a concurrency group to xma2-decoder.yml (CI-XMA2-CONCURRENCY) #651

Open
opened 2026-11-26 20:18:36 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 14d72d6 ci: add a concurrency group to xma2-decoder.yml (CI-XMA2-CONCURRENCY)
  • 24569ea ci: 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.yml is the only workflow in .github/workflows/ without a top-level concurrency: block. It runs on windows-latest, so a superseded pull request run keeps a Windows runner busy until it finishes.

This adds the same block ci.yml uses, with the group prefix xma2-decoder-:

  • group: 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_id is unique per run, so a burst of merges cannot replace a queued main run before it starts. This is the shape #771 gives ci.yml, jactionlint.yml, no-game-data.yml and runtime.yml, which leaves this file to this PR. Nothing else in the file changes.

The branch is based on origin/main. #595 (persist-credentials: false on 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/: prints ok.
  • The parsed concurrency of 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.
  • Group expression, worked through by hand and not executed: two different PRs give xma2-decoder-pull_request-<n> with different n. A push has no PR number, so it falls through to the run id, giving xma2-decoder-push-<run_id>, a different group for every push. cancel-in-progress is 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:

  • The workflow itself was not run. There is no way to run GitHub Actions here, and actionlint is not installed. The CI run on this PR is the real check.
  • Cancellation on GitHub was not observed.

AI-assisted (Claude Code).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/608 **Author:** [@TuroYT](https://github.com/TuroYT) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ci/xma2-concurrency` --- ### 📝 Commits (2) - [`14d72d6`](https://github.com/ubiquitarianism/leonida/commit/14d72d6f63a67dd3598cb7c1d31505bf61ee2bbc) ci: add a concurrency group to xma2-decoder.yml (CI-XMA2-CONCURRENCY) - [`24569ea`](https://github.com/ubiquitarianism/leonida/commit/24569ea83e10d248606b4ab9b300a5fb2f1876ce) ci: key the xma2-decoder push group on run_id, as the other workflows will ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/xma2-decoder.yml` (+6 -0) </details> ### 📄 Description Claimed in the coordination issue as: CI-XMA2-CONCURRENCY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7127997219) `xma2-decoder.yml` is the only workflow in `.github/workflows/` without a top-level `concurrency:` block. It runs on `windows-latest`, so a superseded pull request run keeps a Windows runner busy until it finishes. This adds the same block `ci.yml` uses, with the group prefix `xma2-decoder-`: - group: `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_id` is unique per run, so a burst of merges cannot replace a queued main run before it starts. This is the shape #771 gives `ci.yml`, `jactionlint.yml`, `no-game-data.yml` and `runtime.yml`, which leaves this file to this PR. Nothing else in the file changes. The branch is based on origin/main. #595 (`persist-credentials: false` on 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/`: prints `ok`. - The parsed `concurrency` of 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. - Group expression, worked through by hand and not executed: two different PRs give `xma2-decoder-pull_request-<n>` with different n. A push has no PR number, so it falls through to the run id, giving `xma2-decoder-push-<run_id>`, a different group for every push. `cancel-in-progress` is 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: - The workflow itself was not run. There is no way to run GitHub Actions here, and actionlint is not installed. The CI run on this PR is the real check. - Cancellation on GitHub was not observed. AI-assisted (Claude Code). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#651
No description provided.