You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user includes the NEMO and/or XIOS-2 code repo clone paths in the vcs revisions section of the YAML run description, the VCS recording code is run twice for those repos because they are also implicitly added to the list of repos to process.
Need to add code to ensure that those repos appear only once in the list.
The text was updated successfully, but these errors were encountered:
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
… code repository clones (#69)
* Prevent vcs revision recording of duplicate repos
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
* Update test_prepare.py to use tmp_path & os.fspath
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.
If a user includes the NEMO and/or XIOS-2 code repo clone paths in the
vcs revisions
section of the YAML run description, the VCS recording code is run twice for those repos because they are also implicitly added to the list of repos to process.Need to add code to ensure that those repos appear only once in the list.
The text was updated successfully, but these errors were encountered: