-
Notifications
You must be signed in to change notification settings - Fork 369
Reduce BenchmarkCompileSimpleWorkflow overhead to remove benchmark-only regression
#27285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,9 @@ Analyze the issue: ${{ steps.sanitized.outputs.text }} | |
| b.Fatal(err) | ||
| } | ||
|
|
||
| compiler := NewCompiler() | ||
| compiler := NewCompiler(WithNoEmit(true)) | ||
| compiler.SetQuiet(true) | ||
| compiler.SetApprove(true) | ||
|
|
||
| // Warm up: run once before timing to prime one-time caches (schema compilation, etc.) | ||
| _ = compiler.CompileWorkflow(testFile) | ||
|
Comment on lines
45
to
46
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BenchmarkCompileSimpleWorkflow now sets no-emit/quiet/approve, which disables lockfile writing and safe-update enforcement. Please update the benchmark doc comment (or rename the benchmark) to explicitly state it measures the compile path without emission and without safe-update enforcement, so results aren’t misinterpreted as the default compilation behavior.