From f5ec83834e77889c5df0895a8d704cd88edb4a43 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 19 Mar 2026 17:58:21 +0100 Subject: [PATCH] Add CI job to validate generate-direct output is up to date Co-authored-by: Isaac --- .github/workflows/push.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ee3900509b..77600cab7b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -361,6 +361,31 @@ jobs: exit 1 fi + validate-generate-direct: + needs: cleanups + runs-on: + group: databricks-deco-testing-runner-group + labels: ubuntu-latest-deco + + steps: + - name: Print runner IP address + run: curl -s https://checkip.amazonaws.com + + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Setup Python + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version: '3.13' + + - name: Verify that generate-direct output is up to date + run: | + if ! ( make generate-direct && git diff --exit-code ); then + echo "The generate-direct output is not up to date. Please run 'make generate-direct' and commit the changes." + exit 1 + fi + # Trigger integration tests in a separate repository. # Requires secrets from "test-trigger-is" environment (not available for fork PRs or dependabot). # Auto-approves for merge groups to avoid running twice and queue timeouts.