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

components/ endpoint displays intended information after auto-deploy #347

Merged
merged 3 commits into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = 1.26.5
current_version = 1.26.6
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} 2023-06-16T17:01:20Z
search = {current_version} 2023-06-16T17:06:27Z
replace = {new_version} {utcnow:%Y-%m-%dT%H:%M:%SZ}

[bumpversion:part:releaseTime]
values = 2023-06-16T17:01:20Z
values = 2023-06-16T17:06:27Z

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

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

[1.26.6](https://github.com/bird-house/birdhouse-deploy/tree/1.26.6) (2023-06-16)
------------------------------------------------------------------------------------------------------------------

## Fixes
- `components/` endpoint displays intended information after auto-deploy

Previously, the script that generates the content for the `components/` endpoint
was using a feature of `grep` that is not supported by all versions of `grep`.
This meant that this script running in the auto-deployment docker container was
not able to properly parse the running components using `grep`.
This fixes the issue by making the script compliant with all versions of `grep`.

Resolves https://github.com/bird-house/birdhouse-deploy/issues/342

[1.26.5](https://github.com/bird-house/birdhouse-deploy/tree/1.26.5) (2023-06-16)
------------------------------------------------------------------------------------------------------------------

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 := 1.26.5
override APP_VERSION := 1.26.6

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

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

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

.. |readthedocs| image:: https://readthedocs.org/projects/birdhouse-deploy/badge/?version=latest
:alt: ReadTheDocs Build Status (latest version)
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.26.5 2023-06-16T17:01:20Z
1.26.6 2023-06-16T17:06:27Z
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,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': '1.26.5',
'releaseTime': '2023-06-16T17:01:20Z',
'version': '1.26.6',
'releaseTime': '2023-06-16T17:06:27Z',
'institution': 'Ouranos',
'researchSubject': 'Climatology',
'supportEmail': '${SUPPORT_EMAIL}',
Expand Down Expand Up @@ -142,8 +142,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': '1.26.5',
'releaseTime': '2023-06-16T17:01:20Z',
'version': '1.26.6',
'releaseTime': '2023-06-16T17:06:27Z',
'institution': 'Ouranos',
'researchSubject': 'Climatology',
'supportEmail': '${SUPPORT_EMAIL}',
Expand Down
4 changes: 3 additions & 1 deletion birdhouse/scripts/get-components-json.include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ cd "${BIRDHOUSE_DEPLOY_COMPONENTS_ROOT}" || true # ignore error for now, empty
BIRDHOUSE_DEPLOY_COMPONENTS_LIST_KNOWN="$( \
ls -d1 ./*components/*/ ./config/*/ 2>/dev/null \
| sed -E "s|\./(.*)/|\1|" \
| sed -E '/^[[:space:]]*$/d' \
| sed -E 's/^|[[:space:]]+/ -e /' \
)"
if [ -z "${BIRDHOUSE_DEPLOY_COMPONENTS_LIST_KNOWN}" ]; then
echo "[WARNING]" \
Expand All @@ -56,7 +58,7 @@ BIRDHOUSE_DEPLOY_COMPONENTS_LIST_ACTIVE=$( \
BIRDHOUSE_DEPLOY_COMPONENTS_BASE="bird-house/birdhouse-deploy:"
BIRDHOUSE_DEPLOY_COMPONENTS_LIST=$( \
echo "${BIRDHOUSE_DEPLOY_COMPONENTS_LIST_ACTIVE}" \
| grep "${BIRDHOUSE_DEPLOY_COMPONENTS_LIST_KNOWN}" \
| grep ${BIRDHOUSE_DEPLOY_COMPONENTS_LIST_KNOWN} \
| sed -E 's|^\s*([A-Za-z0-0./_-]+)\s*$|"\1",|g' \
| sed -E "s|^\"\./(.*)\"|\"${BIRDHOUSE_DEPLOY_COMPONENTS_BASE}\\1\"|g" \
| sed '/^\n*$/d' \
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 = '1.26.5'
version = '1.26.6'
# The full version, including alpha/beta/rc tags.
release = '1.26.5'
release = '1.26.6'

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