Skip to content

Commit

Permalink
Merge pull request #116 from nasa/trade-187-sambah-tests
Browse files Browse the repository at this point in the history
TRADE-187: Add tests for SAMBAH
  • Loading branch information
danielfromearth authored Feb 21, 2025
2 parents ea8836e + 2e80db0 commit 9d7cfe9
Show file tree
Hide file tree
Showing 14 changed files with 530 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
test/nsidc-icesat2/reference_files/*.h5 filter=lfs diff=lfs merge=lfs -text
test/subset-band-name/reference_data/*.hdf filter=lfs diff=lfs merge=lfs -text
test/sambah/reference_files/all_data.nc4 filter=lfs diff=lfs merge=lfs -text
test/sambah/reference_files/spatial_only.nc4 filter=lfs diff=lfs merge=lfs -text
test/sambah/reference_files/temp_var_bbox.nc4 filter=lfs diff=lfs merge=lfs -text
test/sambah/reference_files/var_only.nc4 filter=lfs diff=lfs merge=lfs -text
test/opera-rtc-s1-browse/reference_data/*.png filter=lfs diff=lfs merge=lfs -text
test/hybig/reference_data/**/*.png filter=lfs diff=lfs merge=lfs -text
test/hybig/reference_data/**/*.jpg filter=lfs diff=lfs merge=lfs -text
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-all-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ jobs:
-
image: "net2cog"
notebook: "net2cog_Regression.ipynb"
-
image: "sambah"
notebook: "SAMBAH_Regression.ipynb"
shared-utils: "true"
lfs: "true"
-
image: "opera-rtc-s1-browse"
notebook: "opera-rtc-s1-browse_Regression.ipynb"
Expand Down
6 changes: 3 additions & 3 deletions config/services_tests_config_prod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"all": "harmony,harmony-regression,geoloco,hga,n2z,regridder,hoss,hybig,net2cog,smap-l2-gridder,subset-band-name,swath-projector,nsidc-icesat2,trajectory-subsetter,opera-rtc-s1-browse",
"batchee": "TBD",
"all": "harmony,harmony-regression,geoloco,hga,n2z,regridder,hoss,hybig,net2cog,smap-l2-gridder,subset-band-name,swath-projector,nsidc-icesat2,trajectory-subsetter,sambah,opera-rtc-s1-browse",
"batchee": "sambah",
"geoloco": "geoloco",
"giovanni-adapter": "TBD",
"harmony-gdal-adapter": "hga",
Expand All @@ -15,7 +15,7 @@
"query-cmr": "geoloco",
"smap-l2-gridder": "smap-l2-gridder",
"sds-maskfill": "TBD",
"stitchee": "TBD",
"stitchee": "sambah",
"subset-band-name": "subset-band-name",
"swath-projector": "swath-projector",
"trajectory-subsetter": "nsidc-icesat2,trajectory-subsetter",
Expand Down
6 changes: 3 additions & 3 deletions config/services_tests_config_uat.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"all": "harmony,harmony-regression,geoloco,hga,n2z,regridder,hoss,variable-subsetter,hybig,net2cog,smap-l2-gridder,subset-band-name,swath-projector,nsidc-icesat2,trajectory-subsetter,opera-rtc-s1-browse",
"batchee": "TBD",
"all": "harmony,harmony-regression,geoloco,hga,n2z,regridder,hoss,variable-subsetter,hybig,net2cog,smap-l2-gridder,subset-band-name,swath-projector,nsidc-icesat2,trajectory-subsetter,sambah,opera-rtc-s1-browse",
"batchee": "sambah",
"geoloco": "geoloco",
"giovanni-adapter": "TBD",
"harmony-gdal-adapter": "hga",
Expand All @@ -15,7 +15,7 @@
"query-cmr": "variable-subsetter",
"smap-l2-gridder": "smap-l2-gridder",
"sds-maskfill": "TBD",
"stitchee": "TBD",
"stitchee": "sambah",
"subset-band-name": "subset-band-name",
"swath-projector": "swath-projector",
"trajectory-subsetter": "nsidc-icesat2,trajectory-subsetter",
Expand Down
1 change: 1 addition & 0 deletions script/test-in-bamboo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ all_tests=(
nsidc-icesat2
opera-rtc-s1-browse
regridder
sambah
smap-l2-gridder
subset-band-name
swath-projector
Expand Down
6 changes: 6 additions & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ net2cog-image: Dockerfile net2cog/environment.yaml
docker build -t ghcr.io/nasa/regression-tests-net2cog:latest -f ./Dockerfile \
--build-arg notebook=net2cog_Regression.ipynb --build-arg sub_dir=net2cog .

sambah-image: Dockerfile sambah/environment.yaml
docker build -t ghcr.io/nasa/regression-tests-sambah:latest -f ./Dockerfile \
--build-arg notebook=SAMBAH_Regression.ipynb --build-arg sub_dir=sambah \
--build-arg shared_utils=true .

opera-rtc-s1-browse-image: Dockerfile opera-rtc-s1-browse/environment.yaml
docker build -t ghcr.io/nasa/regression-tests-opera-rtc-s1-browse:latest -f ./Dockerfile \
--build-arg notebook=opera-rtc-s1-browse_Regression.ipynb --build-arg sub_dir=opera-rtc-s1-browse .
Expand All @@ -81,4 +86,5 @@ images: harmony-image \
variable-subsetter-image \
geoloco-image \
net2cog-image \
sambah-image \
opera-rtc-s1-browse-image
1 change: 1 addition & 0 deletions test/run_notebooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ all_images=(
nsidc-icesat2
opera-rtc-s1-browse
regridder
sambah
smap-l2-gridder
subset-band-name
swath-projector
Expand Down
Loading

0 comments on commit 9d7cfe9

Please sign in to comment.