ci: label rebase conflicts from the hourly run only (CI-LABEL-HOURLY) #3099

Code

Clone this repository

Checkout

From your project repository, check out a new branch and test the changes.

git fetch -u origin "github-pr/3099:github-pr/3099"
git switch "github-pr/3099"
Open
leonida/mandy
MoonEyes wants to merge 3 commits from github-pr/3099 into main

This branch is out-of-date with the base branch

Conversation
Reviewers 0 approvals
  • No reviewers
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'github-pr/3099:github-pr/3099'
git switch 'github-pr/3099'
MoonEyes commented 2026-12-02 10:44:05 +00:00

Claimed in the coordination issue as: CI-LABEL-HOURLY (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7342924568)

What and why

Needs rebase label ran a full scan of every open pull request on each push to main. With the merge queue, main moves in bursts: from 1 to 2 December 2026 that was 49 runs of about 3.3 min (188 runner minutes) plus 40 cancelled ones, started right when the queue's jobs need runners.

The push trigger is removed; the existing hourly run (17 * * * *) and workflow_dispatch stay. A new conflict is labeled at most about an hour later. CONTRIBUTING.md and its French translation now say the label comes from the hourly run.

Tested

  • python -I tests/test_pr_conflict_label.py (13 OK), tests/test_docs_links.py, tests/test_i18n_index.py: OK.

GPUs tested: n/a

AI-assisted: yes (Claude Opus 5.5; a separate read-only reviewer agent on Claude Opus 5.5 audited the workflow change and accepted it).

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)

A .github/ change: a second maintainer has to agree.

🤖 Generated with Claude Code

Claimed in the coordination issue as: CI-LABEL-HOURLY (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7342924568) ### What and why `Needs rebase label` ran a full scan of every open pull request on each push to `main`. With the merge queue, `main` moves in bursts: from 1 to 2 December 2026 that was 49 runs of about 3.3 min (188 runner minutes) plus 40 cancelled ones, started right when the queue's jobs need runners. The push trigger is removed; the existing hourly run (`17 * * * *`) and `workflow_dispatch` stay. A new conflict is labeled at most about an hour later. CONTRIBUTING.md and its French translation now say the label comes from the hourly run. ### Tested - `python -I tests/test_pr_conflict_label.py` (13 OK), `tests/test_docs_links.py`, `tests/test_i18n_index.py`: OK. GPUs tested: n/a AI-assisted: yes (Claude Opus 5.5; a separate read-only reviewer agent on Claude Opus 5.5 audited the workflow change and accepted it). ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a) A `.github/` change: a second maintainer has to agree. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fiestorra commented 2026-12-03 00:21:16 +00:00

VERIFY-3099 — es un cambio de CI, así que se verifica leyendo el workflow resultante

Own commits 135c2220b (the trigger), 74e15bb68 (the docs) — 3 files, 10/10

What it does: removes the push: branches: [main] trigger from conflict-label.yml, leaving schedule: '17 * * * *' and workflow_dispatch — "the scheduled run catches a new push to main, a rebase and any merge GitHub had not computed yet."

Read at the head, the file is coherent:

on:
  schedule:
    - cron: '17 * * * *'
  workflow_dispatch:
permissions: {}
concurrency:
  group: conflict-label
  cancel-in-progress: false

So it still runs every hour (:17), the dispatch remains for a human, permissions: {} keeps it read-mostly, and the concurrency group is unchanged — nothing about the job itself moved, only the trigger.

The justification is the part worth reading, because it is measured:

"with the merge queue, main moves in bursts, and from 1 to 2 December 2026 the push runs took 188 runner minutes (49 runs of about 3.3 min, 40 more cancelled) on the runners the queue's checks wait for. The hourly run labels a new conflict at most about an hour late."

That is the trade written down: an hour of latency in exchange for three hours of runner time on the pool that every pull request's checks queue behind. And the comment names the cost exactly as a queue owner would: the label is a courtesy, the builds are not.

What I verified and what I could not:

  • Verified: the resulting on: block, the cron, the concurrency and permissions; no other workflow references this one (grep across .github/workflows/: 0 hits); the docs changes (CONTRIBUTING.md, docs/i18n/fr/contributing.md) drop the "push to main" clause in both languages, so the two cannot disagree.
  • Not verified: the 188-minute figure — it is the author's runner history; and no yaml parser or actionlint is installed here, so the syntax is checked by reading, not by a tool.

What I could not test

  • The workflow running: GitHub's scheduler, the label API, the merge queue.

Written with an AI assistant.

## VERIFY-3099 — es un cambio de CI, así que se verifica leyendo el workflow resultante | | | |---|---| | Own commits | `135c2220b` (the trigger), `74e15bb68` (the docs) — 3 files, 10/10 | **What it does**: **removes the `push: branches: [main]` trigger from `conflict-label.yml`**, leaving **`schedule: '17 * * * *'` and `workflow_dispatch`** — *"the scheduled run catches a new push to main, a rebase and any merge GitHub had not computed yet."* **Read at the head, the file is coherent**: ``` on: schedule: - cron: '17 * * * *' workflow_dispatch: permissions: {} concurrency: group: conflict-label cancel-in-progress: false ``` **So it still runs every hour** (`:17`), **the dispatch remains for a human**, **`permissions: {}` keeps it read-mostly**, **and the concurrency group is unchanged** — **nothing about the job itself moved, only the trigger.** **The justification is the part worth reading, because it is measured**: > *"with the merge queue, main moves in bursts, and from 1 to 2 December 2026 the push runs took **188 runner minutes (49 runs of about 3.3 min, 40 more cancelled) on the runners the queue's checks wait for**. The hourly run labels a new conflict **at most about an hour late**."* **That is the trade written down**: **an hour of latency in exchange for three hours of runner time on the pool that every pull request's checks queue behind.** **And the comment names the cost exactly as a queue owner would**: the label is a courtesy, the builds are not. **What I verified and what I could not**: - **Verified**: the resulting `on:` block, the cron, the concurrency and permissions; **no other workflow references this one** (grep across `.github/workflows/`: 0 hits); the docs changes (`CONTRIBUTING.md`, `docs/i18n/fr/contributing.md`) **drop the "push to `main`" clause in both languages**, **so the two cannot disagree.** - **Not verified**: the 188-minute figure — **it is the author's runner history**; and **no `yaml` parser or `actionlint` is installed here**, so the syntax is checked by reading, not by a tool. ## What I could not test - **The workflow running**: GitHub's scheduler, the label API, the merge queue. Written with an AI assistant.
merzleckeier reviewed 2026-12-03 00:24:44 +00:00
merzleckeier left a comment
No description provided.
Parsed the workflow on `74e15bb6` merged with `main` at `d5b30be1`. Removing `push: branches: [main]` is the only effective YAML change. The schedule remains `17 * * * *`, and manual dispatch, checkout, permissions and jobs are unchanged. All 36 tests in the conflict-label and documentation suites passed. Two documentation updates would make the new behavior clear. `tools/pr_conflict_label.py:5` still says it runs on every push to `main`. The workflow comment and the English and French contributing guides also promise roughly an hour as a maximum. Scheduled runs can be delayed or dropped, and the script deliberately leaves an uncomputed merge status for a later run. Could the wording say the label is updated on a subsequent hourly run once GitHub has computed the status? [GitHub schedule troubleshooting](https://docs.github.com/en/actions/how-tos/troubleshoot-workflows#scheduled-workflows-running-at-unexpected-times). AI-assisted.
Kept main's launcher line and the PR's hourly-only wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator

Dropping the push trigger is defensible on the runner-minute numbers. Two things to be aware of: this workflow runs on GitHub only, and the repository moved to git.leonida.now, so the label never appears on the forge pull requests at all; and the file also edits docs/i18n/fr/contributing.md, which #3456 changes on other lines (a trivial conflict). If a Forgejo runner is the plan, the label job has to be ported rather than tuned.

Dropping the push trigger is defensible on the runner-minute numbers. Two things to be aware of: this workflow runs on GitHub only, and the repository moved to `git.leonida.now`, so the label never appears on the forge pull requests at all; and the file also edits `docs/i18n/fr/contributing.md`, which #3456 changes on other lines (a trivial conflict). If a Forgejo runner is the plan, the label job has to be ported rather than tuned.
Collaborator

Local CI (run_ci_local.ps1): PASS

  • PR head 0c84e0af8 merged into main 44c480a5f
  • Machine: 12th Gen Intel(R) Core(TM) i7-12700KF, NVIDIA GeForce RTX 5070, Windows 10.0.26200, Python 3.14.4
Step Result Details Time
Merge into main PASS clean 0 s
No game data tracked PASS 3843 files 0 s
No game data under another name PASS 12 s
Mode INFO quick (launcher, Setup, scripts or docs only) 0 s
Compile Python PASS 20 s
make_game.py --help PASS 0 s
Python tests (standard library) PASS 5 files, 0 failed 55 s
Python tests (pytest) SKIP pytest not installed here (0 files): pip install -r tests/requirements.txt 0 s
D3D12 runtime (Rust) SKIP quick run 0 s
Sensitive files unchanged by the checks PASS 38 checked 0 s

Run with scripts/run_ci_local.ps1 while the Forgejo has no runners; full logs stay on the machine that ran it.

<!-- run_ci_local head=0c84e0af887e0953c92e903e685a9b15f4c21fce --> **Local CI (run_ci_local.ps1): PASS** - PR head `0c84e0af8` merged into main `44c480a5f` - Machine: 12th Gen Intel(R) Core(TM) i7-12700KF, NVIDIA GeForce RTX 5070, Windows 10.0.26200, Python 3.14.4 | Step | Result | Details | Time | |---|---|---|---| | Merge into main | PASS | clean | 0 s | | No game data tracked | PASS | 3843 files | 0 s | | No game data under another name | PASS | | 12 s | | Mode | INFO | quick (launcher, Setup, scripts or docs only) | 0 s | | Compile Python | PASS | | 20 s | | make_game.py --help | PASS | | 0 s | | Python tests (standard library) | PASS | 5 files, 0 failed | 55 s | | Python tests (pytest) | SKIP | pytest not installed here (0 files): pip install -r tests/requirements.txt | 0 s | | D3D12 runtime (Rust) | SKIP | quick run | 0 s | | Sensitive files unchanged by the checks | PASS | 38 checked | 0 s | Run with `scripts/run_ci_local.ps1` while the Forgejo has no runners; full logs stay on the machine that ran it.
Sign in to join this conversation.
No description provided.