Skip to content

Commit 7b3b0da

Browse files
ShimonSteclaude
andcommitted
Trigger Tableau TDVT in connectors on snapshot publish and release
Tableau users install the latest JDBC driver manually (no connector release cycle as a buffer), so driver regressions hit them immediately - 0.9.7 and 0.9.8 both broke Tableau connections. Each publish now fires a repository_dispatch (jdbc-snapshot / jdbc-release) into ClickHouse/connectors, where the tableau-tdvt workflow runs the TDVT suite against the published version and opens an issue on failure. The snapshot version is derived from the pom <revision> property because CHC_VERSION is commented out in nightly.yml. Both steps are continue-on-error so a dispatch failure can never fail a publish. Requires the CONNECTORS_DISPATCH_TOKEN secret (fine-grained PAT scoped to ClickHouse/connectors). Refs ClickHouse/connectors#71 (CON-264). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 9e5367e commit 7b3b0da

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,20 @@ jobs:
8484
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
8585
nexus_username: ${{ secrets.SONATYPE_TOKEN_USER }}
8686
nexus_password: ${{ secrets.SONATYPE_TOKEN }}
87+
# Tableau users install the latest JDBC driver manually, so a snapshot
88+
# regression hits them with no connector release in between - trigger the
89+
# TDVT suite in ClickHouse/connectors on every published snapshot.
90+
# https://github.com/ClickHouse/connectors/issues/71
91+
- name: Trigger Tableau TDVT in connectors
92+
if: success()
93+
continue-on-error: true # a TDVT dispatch failure must never fail the publish
94+
env:
95+
GH_TOKEN: ${{ secrets.CONNECTORS_DISPATCH_TOKEN }}
96+
run: |
97+
# The published snapshot version is the pom's <revision> property
98+
# (env.CHC_VERSION is commented out above, so it can't be used here)
99+
VERSION=$(sed -n 's|.*<revision>\(.*\)</revision>.*|\1|p' pom.xml | head -1)
100+
echo "Dispatching TDVT for clickhouse-jdbc $VERSION"
101+
gh api repos/ClickHouse/connectors/dispatches \
102+
-f event_type=jdbc-snapshot \
103+
-F "client_payload[jdbc_version]=$VERSION"

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,17 @@ jobs:
8888
clickhouse-r2dbc/target/clickhouse*.jar
8989
client-v2/target/client-v2*.jar
9090
jdbc-v2/target/jdbc-v2*.jar
91+
# Tableau users install the latest JDBC driver manually, so a release
92+
# regression hits them with no connector release in between - trigger the
93+
# TDVT suite in ClickHouse/connectors on every release.
94+
# https://github.com/ClickHouse/connectors/issues/71
95+
- name: Trigger Tableau TDVT in connectors
96+
if: success()
97+
continue-on-error: true # a TDVT dispatch failure must never fail the release
98+
env:
99+
GH_TOKEN: ${{ secrets.CONNECTORS_DISPATCH_TOKEN }}
100+
run: |
101+
echo "Dispatching TDVT for clickhouse-jdbc ${{ github.event.inputs.version }}"
102+
gh api repos/ClickHouse/connectors/dispatches \
103+
-f event_type=jdbc-release \
104+
-F "client_payload[jdbc_version]=${{ github.event.inputs.version }}"

0 commit comments

Comments
 (0)