Skip to content

fix(id): restore bevy_ecs 0.19.1 pin for id-bevy-bridge + roc examples bash invocation (#13843) - #17017

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/13843-bevy-ecs-pin
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/13843-bevy-ecs-pin

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Two bounded fixes from the #13843 nightly root-cause record (run 46283456059, head ee202a2; record on the issue, comments 7264118604 + 7264140869). Felix lane 0640-EN.

1. id-bevy-presenter compile break (27 errors) — bevy_ecs version split

The deps-group bump d4e76f3 (2026-11-29) rewrote id-bevy-bridge's pin bevy_ecs = "=0.19.1" → "=0.20.1" (pin-only change, no code). id-bevy-presenter builds on the full bevy 0.19 engine (bevy_ecs 0.19.1), so the graph carried two bevy_ecs versions and every cross-crate type (Entity, World, Component, Resource) mismatched — id-bevy-presenter failed with 27 errors and took id-test-bevy-presenter / id-clippy-bevy-presenter down with it. The bridge manifest's own comment states the design: bevy_ecs pinned to the 0.19 line.

Fix: restore bevy_ecs = "=0.19.1" in pkgs/id/crates/id-bevy-bridge/Cargo.toml and prune the 0.20.1-only subtree from pkgs/id/Cargo.lock (bevy_ecs/macros/macro-logic, bevy_reflect(+derive), bevy_tasks, bevy_platform, bevy_ptr, bevy_utils, bevy_macro_utils + their exclusive transitives; 17 package blocks, lock graph verified closed — every kept dependency resolves to exactly one kept package). Dependency change to report per pkgs/id rules: bevy_ecs for id-bevy-bridge goes 0.20.1 → 0.19.1 (a revert of the accidental bump, restoring the documented pin; no new dependency).

Note: the lockfile was pruned by reachability analysis, not by cargo update — this seat cannot reach the crates.io index (transfers stall at 0 bytes). The remote gate below runs cargo against this lock; if cargo rewrites anything, the gate log will show it.

2. id-roc-examples exit 126 — /usr/bin/env shebang inside the nix sandbox

Nine examples/*/build.sh scripts invoked (cd ../roc-world && ./build-host.sh), executing build-host.sh directly through its #!/usr/bin/env bash shebang. The nix build sandbox has no /usr/bin/env: ./build.sh: ./build-host.sh: /usr/bin/env: bad interpreter: No such file or directory. The four apps/*/program/build.sh scripts and nix-common.nix already use the working pattern, bash ./build-host.sh. This change aligns the nine example scripts to that pattern (one word each). Proof for this half is by pattern identity with the four apps scripts that pass in the same sandbox today + bash -n on all nine; the executing proof is the next nightly's roc-examples check.

Gate

Remote (fleet-command, this branch): cd pkgs/id && cargo test -p id-bevy-bridge -p id-bevy-presenter — run id and verdict posted on this PR when finalized. Related: #13525's harness fix is PR #17005 (separate lane); the planted-bug baseline red is a downstream symptom of the compile stack and clears with it.

Refs #13843 (does not close it — the fmt layer verdict and the remaining stack accounting are on the issue).


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b3c4d8c0-bb02-40fc-bbff-3144501d2b61

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate dispatched by lane 0640-EN: fleet-command run 46321889985 (repo developing-today/code, ref felix/13843-bevy-ecs-pin) — cd pkgs/id && cargo test -p id-bevy-bridge -p id-bevy-presenter. Verdict will be posted here from the finalized log (executed test counts, incl. the bridge replay-oracle bevy_bump_gate_* tests). Felix: merge on a firsthand GREEN read of that log, per standing rule — not on the run conclusion alone.

Also recorded on #13843 (7264283614): the fmt layer is still red on current main (run 46321497274, 23 files) and is a separate mechanical sweep, deliberately not in this PR.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate read #1 (lane 0640-EN, firsthand from the finalized log of run 46321889985): environment void for the test verdict — but the lockfile half is proven.

  • Cargo accepted the pruned lock as-is (no re-resolution, no lock errors) and the whole log contains zero 0.20.1 references; compilation reached Compiling bevy_ecs v0.19.1 — the version split is gone at graph level.
  • The run then died in wayland-sys v0.31.11's build script: pkg-config is not installed on the bare runner (Could not run pkg-config --libs --cflags wayland-client). Cargo aborted before the bridge/presenter crates compiled, so no tests executed — this run is not a test verdict either way.

Corrected gate dispatched: run 46322687886 — bridge tests alone (no wayland in its graph), then the presenter tests under nix shell nixpkgs#pkg-config nixpkgs#wayland nixpkgs#libxkbcommon. Verdict follows from that log.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate read #2 (lane 0640-EN, firsthand from run 46322687886's finalized log):

  • id-bevy-bridge: GREEN. cargo test -p id-bevy-bridge — suites 3 + 8 + 9 passed, 0 failed, BRIDGE-RC=0, including the replay oracle bevy_bump_gate_recorded_corpus_replays_to_its_golden_state ... ok. The bridge compiles and passes on bevy_ecs 0.19.1 with the pruned lock.
  • id-bevy-presenter leg of that run: my dispatch defect, no evidence. The inner bash -c repeated cd pkgs/id from inside pkgs/id (cd: pkgs/id: No such file or directory); the presenter never started. The nix packages themselves (pkg-config, wayland 1.26, libxkbcommon) downloaded fine.

Presenter-only re-dispatch: run 46323823380 — cargo test -p id-bevy-presenter under nix shell with PKG_CONFIG_PATH/LD_LIBRARY_PATH set from the realised wayland/libxkbcommon store paths. Verdict follows from that log.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate note (lane 0640-EN): presenter run 46323823380 was a second dispatch defect of mine — nix build --print-out-paths nixpkgs#wayland returned multiple outputs (out + man), so the joined path broke the env invocation before cargo started (exit 127; log read firsthand). No presenter evidence either way from that run.

Re-dispatched with single outputs pinned (nixpkgs#wayland.out, nixpkgs#libxkbcommon.out): run 46324939659. Bridge half remains GREEN per run 46322687886 (20 tests, replay oracle ok, BRIDGE-RC=0).

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate note (lane 0640-EN): presenter run 46324939659 moved one layer deeper — pkg-config now runs, but nixpkgs keeps wayland-client.pc in the dev output, not out (log read firsthand; PKG_CONFIG_PATH itself was correct). Re-dispatched with dev outputs realised for the pkg-config path and out outputs for the library path: run 46325940303.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate verdict — GREEN, executed proof complete (lane 0640-EN, firsthand log reads).

  • id-bevy-bridge (run 46322687886): 20 tests passed / 0 failed across 3 suites, BRIDGE-RC=0, replay oracle bevy_bump_gate_recorded_corpus_replays_to_its_golden_state ... ok.
  • id-bevy-presenter (run 46325940303, conclusion success): the crate compiles (impossible under the split graph — all 27 errors were cross-version type mismatches) and its suites execute 21 passed / 0 failed (8 + 8 + 5; the two 0-count lines are the empty bin/doc targets). Gate environment: pkg-config + wayland/libxkbcommon from nix, .pc paths from the realised dev outputs, library paths from the out outputs.
  • Lockfile: accepted by cargo as-is in every run; zero 0.20.1 references in the gate logs; Compiling bevy_ecs v0.19.1 is the only bevy_ecs compiled.

The roc half of this PR is proven by pattern identity (the four apps/*/program/build.sh scripts use bash ./build-host.sh and pass in the same sandbox) + bash -n on all nine files; its executing proof is the next nightly's roc-examples check.

Felix: this PR is ready to merge on this verdict.

@developing-today-fleet
developing-today-fleet Bot merged commit ce8f0d0 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/13843-bevy-ecs-pin branch November 30, 2026 00:07
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.

0 participants