-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Ouranosinc/add-pavics-homepage-notebooks-…
…to-jenkins-testsuite Add PAVICS homepage notebooks to Jenkins testsuite Various changes so the notebooks pass Jenkins: * Stable interface to setup the layout (unzip output.zip, .geojson files path are hardcoded) required by the notebooks. With this stable interface, future layout change will be transparent to Jenkins * Make all prod Thredds access go through httpS so Jenkins test server outside of Ouranos can still run the notebooks (CRIM) * Add special markup for all Thredds url to get data directly from prod Pavics since that's too much `.ncml` (and `.nc`) files to replicate to all the test servers * Disable output checking for failing output that is not critical to the notebooks so we do not need to refresh too often the notebook output See each commit description for more detailed info. Not regenerating all the .html files since the code change is really minimal (adding comments and one line switch the Thredds url from direct url to behind twitcher). Matching PR that actually add the homepage notebooks to Jenkins: Ouranosinc/PAVICS-e2e-workflow-tests#79
- Loading branch information
Showing
6 changed files
with
48 additions
and
5 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh -x | ||
|
||
# Stable interface for the Jenkins testsuite to create any folders/files layout | ||
# for the notebooks to be tested under Jenkins. With this stable interface, | ||
# Jenkins will not need to be modified for any future layout changes. | ||
# | ||
# Assume to be running inside the Jupyter env. | ||
|
||
THIS_FILE="`realpath "$0"`" | ||
THIS_DIR="`dirname "$THIS_FILE"`" | ||
|
||
# Unzip notebook 3 output to avoid having to generate it during automated | ||
# testing since it takes a long time. Notebook 4 and 5 depend on this output. | ||
NOTEBOOK_3_OUTDIR_BASE="/notebook_dir/writable-workspace/tmp/tutorial3" | ||
mkdir -p $NOTEBOOK_3_OUTDIR_BASE | ||
unzip $THIS_DIR/output.zip -d $NOTEBOOK_3_OUTDIR_BASE/ | ||
|
||
# Re-create /notebook_dir/pavics-homepage/tutorial_data layout for: | ||
# DriverError: /notebook_dir/pavics-homepage/tutorial_data/test_regions.geojson: No such file or directory | ||
# | ||
# Path to those .geojson files are hardcoded so users can copy the nb to | ||
# writable-workspace/ dir and still be able to run them seemlessly from | ||
# the Jupyter env (without having to also copy those *.geojson files with | ||
# the notebooks). | ||
HOMEPAGE_ROOT_DIR="/notebook_dir/pavics-homepage" | ||
mkdir -p $HOMEPAGE_ROOT_DIR | ||
ln -sv $THIS_DIR/tutorial_data $HOMEPAGE_ROOT_DIR/tutorial_data |