Skip to content

Release v1.3.0 (ADR-0037) #22

Release v1.3.0 (ADR-0037)

Release v1.3.0 (ADR-0037) #22

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
env:
BQ_CONFORMANCE_VERSION: 1.8.0
strategy:
fail-fast: false
matrix:
java: [ "17", "21" ]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven
# `verify` runs the JUnit 5 suite and the JaCoCo >=90% line-coverage gate. The
# Pulsar Producer/Consumer/Message interfaces are mocked with Mockito 5 — no Pulsar,
# no network.
- name: Test
run: mvn -B --no-transfer-progress verify
env:
# The conformance runner writes results.json (ADR-0032) when this is set.
BQ_CONFORMANCE_RESULTS: ${{ runner.temp }}/results.json
- uses: actions/setup-python@v6
with:
python-version: "3.12"
# Schema-valid, no `fail`, the only `skip`s are the pulsar_exhaustion and version_gate_pulsar on_unknown_urn rows
# (ADR-0036, ADR-0037), and every pulsar-scope section and case is present.
- name: Validate results.json
run: |
python -m pip install --quiet jsonschema==4.23.0
python -I .github/scripts/check-conformance-results.py "$RUNNER_TEMP/results.json" \
src/test/resources/conformance "$BQ_CONFORMANCE_VERSION"
conformance:
name: Conformance suite in sync
runs-on: ubuntu-latest
env:
BQ_CONFORMANCE_VERSION: 1.8.0
# Integrity pin for fetch.sh (sha256 of conformance/fetch.sh at the pinned tag).
BQ_FETCH_SH_SHA256: 8bb6ba567b288fb0ac71a70fd17041b2503df119e01998d76fdad372570bf849
steps:
- uses: actions/checkout@v5
- name: Verify vendored conformance matches the pinned release asset
run: |
curl --fail --silent --show-error --location --output "$RUNNER_TEMP/fetch.sh" \
"https://raw.githubusercontent.com/BabelQueue/conformance/v${BQ_CONFORMANCE_VERSION}/fetch.sh"
echo "${BQ_FETCH_SH_SHA256} $RUNNER_TEMP/fetch.sh" | sha256sum -c -
bash "$RUNNER_TEMP/fetch.sh" --check "$BQ_CONFORMANCE_VERSION" "src/test/resources/conformance"
ci-green:
name: CI green
runs-on: ubuntu-latest
needs: [test, conformance]
if: ${{ always() }}
steps:
- name: Fail if any required job did not pass
run: |
if ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}; then
echo "A required job failed or was cancelled."
exit 1
fi