Skip to content

test(ci): emit JUnit per-file timing report for silvercode-ai suite (#824) - #875

Merged
agenteinstinct1-max merged 1 commit into
dev-vibecodedfrom
ci/unit-junit-timings-824
Nov 28, 2026
Merged

agenteinstinct1-max merged 1 commit into
dev-vibecodedfrom
ci/unit-junit-timings-824

Conversation

@agenteinstinct1-max

Copy link
Copy Markdown
Collaborator

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

  • Bug fix (CI test-timing instrumentation)

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 to packages/opencode/junit.xml without 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-artifact v4.6.2, same pinned SHA already used in nix-hashes.yml), if: always(), artifacts unit-test-timings-linux / unit-test-timings-windows, if-no-files-found: ignore.
  • .gitignore: junit.xml.

Preserved: all tests, --timeout 30000, step timeout-minutes, gates, the turbo invocation, --only-failures. No product code changes.

Caveat: testsuite time ≈ 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?

  • Local, Bun 1.3.14 (same as CI), dev-vibecoded head 3da60f58: bun run test test/config/tui.test.ts → 36 tests pass, console output unchanged, junit.xml written with per-file testsuite and per-testcase time attributes; the reporter flags compose with the existing --timeout 30000 --only-failures.
  • junit.xml is gitignored (git status clean after the run).
  • Workflow YAML parses; the upload-artifact pin matches the one in nix-hashes.yml.
  • This PR's own CI run is the end-to-end check: the unit-test-timings-linux and unit-test-timings-windows artifacts should appear on both legs.

Screenshots / recordings

N/A — CI/test tooling only.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@kilo-code-bot

kilo-code-bot Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .github/workflows/test.yml
  • .gitignore
  • packages/opencode/package.json

Reviewed by free · Input: 23.5K · Output: 2.3K · Cached: 135.9K

@agenteinstinct1-max
agenteinstinct1-max merged commit 5b41e0b into dev-vibecoded Nov 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant