Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicate effort on vcs revision recording of NEMO and XIOS-2 code repository clones #69

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

douglatornell
Copy link
Member

A check was added to 'salishsea_cmd/prepare.py' to prevent vcs revision recording of the NEMO and XIOS-2 code repositories. That duplication could happen because the code always records the vcs revision of the NEMO and XIOS-2 code repositories, but the user could cause duplicated effort by including those repositories in their YAML file list of other repos to record. Corresponding tests were updated to reflect these changes.

re: issue #11

A check was added to 'salishsea_cmd/prepare.py' to prevent vcs revision
recording of the NEMO and XIOS-2 code repositories. That duplication could
happen because the code always records the vcs revision of the NEMO and XIOS-2
code repositories, but the user could cause duplicated effort by including those
repositories in their YAML file list of other repos to record. Corresponding
tests were updated to reflect these changes.

re: issue #11
@douglatornell douglatornell added bug Something isn't working prepare plug-in maintenance Package or repo maintenance labels Jul 5, 2024
@douglatornell douglatornell added this to the v24.1 milestone Jul 5, 2024
@douglatornell douglatornell linked an issue Jul 5, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.36%. Comparing base (92a5d0e) to head (8f117a5).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #69      +/-   ##
==========================================
+ Coverage   95.21%   95.36%   +0.14%     
==========================================
  Files          10       10              
  Lines        1296     1316      +20     
  Branches      237      241       +4     
==========================================
+ Hits         1234     1255      +21     
+ Misses         58       57       -1     
  Partials        4        4              
Flag Coverage Δ
unittests 95.36% <100.00%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

This commit replaces instances of `tmpdir` with `tmp_path` from pytest and uses
`pathlib` to handle file paths. Additionally, all path conversions now use
`os.fspath()` for consistent, cross-platform compatibility. These changes
improve code readability and ensure the test suite is using more modern file
handling practices.
@douglatornell douglatornell merged commit 44bbbf4 into main Jul 5, 2024
8 checks passed
@douglatornell douglatornell deleted the issue11-vcs-rec-no-dups branch July 5, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance Package or repo maintenance prepare plug-in
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do VCS recording of NEMO and XIOS-2 clone only once
1 participant