diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1846891dd..d416b2b3e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -84,3 +84,20 @@ jobs: gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} nexus_username: ${{ secrets.SONATYPE_TOKEN_USER }} nexus_password: ${{ secrets.SONATYPE_TOKEN }} + # Tableau users install the latest JDBC driver manually, so a snapshot + # regression hits them with no connector release in between - trigger the + # TDVT suite in ClickHouse/connectors on every published snapshot. + # https://github.com/ClickHouse/connectors/issues/71 + - name: Trigger Tableau TDVT in connectors + if: success() + continue-on-error: true # a TDVT dispatch failure must never fail the publish + env: + GH_TOKEN: ${{ secrets.CONNECTORS_DISPATCH_TOKEN }} + run: | + # The published snapshot version is the pom's property + # (env.CHC_VERSION is commented out above, so it can't be used here) + VERSION=$(sed -n 's|.*\(.*\).*|\1|p' pom.xml | head -1) + echo "Dispatching TDVT for clickhouse-jdbc $VERSION" + gh api repos/ClickHouse/connectors/dispatches \ + -f event_type=jdbc-snapshot \ + -F "client_payload[jdbc_version]=$VERSION" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 022d27155..9da502ed2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,3 +88,17 @@ jobs: clickhouse-r2dbc/target/clickhouse*.jar client-v2/target/client-v2*.jar jdbc-v2/target/jdbc-v2*.jar + # Tableau users install the latest JDBC driver manually, so a release + # regression hits them with no connector release in between - trigger the + # TDVT suite in ClickHouse/connectors on every release. + # https://github.com/ClickHouse/connectors/issues/71 + - name: Trigger Tableau TDVT in connectors + if: success() + continue-on-error: true # a TDVT dispatch failure must never fail the release + env: + GH_TOKEN: ${{ secrets.CONNECTORS_DISPATCH_TOKEN }} + run: | + echo "Dispatching TDVT for clickhouse-jdbc ${{ github.event.inputs.version }}" + gh api repos/ClickHouse/connectors/dispatches \ + -f event_type=jdbc-release \ + -F "client_payload[jdbc_version]=${{ github.event.inputs.version }}"