-
Notifications
You must be signed in to change notification settings - Fork 172
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
Archive the experiment directory along with git status/diff output #3105
Merged
DavidHuber-NOAA
merged 24 commits into
NOAA-EMC:develop
from
DavidHuber-NOAA:feature/archive_expdir
Dec 9, 2024
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e7e43d2
First crack at archiving the expdir and git status
DavidHuber-NOAA 9f1a6fc
Merge remote-tracking branch 'origin/develop' into feature/archive_ex…
DavidHuber-NOAA 2746e46
Add flake8 rules for the global workflow
DavidHuber-NOAA 1579844
Copy expdir to ROTDIR before tar'ing
DavidHuber-NOAA 95f04d4
Merge branch 'develop' into feature/archive_expdir
DavidHuber-NOAA 23b0454
Allow users to specify their HPC account
DavidHuber-NOAA f88c077
Start archiving EXPDIR on the first full cycle and name expdir direct…
DavidHuber-NOAA 6924428
Merge branch 'feature/archive_expdir' of github.com:davidhuber-noaa/g…
DavidHuber-NOAA d2db267
Merge remote-tracking branch 'origin/develop' into feature/archive_ex…
DavidHuber-NOAA 7d0b70a
Trimmed .flake8 exclusions
DavidHuber-NOAA 5f67730
Merge remote-tracking branch 'origin/develop' into feature/archive_ex…
DavidHuber-NOAA a61055e
Merge branch 'feature/archive_expdir' of github.com:davidhuber-noaa/g…
DavidHuber-NOAA f385f0c
Merge branch 'develop' into feature/archive_expdir
DavidHuber-NOAA 1b4340e
Merge remote-tracking branch 'emc/develop' into feature/archive_expdir
DavidHuber-NOAA 7ca219c
Merge branch 'NOAA-EMC:develop' into feature/archive_expdir
DavidHuber-NOAA 12b6f95
Remove extra A option
DavidHuber-NOAA b8cc2ef
Add documentation on EXPDIR archiving
DavidHuber-NOAA 5014922
Merge remote-tracking branch 'origin/develop' into feature/archive_ex…
DavidHuber-NOAA 7ab8dc1
Apply suggestions from code review
DavidHuber-NOAA 0dd3eb8
Apply suggestions from code review
DavidHuber-NOAA 6d89b5c
Merge branch 'develop' into feature/archive_expdir
DavidHuber-NOAA 28bb727
Add self to instance methods
DavidHuber-NOAA 729be32
Merge branch 'feature/archive_expdir' of github.com:davidhuber-noaa/g…
DavidHuber-NOAA 979f2cb
Merge branch 'develop' into feature/archive_expdir
DavidHuber-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[flake8] | ||
exclude = .git,.github,venv,__pycache__,old,build,dist | ||
max-line-length = 160 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% set cycle_YMDH = current_cycle | to_YMDH %} | ||
|
||
expdir: | ||
name: "EXPDIR" | ||
# Copy the experiment files from the EXPDIR into the ROTDIR for archiving | ||
{% set copy_expdir = "expdir." ~ cycle_YMDH %} | ||
FileHandler: | ||
mkdir: | ||
- "{{ ROTDIR }}/{{ copy_expdir }}" | ||
copy: | ||
{% for config in glob(EXPDIR ~ "/config.*") %} | ||
- [ "{{ config }}", "{{ ROTDIR }}/{{ copy_expdir }}/." ] | ||
{% endfor %} | ||
- [ "{{ EXPDIR }}/{{ PSLOT }}.xml", "{{ ROTDIR }}/{{ copy_expdir }}/." ] | ||
{% if ARCH_HASHES or ARCH_DIFFS %} | ||
- [ "{{ EXPDIR }}/git_info.log", "{{ ROTDIR }}/{{ copy_expdir }}/." ] | ||
{% endif %} | ||
target: "{{ ATARDIR }}/{{ cycle_YMDH }}/expdir.tar" | ||
required: | ||
- "{{ copy_expdir }}/config.*" | ||
- "{{ copy_expdir }}/{{ PSLOT }}.xml" | ||
{% if ARCH_HASHES or ARCH_DIFFS %} | ||
- "{{ copy_expdir }}/git_info.log" | ||
{% endif %} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Submodule wxflow
updated
9 files
+15 −0 | .vscode/launch.json | |
+11 −0 | .vscode/settings.json | |
+1 −1 | setup.cfg | |
+43 −8 | src/wxflow/file_utils.py | |
+42 −18 | src/wxflow/fsutils.py | |
+4 −0 | tests/conftest.py | |
+1 −1 | tests/test_configuration.py | |
+15 −0 | tests/test_file_utils.py | |
+150 −0 | tests/test_fsutils.py |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should only need this in one of gdas or gfs, but there is a bit of a coordination problem since either can be run without the other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I added a method to archive.py to determine which
RUN
to archive this in and set thearchive_expdir
boolean accordingly.