-
Notifications
You must be signed in to change notification settings - Fork 210
Remove pslot dir from local archive folder on CI case completion #2961
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
Closed
TerrenceMcGuinness-NOAA
wants to merge
36
commits into
NOAA-EMC:develop
from
TerrenceMcGuinness-NOAA:ci_clean_loc_arch
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
1c159d8
added a cleanup_experment funciton to ci_utils that cleans local arch…
TerrenceMcGuinness-NOAA e7aa3ba
Merge branch 'NOAA-EMC:develop' into ci_clean_loc_arch
TerrenceMcGuinness-NOAA 463655a
moved rm for EXPDIR into cleanup_expermiment function
TerrenceMcGuinness-NOAA b511367
Merge branch 'ci_clean_loc_arch' of github.com:TerrenceMcGuinness-NOA…
TerrenceMcGuinness-NOAA 40c96b2
fixed bracket sytax error in ci_utils and missnamed function call in …
TerrenceMcGuinness-NOAA 54ce216
fixed SC2155 in bash utils for cleanup
TerrenceMcGuinness-NOAA cacde8c
fixed SC2115 for var expation in path for clean experiment util
TerrenceMcGuinness-NOAA c8a10a9
needed the OR truch for var assigment via actions in bash
TerrenceMcGuinness-NOAA 7c93f4b
fixed the evaluation of HOMDIR so that internal strification of env v…
TerrenceMcGuinness-NOAA bb92a39
Merge branch 'develop' into ci_clean_loc_arch
TerrenceMcGuinness-NOAA bfcbba5
still needed archive tagged back onto HOMEDIR
TerrenceMcGuinness-NOAA 69fc51b
Merge branch 'ci_clean_loc_arch' of github.com:TerrenceMcGuinness-NOA…
TerrenceMcGuinness-NOAA 49b4489
new linee at aend of ci_utils
TerrenceMcGuinness-NOAA b776a59
Merge branch 'NOAA-EMC:develop' into ci_clean_loc_arch
TerrenceMcGuinness-NOAA d8af194
removed eval in cleanup_experiment and added envsubst at end of pipe …
TerrenceMcGuinness-NOAA d54bd8d
updated archival directory to ARCDIR from config.base in cleanup_expe…
TerrenceMcGuinness-NOAA 85f6369
forgot to clean up EXPDIR replacement in cleanup_experment
TerrenceMcGuinness-NOAA 6a09b36
forgot to clean up EXPDIR replacement in cleanup_experment still
TerrenceMcGuinness-NOAA 32b8cd0
Update ci/scripts/utils/ci_utils.sh
TerrenceMcGuinness-NOAA e01d9d3
added get_config_var util to simplify cleanup_experment
TerrenceMcGuinness-NOAA 3d5e851
removed debug outputs in cleanup_experiment
TerrenceMcGuinness-NOAA 162474a
added next step to use get_config_var to remove previous DATAROOT dat…
TerrenceMcGuinness-NOAA 7da3721
fix conficts and merged develop back in
TerrenceMcGuinness-NOAA c6ad4ec
updated Jenkinsfile to use clean experiment and to also clean DATADIR…
TerrenceMcGuinness-NOAA bef32e7
updating correct ATARDIR variable in cleaup
TerrenceMcGuinness-NOAA 02642fc
added true for shell norms
TerrenceMcGuinness-NOAA 62ec3f6
Update ci/scripts/utils/ci_utils.sh
TerrenceMcGuinness-NOAA 7e5b4fb
Update ci/scripts/utils/ci_utils.sh
TerrenceMcGuinness-NOAA bf3b80f
Update ci/scripts/utils/get_config_var.py
TerrenceMcGuinness-NOAA cd4e27b
Update ci/scripts/utils/get_config_var.py
TerrenceMcGuinness-NOAA 5ea8d3d
Update ci/scripts/utils/get_config_var.py
TerrenceMcGuinness-NOAA 99b9322
Update ci/scripts/utils/get_config_var.py
TerrenceMcGuinness-NOAA f56be33
Update ci/scripts/utils/get_config_var.py
TerrenceMcGuinness-NOAA 9a381b4
fixed name of get_config_var in pipeline (left off the py extention)
TerrenceMcGuinness-NOAA 788dd8f
DATAROOT is not a config.base value but is construced from STMP in ta…
TerrenceMcGuinness-NOAA 7d3b8bf
updated Jenkins file with correct RUNDIRS string (had RUNDIR as a bug)
TerrenceMcGuinness-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 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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #!/usr/bin/env python3 | ||
|
|
||
| import os | ||
| import argparse | ||
| from wxflow import Configuration | ||
|
|
||
|
TerrenceMcGuinness-NOAA marked this conversation as resolved.
|
||
|
|
||
| def get_config_vars(var_names, config_path): | ||
| """ | ||
| GET_CONFIG_VARS Get configuration variables from a config file or directory. | ||
| Parameters: | ||
| var_names (list of str): The names of the configuration variables to retrieve. | ||
| config_path (str): The path to the configuration file or directory. | ||
| Returns: | ||
| list of str: The values of the specified configuration variables. | ||
| """ | ||
| if os.path.isfile(config_path): | ||
| config_dir = os.path.dirname(config_path) | ||
| config_file = os.path.basename(config_path) | ||
| elif os.path.isdir(config_path): | ||
| config_dir = config_path | ||
| config_file = 'config.base' | ||
| config = Configuration(config_dir) | ||
| config_data = config.parse_config(config_file) | ||
| return [config_data[var_name] for var_name in var_names] | ||
|
|
||
|
TerrenceMcGuinness-NOAA marked this conversation as resolved.
|
||
|
|
||
| if __name__ == "__main__": | ||
| """ | ||
| Main entry point for the script. | ||
| Parses command-line arguments and retrieves the specified configuration variables. | ||
| """ | ||
| parser = argparse.ArgumentParser(description="Get configuration variables from a config file or directory.") | ||
| parser.add_argument("var_names", nargs='+', help="The names of the configuration variables to retrieve.") | ||
| parser.add_argument("config_path", help="The path to the configuration file or directory.") | ||
|
|
||
| args = parser.parse_args() | ||
|
|
||
| var_names = args.var_names | ||
| config_path = args.config_path | ||
|
|
||
| values = get_config_vars(var_names, config_path) | ||
| print(" ".join(values)) | ||
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.
Uh oh!
There was an error while loading. Please reload this page.