fix(bench): the regression harness builds again - #400
Merged
Conversation
`build_and_hand_over` passed `memory_limit='1GB'` to `lps.build`, which has had no such parameter since #189 retired the engine that took one. Half the regression workloads have been raising `TypeError` ever since — invisibly, because `bench/regressions` is outside `testpaths` and nothing in CI runs it. The docstring now also says what the harness measures: *whatever `lps.build` builds with*. Nothing here names an engine, so `LPSPEC_ENGINE` selects one and the same two commands answer the same question for either — with the caveat that matters, that a stored baseline does not record which engine produced it, so comparing across engines measures the engine rather than the change. Verified on `dispatch-s`: both workloads run, and the memray peak separates the engines cleanly (19.7 MB against 118.5 MB), which is the signal perf work needs.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe benchmark documentation now defines engine selection through ChangesBenchmark build behavior
Estimated code review effort: 2 (Simple) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
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.
build_and_hand_overpassesmemory_limit='1GB'tolps.build, which has had no such parameter since #189 retired the engine that took one. Half the regression workloads have been raisingTypeError— invisibly, becausebench/regressionssits outsidetestpathsand nothing in CI runs it.Why this matters beyond the one line
This is the harness for "did this change make it worse?" — one lane compared to itself, memray rather than RSS because the bias cancels within a lane and the number is attributable to a call stack. It is what any performance work leans on, and half of it was dead.
It is also already engine-agnostic, which is the part worth writing down: nothing in it names an engine, so it goes through
lps.buildandLPSPEC_ENGINEselects one. The same two commands answer the same question for either engine — no per-engine tooling, no second harness.The docstring now says that, with the caveat that matters: a stored baseline does not record which engine produced it, so comparing across engines measures the engine rather than the change.
Verified on
dispatch-s, both workloads running:Scope
One line of behaviour plus the docstring. No new tooling — comparing two runs by hand with
--benchmark-memory-compareis what the harness already does and it is enough.🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
LPSPEC_ENGINEcontrols the engine used during builds.Bug Fixes