Repository navigation
fix(ci): strip colour from the benchmark output before it is pasted into a PR comment - #997
Merged
Merged
Conversation
…nto a PR comment #995 made the benchmark produce real figures, and the first comment it posted wrapped every one of them in raw escape codes: ^[[0m^[[38;5;245mREST: GET /v1/jobs: ^[[0m → Average response time: 84.36ms deno bench colourises even when stdout is a pipe, and benchmark-results.txt is pasted verbatim into the comment body. NO_COLOR=1 fixes it at the source, so the artifact is clean too. Verified locally with CI's env: 0 escape sequences in the output, summary rows unchanged. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
📊 Performance Benchmark Results |
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.
Follow-up to #995, which made the benchmark produce real figures for the first time. The comment it posted wrapped every one of them in raw escape codes:
deno benchcolourises even when stdout is a pipe, andbenchmark-results.txtis pasted verbatim into the comment body.NO_COLOR: '1'fixes it at the source, so the uploaded artifact is clean too.Verified locally with CI's exact env: 0 escape sequences, summary rows unchanged.
Pushed with SKIP_PREPUSH, deliberately
pnpm prepushcould not pass on this machine, and not because of this change. The gated api suite wandered across four runs, with different tests failing each time and none related to a workflow env var:The shared local stack has accumulated 99 stale
@example.*users and 60testorganizations, which collide with the fixed-email fixtures, and another session is loading the same stack — the last run took 3m52s against 41s earlier. CI runs on a clean stack and passed 163/0 on #995 minutes before this branch was cut.Clearing it needs
pnpm supa db reset, which would destroy the other session's data on that stack, so the skip was the less damaging option. It was authorised explicitly rather than taken quietly. CI is the real check here — if the gated suite is red on this PR, that is a genuine signal and I was wrong about the cause.Related
The benchmark also exited 1 on one local run with
AbortError: The signal has been abortedin the concurrency case, under that same contention. That is the flakinesscontinue-on-errorexists for, and #995's verify step still passes because the results file is non-empty — working as designed. One more reason not to read these figures as precise; see the caveats on #987.🤖 Generated with Claude Code