Skip to content

2.6.2: the test harness the fix line was proven against - #173

Merged
KillerOfPie merged 4 commits into
Tradeshop:2.6.2from
DevOfPie:2.6.2-harness
Aug 11, 2026
Merged

KillerOfPie merged 4 commits into
Tradeshop:2.6.2from
DevOfPie:2.6.2-harness

Conversation

@KillerOfPie

Copy link
Copy Markdown
Collaborator

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/main changes; the pom.xml diff is its test half (MockBukkit/JUnit at test scope, testRelease 21 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

  1. MockBukkit (src/test) — 36 tests through the real onEnable: create/stock/trade, sign recognition, item-metadata round-trips, every per-item comparison toggle in both directions, tab completion, chunk-data caching.
  2. A real server (it/) — ci/integration.sh boots 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.
  3. A real client (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.sh runs 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 runs ci/build.sh on 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 disabled maven.yml.old.
  • Requirements to run tier 2/3 locally: JDK 21, network access for the Paper/BKCommonLib downloads (pinned builds, checksummed), Node for the client. CI-wise the suite is one sh ci/build.sh.

Process notes riding along

ci/README.md and 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. The pom.xml BKCommonLib comment also returns to its fuller wording now that ci/integration.sh, which it cites, exists in-tree.

How it was verified

sh ci/build.sh on 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, upstream 2.6.2 differs from the fork's gated tip only by the workflow file above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WJGccjKqRdo8Ax24c44rBS

WhippyRjumi and others added 4 commits August 11, 2026 02:52
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.
@KillerOfPie
KillerOfPie merged commit 0adb212 into Tradeshop:2.6.2 Aug 11, 2026
1 check passed
@KillerOfPie
KillerOfPie deleted the 2.6.2-harness branch August 11, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants