Skip to content

test: snapshot simulator/plotter output + retire legacy XYZ reference runs - #278

Merged
CameronBrooks11 merged 1 commit into
mainfrom
chore/sim-plot-snapshot-retire-xyz
Jun 28, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
chore/sim-plot-snapshot-retire-xyz

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Part of #136 (Motion IR epic). Closes #272. Final prework slice P2.

Snapshot (delta visibility for S3/S4)

The simulator and plotter currently re-parse G-code text. Their numbers will legitimately shift in the IR work — adopting the single O1 time model (#275) and consuming the IR (which stops silently dropping the G92 reference frame) change estimated_time_s, average_feed_rate_mmpm, and the plot digest. Those deltas are not covered by the byte-equal G-code gate (test_example_goldens), so this captures today's values as a committed baseline:

  • tests/sim_plot_snapshot.json over 4 representative frozen goldens (hoop, larger hoop, hoop+helical, single helical).
  • tests/test_sim_plot_snapshot.py asserts current == baseline; FIBERPATH_UPDATE_GOLDENS=1 pytest regenerates it deliberately.
  • When S3/S4 migrate the consumers, the JSON diff is the explicit, reviewable delta. Until then it's a tripwire: while G-code stays byte-equal (S2a/S2b) the text-parsing consumers can't change, so it stays green.

The baseline already shows the two things the IR fixes: total_distance_mm == tow_length_mm (every move counted as tow) and a degenerate average_feed_rate_mmpm (= the feed rate).

The three large rocketry triples are intentionally excluded for speed (~6s of the 6.8s total); their G-code is byte-gated by test_example_goldens and their sim/plot deltas mirror the single-helical AvBay case kept in the snapshot. (Logged, not a silent cap.)

Retire legacy XYZ reference runs

tests/cyclone_reference_runs/outputs/* are pre-v0.7.0 XYZ artifacts (G0 X0 Y0 Z0) asserted by nothing — all four tests use only inputs/ (axis-detection / smoke; two of three inputs intentionally raise under the current coverage validator). Removed the dead outputs/ (3 output.gcode + 3 preview.png); kept the 3 inputs.

Verification

  • ruff / ruff format / mypy clean; snapshot test passes (~0.8s); regenerator idempotent.
  • Full backend suite: 132 passed, 8.2s.

This completes the prework (P0 freeze + P1 harness + P2 snapshot). Next is the IR build: #273 types → #274 keystone lowering + serialize().

… runs

Prework slice P2 for the Motion IR epic (#136).

Snapshot: the simulator and plotter re-parse G-code text today, and their numbers
will legitimately shift in the IR work — adopting the single O1 time model
(#275) and consuming the IR (which stops silently dropping the G92 reference
frame) change estimated_time_s, average_feed_rate_mmpm, and the plot digest.
These deltas are NOT covered by the byte-equal G-code gate, so capture today's
values as a committed baseline (tests/sim_plot_snapshot.json) over four
representative frozen goldens (hoop, larger hoop, hoop+helical, single helical).
When S3/S4 regenerate it, the JSON diff is the explicit, reviewable delta. While
the G-code stays byte-equal it also acts as a tripwire. Regenerate deliberately
with FIBERPATH_UPDATE_GOLDENS=1. The three large rocketry triples are excluded
for speed (byte-gated elsewhere; same delta character).

Retire: tests/cyclone_reference_runs/outputs/* are pre-v0.7.0 XYZ artifacts
(`G0 X0 Y0 Z0`) asserted by nothing — every test uses only inputs/ (axis
detection / smoke; two of three inputs intentionally raise under the current
coverage validator). Remove the dead outputs; keep the inputs.

Part of #136. Closes #272.
@CameronBrooks11
CameronBrooks11 merged commit fbacf54 into main Jun 28, 2026
12 checks passed
@CameronBrooks11
CameronBrooks11 deleted the chore/sim-plot-snapshot-retire-xyz branch June 28, 2026 05:32
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.

test: snapshot simulator/plotter goldens + retire legacy XYZ reference runs

1 participant