Skip to content

feat: upload the smoke report dir so per-script timings persist - #167

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/smoke-timings-artifact-y3fdy7
Aug 24, 2026
Merged

feat: upload the smoke report dir so per-script timings persist#167
Jammy2211 merged 1 commit into
mainfrom
claude/smoke-timings-artifact-y3fdy7

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Part of PyAutoLabs/PyAutoHands#264 (phase 2 of the test-performance board arc, #163) — the workflow half of PyAutoLabs/PyAutoHands#265: with the runner now emitting smoke_timings.json per gate run, this makes the dataset persist.

  • smoke-tests.yml gains an actions/upload-artifact@v4 step between the runner and the Slack notifier: name: smoke-timings-${{ matrix.python-version }}, if: always(), if-no-files-found: ignore — a docs-only skipped run or a pre-report crash never fails on the upload.
  • The path is a glob (test-results/ plus **/smoke_timings.json), not one literal directory: the reusable workflow doesn't pass --report-dir — each workspace's own run_smoke.py does — so a workspace using another report-dir name still lands its timings with no per-repo edit.
  • No retention-days: the timing dataset keeps the repo's full default artifact retention (unlike workspace-validation.yml's 30-day transient artifacts).

Tests: 576 passed (+3 workflow-wiring assertions).

🤖 Generated with Claude Code

https://claude.ai/code/session_01EoDPz2LevKeBaDwqFKtZrU


Generated by Claude Code

PyAutoHands#264 has the runner write a consolidated `smoke_timings.json` into
its report dir on every report write — one row per executed script/notebook
with the runner's own measured duration, the cap in force and the exit code.
That file dies with the job unless something uploads it, and the job log it
would otherwise be scraped from ages out with log retention.

Uploading it here, in the reusable workflow, means the dataset accumulates for
every gate run across all ten workspaces at once, with no per-repo change.

The path is a glob rather than one literal directory because this workflow
does not pass `--report-dir`: each workspace's own `.github/scripts/run_smoke.py`
does, and the runner script is deliberately left in the workspace (see the
file header). `test-results/` is the house name — what workspace-validation.yml
passes to its own `run_python.py` invocations — and the second pattern catches
a workspace that named its report dir something else.

`if: always()` plus `if-no-files-found: ignore` are both load-bearing. A
docs-only change skips the matrix entirely and a crash before the first report
write leaves no report dir at all; neither is a reason to fail a gate. An
upload that failed closed would turn "we collected no timings" into "the PR is
red", which is backwards. No `retention-days`, so the dataset keeps the repo's
full default retention rather than a shortened window.

The step sits ahead of the Slack notifier so a failing run's timings — the
most interesting ones — are collected rather than skipped.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EoDPz2LevKeBaDwqFKtZrU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants