Skip to content

Stage 0.1: Golden-fixture convention and regeneration tooling#440

Merged
jepegit merged 4 commits into
masterfrom
428-golden-fixture-convention
Jul 9, 2026
Merged

Stage 0.1: Golden-fixture convention and regeneration tooling#440
jepegit merged 4 commits into
masterfrom
428-golden-fixture-convention

Conversation

@jepegit

@jepegit jepegit commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds tests/data/goldens/<suite>/ as the shared home for cellpy 2 characterization oracles (parquet for frames, JSON for scalars/meta).
  • Introduces dev/regenerate_goldens.py with @register_golden_suite registration, --verify byte-identical check, and stable parquet/JSON writers.
  • Ships toy suite pipeline_smoke on the canonical Arbin .res (103 steps / 18 cycles / cycle-1 data_point 1457) with two @pytest.mark.essential regression tests picked up by CI Tier 1.
  • Documents the convention in tests/README.md and tests/data/goldens/README.md.

Closes #428

Test plan

  • uv run python dev/regenerate_goldens.py --verify pipeline_smoke
  • uv run pytest tests/test_goldens.py -v
  • uv run pytest -m essential --ignore=tests/test_plotutils_summary_plot.py

Made with Cursor

Establish tests/data/goldens/ with dev/regenerate_goldens.py suite registry,
pipeline_smoke oracle on the canonical Arbin .res, essential regression tests,
and documentation. Closes #428.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

cursor[bot]
cursor Bot approved these changes Jul 9, 2026
…m CI

Floor summary date_time to microsecond precision before golden write and
compare so Linux and Windows agree after parquet round-trip.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

cursor[bot]
cursor Bot approved these changes Jul 9, 2026
Exact assert_frame_equal on all columns except date_time; compare date_time
as epoch-ns with 1 µs absolute tolerance to absorb cross-platform parquet drift.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

cursor[bot]
cursor Bot approved these changes Jul 9, 2026
Tier 1 (ci.yml) is now the uv essential job alone. Full conda pytest on
Linux/macOS/Windows already lives in ci-scheduled.yml — no duplicate slow
runs on every PR. Document essential-marker contract in ci-tiers.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@cursor cursor Bot 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.

Approved. Cursor Bugbot check was not present on this PR, so that signal was skipped; no applicable approval policies were found. No reviewers assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@jepegit jepegit merged commit c59dd03 into master Jul 9, 2026
2 checks passed
@jepegit jepegit deleted the 428-golden-fixture-convention branch July 9, 2026 14:38
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.

Stage 0.1: Golden-fixture convention and regeneration tooling

1 participant