Skip to content

Report actual missing filename for index paths#1014

Open
huddlej wants to merge 1 commit into
masterfrom
fix-index-missing-file-error
Open

Report actual missing filename for index paths#1014
huddlej wants to merge 1 commit into
masterfrom
fix-index-missing-file-error

Conversation

@huddlej
Copy link
Copy Markdown
Contributor

@huddlej huddlej commented Aug 5, 2022

Description of proposed changes

Fixes a confusing error message produced by augur index when the output directory for the sequence index does not exist but the error message says the sequences file is missing. The fix is to use the actual filename associated with the FileNotFoundError to report the "missing" file, instead of assuming that the missing file is the input.

Testing

  • Adds a functional test to capture this expected behavior.
  • Tested by CI

Fixes a confusing error message produced by augur index when the output
directory for the sequence index does not exist but the error message
says the sequences file is missing. The fix is to use the actual
filename associated with the `FileNotFoundError` to report the "missing"
file, instead of assuming that the missing file is the input.

Adds a functional test to capture this expected behavior.
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 5, 2022

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.36%. Comparing base (67027a6) to head (372eeeb).
⚠️ Report is 1999 commits behind head on master.

Files with missing lines Patch % Lines
augur/index.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1014   +/-   ##
=======================================
  Coverage   59.36%   59.36%           
=======================================
  Files          52       52           
  Lines        6271     6271           
  Branches     1579     1579           
=======================================
  Hits         3723     3723           
  Misses       2285     2285           
  Partials      263      263           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@huddlej huddlej requested a review from victorlin August 9, 2022 19:21
@victorlin
Copy link
Copy Markdown
Member

  • Changelog 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: In Review

Development

Successfully merging this pull request may close these issues.

3 participants