Repository navigation
2.6.2: the test harness the fix line was proven against - #173
Merged
Merged
Conversation
Twelve test classes drive create, stock, trade, sign recognition, item metadata round-trips, per-item setting toggles in both directions, tab completion and chunk-data caching through the real onEnable, against the classpath the plugin ships against. The pom grows its test half: MockBukkit and JUnit at test scope, testRelease 21 for the test sources only, one surefire fork per suite because the plugin caches itself in static finals, and an antrun step that fails the build on any skipped test - MockBukkit reports unimplemented API as a skip, so without that guard a green run can mean nothing ran. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJGccjKqRdo8Ax24c44rBS
Tier 2 boots a real Paper server with the shaded jar and BKCommonLib installed and runs 69 scenarios from inside: shops created by command, stocked from real chests, traded, broken, reloaded off disk, searched, and every per-item comparison toggled both ways. Tier 3 connects a real client (Mineflayer) that places the chest, types the sign edit - the one path no server-side tier can reach - trades through the GUI, and proves a toggled comparison changes what the shop accepts. Sites are allocated by a runtime reservation so suites cannot collide, and a scenario that declared itself but did not run fails the build. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJGccjKqRdo8Ax24c44rBS
sh ci/build.sh builds, runs tier 1, then boots the server for tiers 2 and 3. It exits 1 on a failed assertion, on a severe console line even with every scenario green, on a scenario that did not run, and on a hang - each proven by inducing it rather than assumed. Ports are allocated per checkout so parallel runs do not queue. The .gitignore line keeps agent scratch directories out of accidental commits. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJGccjKqRdo8Ax24c44rBS
Adds the Actions workflow the 2.6.2 fix line and its harness were gated by on the staging fork: one job, sh ci/build.sh, which builds, runs the MockBukkit suite, boots a real Paper server for the in-server scenarios, and drives a real client against it. It fails on a broken assertion, a severe console line, a skipped test, a scenario that did not run, or a hang. Publishing is unaffected: permissions are contents read, there is no deploy step, no schedule and no manual trigger - Jenkins remains the sole publisher for repo.killerofpie.com. Triggers are branch-agnostic so the gate follows the work instead of a named branch. JDK 21 because MockBukkit's v1.21 line is compiled for it (main still targets 1.8); Node 24 for the protocol client, whose dependency tree is locked by it-client/package-lock.json. Retires the disabled maven.yml.old it replaces.
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.
The second half of #172: the three-tier suite every fix in that PR was pinned by, red first, before the fix was written. 43 files, three commits — tier 1, tiers 2+3, the gate. Nothing in
src/mainchanges; thepom.xmldiff is its test half (MockBukkit/JUnit at test scope,testRelease21 for test sources only, one surefire fork per run, and an antrun step that fails the build on any skipped test — MockBukkit reports unimplemented API as a skip, so without that guard a green run can mean nothing ran).The three tiers
src/test) — 36 tests through the realonEnable: create/stock/trade, sign recognition, item-metadata round-trips, every per-item comparison toggle in both directions, tab completion, chunk-data caching.it/) —ci/integration.shboots Paper 1.21.11 with the shaded jar and BKCommonLib installed and runs 69 scenarios from a plugin inside it: shops created by command, stocked from real chests, traded, broken, reloaded off disk, searched, legacy files migrated. Scenario ground is allocated by a runtime reservation so suites cannot collide.it-client/, Mineflayer) — places the chest, types the sign edit (the one path no server-side tier can reach: the server writes sign edits back from the packet handler, so synthetic events never touch the block), trades through the GUI, and proves a toggled comparison changes what the shop accepts.sh ci/build.shruns all three and goes red four ways on demand — failed assertion, severe console line with every scenario green, a scenario that declared itself and did not run, and a hang — each proven by inducing it, not assumed.Not included, on purpose
.github/workflows/maven.yml— the CI workflow that runsci/build.shon every push and PR. The fork runs it (here); whether upstream wants Actions alongside Jenkins is your call, so it is left for you to apply (the token used to stage this branch cannot push workflow files by design). The fork also retires the disabledmaven.yml.old.sh ci/build.sh.Process notes riding along
ci/README.mdand a handful of comments reference the work-unit numbering (W4,W9,WC2…) used while this was built on the fork. They are left verbatim so the fork and upstream stay byte-identical — but they are our process notes, and if you'd rather not carry them, say so and a trimmed version lands on the fork first so both stay in sync. Thepom.xmlBKCommonLib comment also returns to its fuller wording now thatci/integration.sh, which it cites, exists in-tree.How it was verified
sh ci/build.shon this exact tree: exit 0 — 36 tier-1 tests, 69/69 scenarios on Paper 1.21.11 build 132, no skips. With this PR merged, upstream2.6.2differs from the fork's gated tip only by the workflow file above.🤖 Generated with Claude Code
https://claude.ai/code/session_01WJGccjKqRdo8Ax24c44rBS