Skip to content

Commit 92772fd

Browse files
authored
Update NERSC paths to use CFS (#322)
1 parent 5652fce commit 92772fd

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

tests/integration/generated/directions_cori-haswell.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
```
88
rm -rf /global/cfs/cdirs/e3sm/www/forsyth/zppy_test_bundles_www/v2.LR.historical_0201
9-
rm -rf /global/cscratch1/sd/forsyth/zppy_test_bundles_output/v2.LR.historical_0201/post
9+
rm -rf /global/cfs/cdirs/e3sm/forsyth/zppy_test_bundles_output/v2.LR.historical_0201/post
1010
# Generate cfg
1111
python tests/integration/utils.py
1212
zppy -c tests/integration/generated/test_bundles.cfg
@@ -19,7 +19,7 @@ zppy -c tests/integration/generated/test_bundles.cfg
1919

2020
```
2121
rm -rf /global/cfs/cdirs/e3sm/www/forsyth/zppy_test_complete_run_www/v2.LR.historical_0201
22-
rm -rf /global/cscratch1/sd/forsyth/zppy_test_complete_run_output/v2.LR.historical_0201/post
22+
rm -rf /global/cfs/cdirs/e3sm/forsyth/zppy_test_complete_run_output/v2.LR.historical_0201/post
2323
# Generate cfg
2424
python tests/integration/utils.py
2525
zppy -c tests/integration/generated/test_complete_run.cfg
@@ -47,7 +47,7 @@ rm -rf /global/cfs/cdirs/e3sm/www/zppy_test_resources/expected_bundles
4747
# Copy output so you don't have to rerun zppy to generate the output.
4848
cp -r /global/cfs/cdirs/e3sm/www/forsyth/zppy_test_bundles_www/v2.LR.historical_0201 /global/cfs/cdirs/e3sm/www/zppy_test_resources/expected_bundles
4949
mkdir -p /global/cfs/cdirs/e3sm/www/zppy_test_resources/expected_bundles/bundle_files
50-
cp -r /global/cscratch1/sd/forsyth/zppy_test_bundles_output/v2.LR.historical_0201/post/scripts/bundle*.bash /global/cfs/cdirs/e3sm/www/zppy_test_resources/expected_bundles/bundle_files
50+
cp -r /global/cfs/cdirs/e3sm/forsyth/zppy_test_bundles_output/v2.LR.historical_0201/post/scripts/bundle*.bash /global/cfs/cdirs/e3sm/www/zppy_test_resources/expected_bundles/bundle_files
5151
cd /global/cfs/cdirs/e3sm/www/zppy_test_resources/expected_bundles
5252
# This file will list all the expected images.
5353
find . -type f -name '*.png' > ../image_list_expected_bundles.txt
@@ -60,8 +60,16 @@ python -u -m unittest tests/integration/test_bundles.py
6060

6161
```
6262
cd <top level of zppy repo>
63+
chmod u+x tests/integration/generated/update_campaign_expected_files_cori-haswell.sh
6364
./tests/integration/generated/update_campaign_expected_files_cori-haswell.sh
6465
```
66+
This command also runs the test again.
67+
If the test fails on `test_campaign_high_res_v1`, try running the lines of the loop manually:
68+
```
69+
rm -rf /global/cfs/cdirs/e3sm/www/zppy_test_resources/test_campaign_high_res_v1_expected_files
70+
mkdir -p /global/cfs/cdirs/e3sm/www/zppy_test_resources/test_campaign_high_res_v1_expected_files
71+
mv test_campaign_high_res_v1_output/post/scripts/*.settings /global/cfs/cdirs/e3sm/www/zppy_test_resources/test_campaign_high_res_v1_expected_files
72+
```
6573

6674
### test_complete_run
6775

tests/integration/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ def get_cori_expansions(config):
199199
"qos_long": "regular",
200200
"qos_short": "regular", # debug walltime too short?
201201
"scratch": f"/global/cscratch1/sd/{username}/",
202-
"user_input": "/global/cscratch1/sd/forsyth/",
203-
"user_output": f"/global/cscratch1/sd/{username}/",
202+
# Use CFS for large datasets
203+
"user_input": "/global/cfs/cdirs/e3sm/forsyth/",
204+
"user_output": f"/global/cfs/cdirs/e3sm/{username}/",
204205
"user_www": f"{web_base_path}/{username}/",
205206
}
206207
return d

0 commit comments

Comments
 (0)