Skip to content

Fix E2E CI: pin mineflayer via committed lockfile (1.21.11 support)#423

Merged
tastybento merged 1 commit into
developfrom
fix/e2e-pin-mineflayer
Jul 11, 2026
Merged

Fix E2E CI: pin mineflayer via committed lockfile (1.21.11 support)#423
tastybento merged 1 commit into
developfrom
fix/e2e-pin-mineflayer

Conversation

@tastybento

Copy link
Copy Markdown
Member

The on-demand E2E workflow (added in #422) failed in CI — the tests never ran because the Mineflayer bot rejected the server version:

Test run failed: Error: Server version '1.21.11' is not supported. Latest supported version is '1.21.4'.

Cause

I'd gitignored package-lock.json, so npm resolves dependency versions fresh on each install. Locally that gave mineflayer 4.37.1 / minecraft-data 3.111.0 (which support 1.21.11 — the tests passed), but CI's unlocked install resolved older versions that cap at 1.21.4. Classic non-reproducible-install bug.

Fix

  • Commit package-lock.json (pins mineflayer 4.37.1 / minecraft-data 3.111.0) so CI installs the same, 1.21.11-capable versions.
  • Key the npm cache on the lockfile instead of package.json — more precise, and it invalidates the stale node_modules the failed run cached.

Verified against this branch via a workflow_dispatch run before merge.

🤖 Generated with Claude Code

The on-demand E2E run failed in CI with "Server version '1.21.11' is not
supported. Latest supported version is '1.21.4'." — without a committed
package-lock.json, CI's fresh npm install resolved an older
mineflayer/minecraft-data than the local run, and it didn't know 1.21.11.

Commit the lockfile (mineflayer 4.37.1 / minecraft-data 3.111.0, which
support 1.21.11) so installs are reproducible, and key the npm cache on
the lockfile (also invalidates the stale node_modules the failed run
cached under the package.json hash).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NKxodNE4h3TsSHMqDEeC8v
@sonarqubecloud

Copy link
Copy Markdown

@tastybento tastybento merged commit 152ef0c into develop Jul 11, 2026
4 checks passed
@tastybento tastybento deleted the fix/e2e-pin-mineflayer branch July 11, 2026 19:42
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.

1 participant