Skip to content

2.0.13: dedicated-server scenarios in CI with a lag scenario; first template stays a limit - #27

Merged
MrHakan merged 2 commits into
mainfrom
dedicated-server-ci
Oct 10, 2026
Merged

MrHakan merged 2 commits into
mainfrom
dedicated-server-ci

Conversation

@MrHakan

@MrHakan MrHakan commented Oct 10, 2026

Copy link
Copy Markdown
Owner

E3 and D5 of the 2.1.00 plan (docs/MAJOR_GELISTIRME_PLANI.md), as the repository owner decided on 2026-10-10.

E3: dedicated server in CI. The owner accepted Minecraft's server EULA for this automation, so the Client game tests step now sets AGALARHACK_ACCEPT_SERVER_EULA=true and DedicatedServerGameTest runs on every PR and main push instead of logging that it was skipped. It already covered the real connection, the packet counters, AutoArmor across the socket and a reconnect. New: equipsOverALaggyConnection repeats the equip with every client packet held back 150 ms by a Netty handler at the head of the client pipeline (scheduled on the channel's event loop, so order is kept). The server's copy must end with one helmet equipped, none left in the inventory, empty cursors on both sides and the transfer released. The control is the handler's count of packets it held during the equip.

Locally: 233-249 ms plain, 399-400 ms lagged, 18-19 packets held back, nothing duplicated or lost.

D5: first Netherite template. Stays a documented limit: no deterministic test world can prove a route into a bastion. docs/AUTOGRIND.md says why the limit is deliberate.

Local validation on e89ecb3 (Windows, JDK 25): ./gradlew build, runClientGameTest -PacceptServerEula=true (all client game tests including the dedicated-server ones; nothing skipped), the real-Baritone acceptance run and productionAddonInstallationTest passed. One local run hit a deadlock inside Fabric's game-test threading while closing a world (render thread in IntegratedServer.halt, server and test threads parked on the phase barrier, in the unchanged ModuleLifecycleGameTest) under heavy load from another program; the rerun passed.

🤖 Generated with Claude Code

MrHakan and others added 2 commits October 10, 2026 17:04
E3 of the 2.1.00 plan asks for latency, reconnection and automation on a real dedicated server.
DedicatedServerGameTest already covered the connection, the packet counters, AutoArmor across the
socket and a reconnect, all on loopback, where no click is ever still in flight when the next is due.

equipsOverALaggyConnection times an AutoArmor equip on the plain connection, then puts a Netty
handler at the head of the client's pipeline that holds every outbound write and flush back 150 ms
(scheduled on the channel's own event loop, so order is kept) and repeats the equip with another
helmet. Both runs assert the server's copy: the helmet equipped, none left in the inventory, an
empty cursor on both sides and the transfer channel released. The control is the handler's own
count of packets it held during the equip, since server-side timing is only tick-precise.

Locally: 249 ms plain, 400 ms lagged, 19 packets held back, nothing duplicated or lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s a limit

Turns on AGALARHACK_ACCEPT_SERVER_EULA for the Client game tests step: the repository owner
accepted Minecraft's server EULA for this automation on 2026-10-10, so the dedicated-server
scenarios (connection, packet counters, AutoArmor across the socket with and without 150 ms of lag,
reconnect) run on every pull request and main push instead of logging that they were skipped.

Closes D5 as the owner decided: the first Netherite Upgrade template stays the player's to loot, and
docs/AUTOGRIND.md now says why that limit is deliberate. Raises mod_version to 2.0.13 and records both
in the changelog, the plan and the handover notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 10, 2026 14:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@MrHakan
MrHakan merged commit 661fed0 into main Oct 10, 2026
1 check passed
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