Skip to content

Commit

Permalink
fix weaver data-source resolution for workflow steps (#460)
Browse files Browse the repository at this point in the history
## Overview
Weaver: Adjust invalid `data_sources.yml` definitions.


## Changes

**Non-breaking changes**
- Weaver: Adjust invalid `data_sources.yml` definitions.

  - Add the missing `data_sources.yml` volume mount for  `weaver-worker`.
  - When `weaver-worker` runs a `Workflow`, the nested `step` process locations need to be resolved according to the
    current `"localhost"` instance. However, the Web API running in `weaver` service is not visible from the worker.
    Since the configuration is shared between `weaver` and `weaver-worker`, use the public endpoint of `weaver` to
    make process URL resolution consistent, and also provide more useful references in job logs when resolution fails.

**Breaking changes**
- n/a

## Related Issue / Discussion

- identified while working on crim-ca/weaver#661

## Additional Information

- https://pavics-weaver.readthedocs.io/en/latest/processes.html#data-source

## CI

birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: false
  • Loading branch information
fmigneault authored Jun 5, 2024
2 parents b229634 + c7507fe commit 59a9ce1
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.4.0
current_version = 2.4.1
commit = True
tag = False
tag_name = {new_version}
Expand Down Expand Up @@ -30,11 +30,11 @@ search = {current_version}
replace = {new_version}

[bumpversion:file:RELEASE.txt]
search = {current_version} 2024-06-04T17:41:34Z
search = {current_version} 2024-06-05T22:22:08Z
replace = {new_version} {utcnow:%Y-%m-%dT%H:%M:%SZ}

[bumpversion:part:releaseTime]
values = 2024-06-04T17:41:34Z
values = 2024-06-05T22:22:08Z

[bumpversion:file(version):birdhouse/components/canarie-api/docker_configuration.py.template]
search = 'version': '{current_version}'
Expand Down
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@

[//]: # (list changes here, using '-' for each new entry, remove this when items are added)

[2.4.1](https://github.com/bird-house/birdhouse-deploy/tree/2.4.1) (2024-06-05)
------------------------------------------------------------------------------------------------------------------

## Fixes
- Weaver: Adjust invalid `data_sources.yml` definitions.

- Add the missing `data_sources.yml` volume mount for `weaver-worker`.
- When `weaver-worker` runs a `Workflow`, the nested `step` process locations need to be resolved according to the
current `"localhost"` instance. However, the Web API running in `weaver` service is not visible from the worker.
Since the configuration is shared between `weaver` and `weaver-worker`, use the public endpoint of `weaver` to
make process URL resolution consistent, and also provide more useful references in job logs when resolution fails.

[2.4.0](https://github.com/bird-house/birdhouse-deploy/tree/2.4.0) (2024-06-04)
------------------------------------------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generic variables
override SHELL := bash
override APP_NAME := birdhouse-deploy
override APP_VERSION := 2.4.0
override APP_VERSION := 2.4.1

# utility to remove comments after value of an option variable
override clean_opt = $(shell echo "$(1)" | $(_SED) -r -e "s/[ '$'\t'']+$$//g")
Expand Down
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ for a full-fledged production platform.
* - citation
- | |citation|

.. |commits-since| image:: https://img.shields.io/github/commits-since/bird-house/birdhouse-deploy/2.4.0.svg
.. |commits-since| image:: https://img.shields.io/github/commits-since/bird-house/birdhouse-deploy/2.4.1.svg
:alt: Commits since latest release
:target: https://github.com/bird-house/birdhouse-deploy/compare/2.4.0...master
:target: https://github.com/bird-house/birdhouse-deploy/compare/2.4.1...master

.. |latest-version| image:: https://img.shields.io/badge/tag-2.4.0-blue.svg?style=flat
.. |latest-version| image:: https://img.shields.io/badge/tag-2.4.1-blue.svg?style=flat
:alt: Latest Tag
:target: https://github.com/bird-house/birdhouse-deploy/tree/2.4.0
:target: https://github.com/bird-house/birdhouse-deploy/tree/2.4.1

.. |readthedocs| image:: https://readthedocs.org/projects/birdhouse-deploy/badge/?version=latest
:alt: ReadTheDocs Build Status (latest version)
Expand All @@ -42,7 +42,7 @@ for a full-fledged production platform.
Birdhouse
------
---------

For GitHub navigation, see the following README pages:

Expand Down
2 changes: 1 addition & 1 deletion RELEASE.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.0 2024-06-04T17:41:34Z
2.4.1 2024-06-05T22:22:08Z
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ SERVICES = {
# NOTE:
# Below version and release time auto-managed by 'make VERSION=x.y.z bump'.
# Do NOT modify it manually. See 'Tagging policy' in 'birdhouse/README.rst'.
'version': '2.4.0',
'releaseTime': '2024-06-04T17:41:34Z',
'version': '2.4.1',
'releaseTime': '2024-06-05T22:22:08Z',
'institution': '${BIRDHOUSE_INSTITUTION}',
'researchSubject': '${BIRDHOUSE_SUBJECT}',
'supportEmail': '${BIRDHOUSE_SUPPORT_EMAIL}',
Expand Down Expand Up @@ -141,8 +141,8 @@ PLATFORMS = {
# NOTE:
# Below version and release time auto-managed by 'make VERSION=x.y.z bump'.
# Do NOT modify it manually. See 'Tagging policy' in 'birdhouse/README.rst'.
'version': '2.4.0',
'releaseTime': '2024-06-04T17:41:34Z',
'version': '2.4.1',
'releaseTime': '2024-06-05T22:22:08Z',
'institution': '${BIRDHOUSE_INSTITUTION}',
'researchSubject': '${BIRDHOUSE_SUBJECT}',
'supportEmail': '${BIRDHOUSE_SUPPORT_EMAIL}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Employed by default for looking at files available directly (e.g.: pre-fetched)
localhost:
netloc: "localhost"
ades: "http://localhost:4001"
ades: "https://${BIRDHOUSE_FQDN_PUBLIC}/${WEAVER_MANAGER_NAME}"
default: true

# Weaver self-reference, but using the exposed endpoint on the birdhouse instance
Expand Down
1 change: 1 addition & 0 deletions birdhouse/components/weaver/docker-compose-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ services:
volumes:
#- wps_private:/data/wps_private
- ./components/weaver/config/weaver/weaver.ini:/opt/local/src/weaver/config/weaver.ini:ro
- ./components/weaver/config/weaver/data_sources.yml:/opt/local/src/weaver/config/data_sources.yml:ro
- ./components/weaver/config/weaver/request_options.yml:/opt/local/src/weaver/config/request_options.yml:ro
- ./components/weaver/celery-healthcheck:/opt/local/bin/weaver/celery-healthcheck:ro
# WARNING:
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
# built documents.
#
# The short X.Y version.
version = '2.4.0'
version = '2.4.1'
# The full version, including alpha/beta/rc tags.
release = '2.4.0'
release = '2.4.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 59a9ce1

Please sign in to comment.