Skip to content

ModelTest outcome checked against a per-host fixture - #221

Merged
jtklein-agents merged 1 commit into
spec/214-e2e-outcome-checks-for-the-raxml-binariesfrom
216-modeltest-outcome-fixture
Nov 16, 2026
Merged

jtklein-agents merged 1 commit into
spec/214-e2e-outcome-checks-for-the-raxml-binariesfrom
216-modeltest-outcome-fixture

Conversation

@jtklein-agents

Copy link
Copy Markdown
Owner

Closes #216. Part of #214.

Summary

modeltest-outcome.spec.js  (serial, retries 0, one app launch)
  run ModelTest, criterion AICc, on nucleotide.txt
  wait for RAxML_GUI_ModelTest_nucleotide.{out,log,tree}
  parseModelTestLog(.out)            # version + model/score per criterion
  checkFixture('modeltest', settings, actual)
    update mode (RAXMLGUI_UPDATE_FIXTURES=1)  -> write e2e/fixtures/<os>-<arch>/modeltest.json
    otherwise
      no fixture            -> fail, regenerate hint
      settings != fixture   -> fail, names the setting
      compare (rel 1e-4)    -> fail with one block per field, binary version first
  afterAll: cleanupOutputFiles
 e2e/
+├── fixtures/darwin-arm64/modeltest.json
+├── modeltest-outcome.spec.js
+├── updateFixtures.js          # sets update mode, runs the spec
 └── helpers/
+    ├── fixtures.js            # checkFixture, compareOutcome, formatReport
+    ├── modeltestOutcome.js    # parser
+    └── modeltestOutcome.test.js

New script: test:e2e:update-fixtures. No change under src.

Evidence

  • Before: no ModelTest outcome check.
    After: yarn test:e2e passes on darwin-arm64 (4 specs). Jest: 121 tests pass.

With the fixture's AICc score edited to 2470.0698, the spec fails with:

criteria.AICc.score
  expected:  2470.0698
  actual:    2465.0698
  delta:     -5
  tolerance: 0.0001 relative

Fixture: …/e2e/fixtures/darwin-arm64/modeltest.json
Regenerate: yarn test:e2e:update-fixtures

Merge Danger

Door: two-way

Blast Radius: e2e only

The e2e job on Linux and Windows fails on the missing fixture until the later fixtures ticket lands. The parent #214 is not amended for the new script and fixtures module.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jtklein-agents
jtklein-agents merged commit 102677f into spec/214-e2e-outcome-checks-for-the-raxml-binaries Nov 16, 2026
5 of 15 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.

1 participant