Skip to content

test(golden_record): re-enable classifier_fast on fixed main#350

Merged
krystophny merged 1 commit into
mainfrom
fix/golden-record-restore-classifier-fast
May 22, 2026
Merged

test(golden_record): re-enable classifier_fast on fixed main#350
krystophny merged 1 commit into
mainfrom
fix/golden-record-restore-classifier-fast

Conversation

@krystophny
Copy link
Copy Markdown
Member

Summary

Follow-up to #323. The squash-merged classification fix means main now
matches the output that this branch's simple.x produces for
golden_record_classifier_fast, so the temporary
GOLDEN_RECORD_SKIP_CASES=classifier_fast escape hatch added in #323
can be removed.

Two small changes:

  1. test/tests/CMakeLists.txt: drop GOLDEN_RECORD_SKIP_CASES=classifier_fast
    from the per-test ENVIRONMENT. The SKIP_CASES plumbing in
    compare_golden_results.sh stays in place for future
    intentional-divergence bug fixes (just don't set the env var
    unless a fix needs it).
  2. test/golden_record/compare_golden_results.sh: drop
    avg_inverse_t_lost.dat from the classifier file list. That file is
    only written when at least one particle is actually lost; with the
    fast_class fix the small classifier_fast test loses zero particles,
    so neither ref nor cur writes it. The comparator's "reference file
    missing" check then spuriously fails even though both runs agree
    byte-for-byte on the files that do exist.

Verification

Full regression suite, against freshly rebuilt main reference (cached
runs/run_main and simple_main rebuilt to pick up #323):

$ make test-regression
...
13/13 Test #50: golden_record_sanity ....................   Passed    0.57 sec
100% tests passed, 0 tests failed out of 13
Total Test time (real) = 411.09 sec

Both classifier cases:

1/1 Test #45: golden_record_classifier_fast ...   Passed   16.73 sec
1/1 Test #44: golden_record_classifier_combined ...   Passed   16.18 sec

Test plan

PR #323 fixed the fast_class bug that previously marked regular orbits
as lost. The temporary GOLDEN_RECORD_SKIP_CASES=classifier_fast escape
hatch added in #323 is no longer needed now that main carries the fix,
so drop it from the per-test ENVIRONMENT in test/tests/CMakeLists.txt.
The SKIP_CASES plumbing in compare_golden_results.sh stays in place
for future intentional-divergence bug fixes.

Also drop avg_inverse_t_lost.dat from the classifier_fast /
classifier_combined file list in compare_golden_results.sh: that file
is only written when at least one particle is actually lost. With the
fast_class regression fixed, the small classifier_fast test loses zero
particles, so neither ref nor cur produces the file. The comparator's
"reference missing" check then spuriously fails even though both runs
agree byte-for-byte on the files that do exist.

make test-regression now runs 13/13 green locally, including the full
golden record set (classifier_fast 16.7 s, classifier_combined 16.2 s).
@qodo-code-review
Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@krystophny krystophny merged commit 2e07f0e into main May 22, 2026
7 checks passed
@krystophny krystophny deleted the fix/golden-record-restore-classifier-fast branch May 22, 2026 09:26
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