Skip to content
Closed
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
10 changes: 6 additions & 4 deletions deploy/charts/buzz-push-gateway/tests/release-contract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ auto_path = Path('.github/workflows/auto-tag-on-release-pr-merge.yml')
publish_path = Path('.github/workflows/push-gateway-helm-chart.yml')
auto_text = auto_path.read_text()
publish_text = publish_path.read_text()
# Parse first, then pin the cross-workflow strings whose agreement makes this a
# reachable lane rather than an orphan publisher.
# Parse first, then pin the tag producer and consumer strings whose agreement
# makes this a reachable lane rather than an orphan publisher.
yaml.safe_load(auto_text)
yaml.safe_load(publish_text)
for needle in (
'push-chart-release/*)',
'VERSION="${BRANCH#push-chart-release/}"',
'TAG_PREFIX="push-chart-v"',
'DISPATCH="push-gateway-helm-chart"',
'push-gateway-helm-chart) WORKFLOW="push-gateway-helm-chart.yml"',
'- name: Create and push tag',
'TAG: ${{ steps.release.outputs.tag }}',
'refs/tags/$TAG',
'-f sha="$TARGET_SHA"',
):
assert needle in auto_text, f'missing auto-tag gateway chart contract: {needle}'
for needle in (
Expand Down
Loading