Skip to content
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

subset.ipynb: fix to pass Jenkins against other servers than prod #177

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

tlvu
Copy link
Collaborator

@tlvu tlvu commented Apr 13, 2021

Use boreas.ouranos.ca instead of pavics.ouranos.ca for wfs_url = 'https://boreas.ouranos.ca/geoserver/wfs' so we do not replace it with other hosts, due to existing issue Ouranosinc/pavics-sdi#183.

Write poly_file = Path('/tmp/mtl_raw.geojson') to /tmp/ for notebooks to work on tutorial-notebooks folder on Jupyter env that is read-only.

Together with bird-house/birdhouse-deploy#146 + latest Finch + latest xESMF, we have a working Jenkins build http://jenkins.ouranos.ca/job/PAVICS-e2e-workflow-tests/job/minor-fixes-launchnotebook-nbval-lax-as-option/12/console

Use `boreas.ouranos.ca` instead of `pavics.ouranos.ca` for `wfs_url =
'https://boreas.ouranos.ca/geoserver/wfs'` so we do not replace it with
other hosts, due to existing issue
Ouranosinc/pavics-sdi#183.

Write `poly_file = Path('/tmp/mtl_raw.geojson')` to `/tmp/` for
notebooks works on tutorial-notebooks folder on Jupyter env that is
read-only.
@tlvu tlvu requested review from huard and aulemahal April 13, 2021 02:04
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@huard huard merged commit b7f824d into master Apr 13, 2021
@huard huard deleted the fix-subset.ipynb-to-pass-on-other-servers-than-prod branch April 13, 2021 13:24
tlvu added a commit to bird-house/birdhouse-deploy that referenced this pull request Apr 13, 2021
…h-subset-nb

testdata: new test file for new finch subset.ipynb

For notebook https://github.com/bird-house/finch/blob/e2298701dcd20b24dae021c666ebb684d3640b4b/docs/source/notebooks/subset.ipynb

To fix error in `docker logs finch`:
```
OSError: [Errno -102] NetCDF: Can't read file: b'https://lvupavicsdev.ouranos.ca/twitcher/ows/proxy/thredds/dodsC/birdhouse/testdata/xclim/NRCANdaily$
nrcan_canada_daily_tasmin_1990.nc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/envs/finch/lib/python3.9/site-packages/pywps/app/Process.py", line 248, in _run_process
    self.handler(wps_request, wps_response)  # the user must update the wps_response.
  File "/code/finch/processes/wps_base.py", line 42, in _handler_wrapper
    raise ProcessError(f"Finch failed with {err!r}")
pywps.app.exceptions.ProcessError: Finch failed with OSError -102, NetCDF: Can t read file
```

Together with bird-house/finch#177 + latest Finch docker + latest xESMF, we have a working Jenkins build http://jenkins.ouranos.ca/job/PAVICS-e2e-workflow-tests/job/minor-fixes-launchnotebook-nbval-lax-as-option/12/console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants