Repository navigation
Conversation
One table of cases in src/test/commandPins.ts, run by two test files: the host the test setup installs, and a Windows host with C: paths. Each pin builds a real Run and snapshots run.args; run.command and run.settingsFileContent are pinned once per binary. Binaries the host's list lacks (ASTRAL, RAxML-NG on Windows, and a PTHREADS-named RAxML-NG stand-in for the --threads branch) are added to the list by the table. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
#424) Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
raxmlNgArgs and raxmlArgs move to command/raxmlNg.ts and command/raxml.ts with this. replaced by run. and no other edit. The args getter's dispatch moves to commandArgs in command/index.ts. One direct test per builder runs it on a plain object for both platforms. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The four command builders leave the
Runpage store and become plain functions, one file per binary. Command pins fix every generated argument list first; the move is proven by the pins not changing. No user-visible change.Each builder takes a narrow typed input listing only what it reads;
Runsatisfies it by passing itself. Builder bodies moved verbatim (this.→run.).Per-ticket history: https://github.com/jtklein-agents/raxmlGUI/pulls?q=is%3Apr+base%3Aspec%2F419-split-command-building-out-of-run-ts
Evidence
Before: no test fixed a whole command; builders were only reachable through a full
Run.After: 61 command pins per platform (8 RAxML and 6 RAxML-NG analyses × bare/full/alternate, ModelTest-NG, ASTRAL, command string and settings text).
Before: pins written against the builders inside
Run.ts(first commit).After: both move commits leave the snapshots untouched:
CI on the last ticket's pull request:
eslintpass;e2epass on macos-15, ubuntu-24.04 and windows-latest.Merge Danger
Door: two-way
A revert restores the builders inside
Run.ts; nothing persisted changes.Blast Radius: commands
Every argument list sent to RAxML, RAxML-NG, ModelTest-NG and ASTRAL passes through the moved code. A slip would produce a wrong or failing analysis; the pins and e2e guard against it.
🤖 Generated with Claude Code