xtask: the Forge and claims (one branch of every pull request that builds; who works on what) #1655
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1655
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1655/head"
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?
@KevinPratap on GitHub · 2026-11-24 20:31 UTC · original
KevinPratap:xtask/forge-and-claims→main· +1794 −13 · 12 files · 2 commits · closed without mergingProblem
With about 900 open pull requests, most can only be tried one at a time against
main. Many touch the same files, some fix the same thing twice, and nobody can test them together, so contributors build their own bundles (#231, #1439) that conflict in turn. Since yesterday this has run outside the repository, on my fork (#1624, #1633), and people use it: 13 claims by 6 contributors in its first hour. This pull request moves it into the repository itself, so it no longer depends on a fork.What it adds
cargo xtask forge, run by.github/workflows/forge.ymlevery 12 hours and by hand:forge/main:mainplus every open pull request that merges, passescargo check --workspace --all-targetsand passes the asset policy. They go in oldest first, one merge commit each (Forge: #N title). A failing batch is halved until the pull request that breaks it is found.STATUS.mdonforge/status, with one result per open pull request:main;STATUS.mdalso has the tests of the branch and what joined or left it since the last run.cargo xtask claims, run by.github/workflows/claims.ymlon each comment in the coordination issue and every 30 minutes:claiming:,done: <ID> -> #<PR>,release:andfinding:comments, and the task table in the issue's body.CLAIMS.mdonforge/statusand one bot comment in the issue up to date. It edits only that comment.The rules are in
docs/forge.md. Holds and the coordination issue's number are in.github/forge.toml. Holds say why, and they lift when the pull request gets a new commit. Everything changes by pull request, like code.What the automation never does:
main;Pull requests that change
.github/workflows/are listed but not merged: the Actions token cannot push them, and they should not run unreviewed.Changes outside the new files
xtask/src/policy.rs:runis split, and the newviolationsreturns the list. This lets the Forge check the policy in-process: it can't rebuild xtask while xtask is running on Windows. Behaviour is unchanged (cargo xtask policyprints and fails as before).xtask/Cargo.toml:serdeandtoml, both already workspace dependencies. No new crates. gh's--jq ... @tsvoutput avoids a JSON dependency.Verified
cargo clippy -p xtask --all-targets --locked -- -D warningsis clean.cargo test -p xtaskpasses, with 7 new tests: the config, task IDs, command lines, dates, gh's tab-separated output, and reading a previous status page.cargo xtask policypasses.cargo xtask claims --slug Marvisak/VIctoryagainst #1633 gives the same tasks and claims as the fork's version (19 tasks, 13 claims).cargo xtask forge --limit 25merged the same pull requests as the fork's full run. It flagged #67 and #101 with their compile errors, and listed the 2 pull requests that change workflows..github/forge-publish.shwas tried against a local bare repository: first publish (orphan branch), update, unchanged, and retry.For the maintainers
coordination_issuein.github/forge.toml. The workflow finds it by that title.AI-assisted (Claude Code).
🤖 Generated with Claude Code
@Marvisak on GitHub · 2026-11-25 01:23 UTC · original
Automated triage for the maintainers. Closing because it breaks a repository rule (see
docs/asset-policy.mdand the project rules): nothing taken from the console SDK or the game, no weakening of the asset policy, and the title stays offline.If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
@Calvix2k on GitHub · 2026-11-25 02:03 UTC · original
This looks like a false positive from the automated triage: the change is infrastructure code only — .github/workflows/{forge,claims}.yml, xtask/src/{forge,claims,gh,policy}.rs, docs/forge.md, and the xtask manifest. It contains no game data, no console SDK code or headers, and does not weaken the offline rule; the shader pack and title stay untouched. It is also the same Forge/claims tooling this repository has been using from a fork since yesterday (#1624, #1633), moved in-tree so it stops depending on one contributor's fork.
The one point that may deserve maintainer eyes is that it adds GitHub Actions workflows, which is a repository-permission decision rather than an asset-policy one. Could it be re-checked on that basis? cargo xtask policy on the PR head is the relevant check, and the Forge binaries/snapshots it publishes are build outputs, not committed assets.
Pull request closed