Repository navigation
Description
Parent
What to build
Command pins for today's Run: tests that fix the exact argument lists a run produces, before any command building moves. No file under src/app/store/ other than the new test files changes.
One table of cases, shared by two test files, run through Vitest file snapshots (toMatchSnapshot). Each case builds a real Run with its real option objects (prior art: makeRun in src/app/store/Run.computeds.test.ts), sets the seed through setRandomSeed, a fixed output folder and a fixed thread count, and snapshots run.args.
Cases:
- Every analysis, 8 for RAxML and 6 for RAxML-NG, in three variants:
- Bare: a binary without the threads flag where one exists (
raxmlHPC), every option off, default partition. - Full: a threaded binary, a loaded partition file, an outgroup, both constraint trees, branch lengths, SH-like values, a starting tree: whatever that analysis accepts.
- Alternate: a non-default partition with no partition file, and SH-like values without branch lengths.
- Bare: a binary without the threads flag where one exists (
- ModelTest-NG for a nucleotide, a protein and another data type.
- ASTRAL with and without a loaded tree.
run.commandandrun.settingsFileContentonce per binary (RAxML, RAxML-NG, ModelTest-NG, ASTRAL).
The first test file runs the table as the test setup has it (host not Windows, paths like /out). The second sets the host to Windows before importing the store and uses Windows-style paths (C:\out); Run.ts reads the Windows flag once at import. The binary list differs on Windows, so the table picks binaries that exist on the platform it runs for. Prior art for a Windows host: src/app/store/host.test.ts.
Check once, with a coverage provider installed temporarily, that every branch in raxmlArgs, raxmlNgArgs, modeltestNgArgs, astralArgs, the args getter and the command getter is hit by the two pin files. package.json and yarn.lock do not change. Add cases until it is. The RAxML-NG ancestral-states builder chooses its partition by "more than one alignment" (Run.ts:792); pin it as it is.
Acceptance criteria
- One shared table of cases and two test files, one per platform
- Every RAxML and RAxML-NG analysis has a bare, a full and an alternate pin on both platforms
- ModelTest-NG has three pins (nucleotide, protein, other) and ASTRAL two (with and without a tree) on both platforms
-
run.commandandrun.settingsFileContentare pinned once per binary - Every pin uses a real
Runwith real option objects, a fixed seed, output folder and thread count; two runs of the suite produce identical snapshots - Every branch in the four builders, the
argsgetter and thecommandgetter is hit; the pull request states the coverage figures from the one-off run -
package.jsonandyarn.lockare unchanged - No source file other than the new test files and their snapshots changes
-
yarn verifypasses
Activity
Pin the generated commands for every analysis (#420) (#423)
jtklein-agents commentedon Nov 27, 2026
Merged into spec/419-split-command-building-out-of-run-ts via #423 (97e7041). Open point: the one-off coverage run did not happen, so the branch-coverage criterion rests on two code readings; the commands to get the figures are in the pull request.