Skip to content

test: add corpus golden report snapshots - #45

Merged
ebihara99999 merged 1 commit into
mainfrom
feature/golden-snapshot-regeneration
Jul 10, 2026
Merged

test: add corpus golden report snapshots#45
ebihara99999 merged 1 commit into
mainfrom
feature/golden-snapshot-regeneration

Conversation

@ebihara99999

Copy link
Copy Markdown
Owner

Purpose

Refs #41. This is stacked on #44 and implements the third PR-plan slice: committed golden reports and an out-of-band regeneration task.

Changes

  • Commit one pretty-printed CodeKeeper JSON report per vendored GitLab corpus file under spec/fixtures/golden_reports/gitlab/.
  • Generate reports through the existing corpus runner using repository-relative corpus paths, so snapshot paths do not depend on the execution environment.
  • Add RSpec coverage that verifies one snapshot exists per corpus file, snapshots match current CodeKeeper output, and every recorded report path is repository-relative.
  • Add bundle exec rake corpus:regenerate_golden_reports as the explicit regeneration task.
  • Document the snapshot location and regeneration procedure in the corpus README.

Impact

This is test-only. Runtime library behavior is unchanged. The regeneration task is not part of CI; CI only verifies the committed snapshots.

Verification

  • bundle exec rake corpus:regenerate_golden_reports
  • bundle exec rspec - 80 examples, 0 failures
  • bundle exec rubocop - 41 files inspected, no offenses
  • git diff --check - no whitespace errors

Scope Out

  • Full-repository sweeps
  • Additional corpus selection
  • RuboCop differential changes beyond the stack base

@ebihara99999
ebihara99999 force-pushed the feature/golden-snapshot-regeneration branch from 906e877 to 2a2ada7 Compare July 6, 2026 05:55
@ebihara99999
ebihara99999 force-pushed the feature/rubocop-differential-baseline branch from f7a0a93 to f337cdc Compare July 10, 2026 15:03
Base automatically changed from feature/rubocop-differential-baseline to main July 10, 2026 15:28
Commit one pretty-printed CodeKeeper JSON report per vendored corpus file and add an explicit Rake task to regenerate them. The snapshots use repository-relative paths so regenerated diffs are stable across machines.
@ebihara99999
ebihara99999 force-pushed the feature/golden-snapshot-regeneration branch from 2a2ada7 to 919c6ef Compare July 10, 2026 15:29
@ebihara99999
ebihara99999 marked this pull request as ready for review July 10, 2026 15:29
@ebihara99999
ebihara99999 merged commit dbdfee0 into main Jul 10, 2026
6 checks passed
@ebihara99999
ebihara99999 deleted the feature/golden-snapshot-regeneration branch July 10, 2026 15:30
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.

1 participant