Skip to content

release: v1.0.4 + fix write_firstrun_report version stamp - #12

Merged
tangym merged 2 commits into
mainfrom
tangym/release-v1.0.4
Aug 15, 2026
Merged

release: v1.0.4 + fix write_firstrun_report version stamp#12
tangym merged 2 commits into
mainfrom
tangym/release-v1.0.4

Conversation

@tangym

@tangym tangym commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Cuts v1.0.4 (patch) and fixes a latent version-stamp bug so this bump actually reaches every gate report.

Changes

# Commit What
1 fix(version): stop hardcoding v1.0.0-rc1 in write_firstrun_report Routes scripts/write_firstrun_report.py through scripts/_version.ACTION_VERSION like its two siblings. Extends tests/test_action_version.py so all three writers (compare_runs, detect_test_set_drift, write_firstrun_report) are covered — the exact drift that caused v1.0.0-rc1 to survive across v1.0.0 → v1.0.3 in FirstRun reports can no longer happen.
2 chore(release): bump ACTION_VERSION to v1.0.4 Single-line bump v1.0.3 → v1.0.4.

Why v1.0.4 (patch)

Since v1.0.3, six merged PRs — all fixes or additive input options, no breaking changes:

The hardcoded-version bug

scripts/write_firstrun_report.py had its own ACTION_VERSION = "v1.0.0-rc1" that was never bumped. Every FirstRun gate_report.json shipped stamped with a version that was never released — the same bug class scripts/_version.py was introduced to eliminate. The guard test only covered compare_runs and detect_test_set_drift, so this third writer drifted silently. Now covered.

Testing

  • tests/test_action_version.py: 4/4 pass locally against commit 1.
  • test_version_matches_the_newest_release_tag will fail locally against commit 2 until v1.0.4 is tagged — that is the expected "bump then tag" invariant documented in docs/release-procedure.md. Will go green post-tag.

Release checklist (after merge)

  1. git tag v1.0.4 && git push origin v1.0.4 (release workflow re-points v1 automatically).
  2. gh release create v1.0.4 --repo responsibleai/assert-ai-action --title "ASSERT safety regression gate v1.0.4" --notes-file release-notes.md — from the exact semver tag, never from v1.
  3. Verify git rev-parse v1 == git rev-parse v1.0.4.

Follow-up

tangym added 2 commits August 15, 2026 02:11
write_firstrun_report.py had its own "ACTION_VERSION = v1.0.0-rc1" that
never got bumped, so every FirstRun gate_report.json shipped with a version
string that was never released. Same bug class that scripts/_version.py was
introduced to fix -- but the guard test only covered compare_runs and
detect_test_set_drift, so the drift here slipped through v1.0.0..v1.0.3.

Route write_firstrun_report through scripts/_version like the other two
writers, and extend tests/test_action_version.py to enforce the invariant
on all three so it cannot regress.
Cutting v1.0.4 (patch). Since v1.0.3 all changes are fixes or additive input
options -- no breaking changes:

  #11 fix(compare): prefer newest per-generation dir; skip baseline gen output in warm-cache
  #10 fix(cache):   warm assert-ai's artifact cache from the baseline so paired McNemar can reach PASS
   #9 fix(baseline): anchor _find_run_dir on suite.json for nested layouts
   #8 feat(baseline): event-aware default for baseline-branch
   #7 feat(gate):     add run-timeout-minutes input to cap eval-step wall clock
   #6 feat(install):  add assert-ai-ref and assert-ai-repo inputs for git installs

Plus the v1.0.0-rc1 hardcode fix in the previous commit.

tests/test_action_version.py will fail against local tags until v1.0.4 is
tagged from this commit; that is expected per docs/release-procedure.md
(bump then tag).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR cuts release v1.0.4 and fixes a latent bug where scripts/write_firstrun_report.py stamped FirstRun gate reports with a hardcoded, stale version instead of the shared action version constant.

Changes:

  • Route scripts/write_firstrun_report.py to import ACTION_VERSION from scripts/_version.py (matching the other report writers).
  • Extend tests/test_action_version.py to assert version-constant agreement across all three scripts and ensure the version stamp is written into FirstRun/compare gate reports.
  • Bump scripts/_version.py from v1.0.3 to v1.0.4.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/test_action_version.py Expands version drift/stamping coverage to include write_firstrun_report and FirstRun stamping behavior.
scripts/write_firstrun_report.py Removes hardcoded version and imports ACTION_VERSION from the shared version module.
scripts/_version.py Updates the single source-of-truth action version to v1.0.4.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tangym
tangym merged commit 4e22663 into main Aug 15, 2026
8 checks passed
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