Conversation
The test was passing even with the typo because a nonexistent file still raises AlignmentError.
This avoids the assumption that a file existence check has not run, which may change with implementations unrelated to what these tests are targeting.
This hasn't been useful in our workflows. Removing it now to simplify future work around --config to other commands. The same goes for the search_paths parameter to get_referenced_files. FIXME: add to changelog
To be used in the following commit. 2 additional improvements: 1. Made config_file optional 2. Added a clear docstring
This marks input files using a dedicated InputFile argparse type. Instead of simply treating it as a string to be evaluated downstream, it is now resolved to an absolute path. This is useful for workflows that define AUGUR_SEARCH_PATHS to support user analysis directories with `nextstrain run`. Tests have been updated to reflect that file paths are now stored internally as resolved absolute paths. FIXME: add changelog entry FIXME: apply to other commands too?
The InputFile type resolves values to an absolute path, which naturally includes a check for file existence and errors if it cannot be found anywhere. This commit removes similar checks from downstream code.
victorlin
force-pushed
the
victorlin/resolve-input-file-paths
branch
from
September 23, 2026 22:07
81f9cf4 to
10c136e
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2051 +/- ##
==========================================
+ Coverage 74.30% 74.39% +0.09%
==========================================
Files 86 86
Lines 10767 10743 -24
Branches 2099 2093 -6
==========================================
- Hits 8000 7992 -8
+ Misses 2378 2365 -13
+ Partials 389 386 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
victorlin
removed this pull request from stack #2052
September 26, 2026 00:46
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.
Description of proposed changes
Snippet from main commit:
This marks input files using a dedicated InputFile argparse type. Instead of simply treating it as a string to be evaluated downstream, it is now resolved to an absolute path. This is useful for workflows that define AUGUR_SEARCH_PATHS to support user analysis directories with
nextstrain run.Related issue(s)
Follow-up to #2049 (comment)
Checklist