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

Open
MoonEyes wants to merge 2 commits from upstream-pr/3099 into main
MoonEyes commented 2026-12-02 10:44:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T10:44:05Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5604810978 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3099). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T10:44:05Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T00:21:16Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7363093845 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3099#issuecomment-7363093845). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T00:21:16Z. --- ## 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 commented 2026-12-03 00:24:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T00:24:44Z.

Review: COMMENTED


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. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6161509951 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3099#pullrequestreview-6161509951). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T00:24:44Z. **Review:** COMMENTED --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3099:upstream-pr/3099'
git switch 'upstream-pr/3099'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3099'
git switch 'upstream-pr/3099'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3099'
git switch 'upstream-pr/3099'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3099'
git switch 'main'
git merge --squash 'upstream-pr/3099'
git switch 'main'
git merge --ff-only 'upstream-pr/3099'
git switch 'main'
git merge 'upstream-pr/3099'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!3099
No description provided.