Repository navigation
test: snapshot simulator/plotter output + retire legacy XYZ reference runs - #278
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
G92reference frame) changeestimated_time_s,average_feed_rate_mmpm, and the plotdigest. 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.jsonover 4 representative frozen goldens (hoop, larger hoop, hoop+helical, single helical).tests/test_sim_plot_snapshot.pyasserts current == baseline;FIBERPATH_UPDATE_GOLDENS=1 pytestregenerates it deliberately.The baseline already shows the two things the IR fixes:
total_distance_mm == tow_length_mm(every move counted as tow) and a degenerateaverage_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_goldensand 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 onlyinputs/(axis-detection / smoke; two of three inputs intentionally raise under the current coverage validator). Removed the deadoutputs/(3output.gcode+ 3preview.png); kept the 3 inputs.Verification
This completes the prework (P0 freeze + P1 harness + P2 snapshot). Next is the IR build: #273 types → #274 keystone lowering +
serialize().