Repository navigation
ci: decisions one file each, and rewrite-only pull requests skip today's boots - #170
Merged
Merged
Conversation
…y's boots DECISIONS.md becomes an index that scripts/decisions.ts writes from decisions/<date>-<slug>.md, keeping every old anchor. Pull requests add a file and leave the index alone, so two of them never conflict; the Docs workflow checks it, letting it lag, and release pull requests bring it up to date. scripts/affected.sh treats the rewrite's conventions in build-logic/, its budgets and pins in gradle/ and its boot scripts as the rewrite's alone: they build the rewrite's modules and boot the rewrite, not today's plugins. scripts/affected-test.sh, run by the Plugins workflow, fails if today's conventions reach one of those files, and checks each kind of change.
zacharyk812
enabled auto-merge (squash)
November 25, 2026 03:57
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Nothing for server owners: this makes merging a run of PRs faster, in two ways. Why, in decisions/2026-11-24-decisions-one-file-each.md.
DECISIONS.md no longer conflicts with every open PR. Each of the 58 decisions is now a file in
decisions/,<date>-<slug>.md, with its text unchanged (only its heading is now#, and its two relative links point from the new folder). DECISIONS.md is an index thatnode scripts/decisions.tswrites: one row per decision, by date then file name, each row carrying the anchor its old heading had, so everyDECISIONS.md#...link still lands on its decision (checked: the same 58 anchors).decisions/<date>-<slug>.md, with# <title> (<date>)as its first line, and leave DECISIONS.md alone. Two PRs that each add a decision never touch the same file.node scripts/decisions.ts --checkruns in a newdecisionsjob in the Docs workflow, on every PR, anddocs-okwaits on it. It fails on a misnamed file, a heading whose date doesn't match its name, or a row that's wrong, out of order or for a file that's gone. A decision with no row yet only gets a notice. Release PRs (scripts/release.ts) rewrite the index, as they do the plugin catalog.merge=uniondoesn't help because GitHub's merge check doesn't run merge drivers. One cost: within a day, rows are sorted by file name rather than by the order they were decided in.(DECISIONS.md, "<title>")are unchanged, because the index lists each decision by title. The site doesn't read DECISIONS.md.PRs that touch only the rewrite no longer wait on today's plugins' Paper and Folia boots.
scripts/affected.shused to run everything for any change inbuild-logic/,gradle/orscripts/. Now a list in the script (rewriteOnly) names the files only the rewrite uses:build-logic/gradle/jar-budgets.txt,library-pins.txtandperf-budgets.txtscripts/budgets/,scripts/boot-seeds/,boot-fabric.shandnew-rewrite-plugin.tsA change to one of these builds and tests the rewrite's modules and boots the rewrite. It skips today's builds, the newest-API compile and the Paper and Folia boots. Anything not on the list still means everything.
scripts/affected-test.shkeeps that safe, and the Plugins workflow'schangesjob runs it first. It starts from the conventions today's build files apply (xena.plugin,xena.api,xena.java) and follows every name declared inbuild-logic/that they use. It fails if any file reached that way is on the rewrite's list (tried: puttingKotlinConventionsintoxena.javafails it). It also checks what each of these cases runs:core/core-common/src/commonMain/kotlin/co/xenastudios/core/common/text/Component.ktcore/platform-bukkit/src/main/kotlin/co/xenastudios/core/bukkit/BukkitText.ktcore/platform-fabric/src/main/kotlin/co/xenastudios/core/fabric/FabricCommands.ktcore/src/main/java/co/xenastudios/core/XenaPlugin.javaxbans/src/main/java/co/xenastudios/xbans/XBans.javabuild-logic/src/main/kotlin/xena.r8.gradle.ktsbuild-logic/src/main/kotlin/co/xenastudios/gradle/KotlinConventions.ktbuild-logic/src/main/kotlin/xena.plugin.gradle.ktsbuild-logic/build.gradle.ktsgradle/jar-budgets.txtgradle/libs.versions.tomlscripts/budgets/check.shscripts/boot-test.shdocs/src/content/docs/index.mdx,README.mddecisions/2026-11-24-decisions-one-file-each.md,DECISIONS.md,scripts/decisions.ts.github/workflows/plugins.yml.github/workflows/boot.yml.github/workflows/docs.ymlMakefile"Everything" is what a push to main runs. A rewrite-only change to
core/already skipped today's boots before this PR; build-logic,gradle/andscripts/were the gap.Verified:
node scripts/decisions.ts --check(59 of 59 listed); the check's failure and notice paths with a misnamed file, a mismatched date, an edited row and an unlisted decision; a rebuild of the original entries from the files, which differs only in blank lines and the two relative links;scripts/affected-test.sh; shellcheck; actionlint (only theubuntu-26.04label warning and four findings that were already there).pnpm buildindocs/wasn't needed, since the site doesn't touch DECISIONS.md.For #167 and any other open PR with a DECISIONS entry: on rebase, take main's DECISIONS.md and move the entry into its own file in
decisions/.Checklist
./gradlew buildpasses (no Gradle sources changed)scripts/affected-test.sh,scripts/decisions.ts --check)CHANGELOG.mdunder## Unreleased(no plugin changed)decisions/