Repository navigation
test(ci): emit JUnit per-file timing report for silvercode-ai suite (#824) - #875
Merged
Merged
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by free · Input: 23.5K · Output: 2.3K · Cached: 135.9K |
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.
Issue for this PR
Fixes #824
Refs #872 — this adds the per-file attribution evidence; it does not fix the slow suite itself.
Type of change
What does this PR do?
The silvercode-ai (packages/opencode) suite is ~99% of the unit job's time (351 files in one bun process), and its test script runs with
--only-failures, so CI has no per-file timing decomposition — the evidence gap behind #872 and what #824 asked for. #824's draft approach (removing--only-failures) perturbs timing with extra console output; this PR instead uses bun's built-in JUnit reporter, which writes per-file<testsuite time>and per-test<testcase time>entries topackages/opencode/junit.xmlwithout changing console output or which tests run.Changes (3 files, +10/-1):
packages/opencode/package.json: test script gains--reporter=junit --reporter-outfile=junit.xml(existing flags untouched)..github/workflows/test.yml: new "Upload unit test timing report" step (actions/upload-artifactv4.6.2, same pinned SHA already used innix-hashes.yml),if: always(), artifactsunit-test-timings-linux/unit-test-timings-windows,if-no-files-found: ignore..gitignore:junit.xml.Preserved: all tests,
--timeout 30000, steptimeout-minutes, gates, the turbo invocation,--only-failures. No product code changes.Caveat:
testsuitetime ≈ sum of test bodies; per-file bootstrap/teardown shows up as suite-vs-sum residual, not attributed per file.How did you verify your code works?
3da60f58:bun run test test/config/tui.test.ts→ 36 tests pass, console output unchanged,junit.xmlwritten with per-file testsuite and per-testcase time attributes; the reporter flags compose with the existing--timeout 30000 --only-failures.junit.xmlis gitignored (git statusclean after the run).nix-hashes.yml.unit-test-timings-linuxandunit-test-timings-windowsartifacts should appear on both legs.Screenshots / recordings
N/A — CI/test tooling only.
Checklist