Repository navigation
ci: workflow audit — merge-queue fixes, caching/build speedups, coverage - #106
Merged
Merged
Conversation
vikrantpuppala
had a problem deploying
to
azure-prod
June 2, 2026 05:21 — with
GitHub Actions
Failure
vikrantpuppala
force-pushed
the
ci/workflow-audit-fixes
branch
from
June 2, 2026 05:26
37b2435 to
d443923
Compare
vikrantpuppala
had a problem deploying
to
azure-prod
June 2, 2026 05:27 — with
GitHub Actions
Failure
Follow-ups from a GitHub workflow audit, plus the one merge-queue
trigger the trimmed required-checks list still needs.
Merge-queue gating is being trimmed (ruleset change, applied
separately) so that only "Unit + doc tests" and "Kernel Integration
Tests" formally gate merges; DCO / fmt / clippy / tls-build become
advisory PR checks. Because "Unit + doc tests" stays required, its
workflow must run on the merge-group ref too, so pr-checks gets a
`merge_group` trigger (its sibling advisory jobs run there as well,
which is harmless).
Changes:
- pr-checks: add `merge_group` trigger so the required "Unit + doc
tests" job reports on the merge group (otherwise the queue hangs).
- pyo3-checks: widen the Python matrix from {3.9, 3.12} to
{3.10, 3.11, 3.12, 3.13, 3.14}; drop the unsupported `--interpreter`
flag from `maturin develop` (maturin 1.13.x removed it — `develop`
always targets the active venv, which `uv run` selects). Bump
`requires-python` to `>=3.10` to match the tested matrix.
- license-check: extend the path filter to `napi/Cargo.{toml,lock}`
and run `cargo deny` over the standalone napi workspace, whose own
lockfile is invisible to the root run. Allow CC0-1.0 in deny.toml —
`tiny-keccak` pulls it in transitively via napi and it is a
public-domain dedication.
- napi-checks: align the checkout (v4 -> v6.0.2) and
setup-rust-toolchain (v1.15.2 -> v1.16.1) pins with the other
workflows.
- coverage: path-filter the expensive instrumented rebuild so
docs/workflow-only PRs skip it.
- dependabot: add a cargo entry for the `/napi` standalone workspace.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
vikrantpuppala
force-pushed
the
ci/workflow-audit-fixes
branch
from
June 2, 2026 05:29
d443923 to
7f2b92e
Compare
vikrantpuppala
had a problem deploying
to
azure-prod
June 2, 2026 05:31 — with
GitHub Actions
Failure
Two CI failures surfaced on the widened matrix:
1. `napi fmt + clippy + test` failed updating the crates.io index
("SSL connect error ... unexpected eof") because napi-checks was
the only Rust workflow not using the `setup-jfrog` composite. The
protected runner group blocks direct crates.io, so cargo must
route through the JFrog proxy. Add `setup-jfrog` (cargo) + the
`id-token: write` permission it needs. The composite writes a
~/.cargo source replacement, which preserves resolved versions, so
the `--locked` builds stay valid.
2. `PyO3 build + test (Python 3.14)` failed in `uv sync`: pyarrow
18.x (the ceiling under the old `>=14,<19` bound) ships no cp314
wheel, so uv built it from source and the Arrow C++ CMake build
failed. Bump the floor to `pyarrow>=23.0.1` to match
databricks-sql-connector 5.0.0 (databricks/databricks-sql-python#818);
23.x is the first series with cp314 wheels. The bindings export via
the Arrow C Data Interface (`arrow-pyarrow = "57"`), which is
version-stable, so no binding code changes.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
gopalldb
approved these changes
Jun 2, 2026
msrathore-db
approved these changes
Jun 2, 2026
…eue) The first PR to actually enter the merge queue stalled at AWAITING_CHECKS. Root cause: the merge-queue and label-trigger paths each posted an `in_progress` "Kernel Integration Tests" check via `github.token` (the github-actions App, id 15368) and assumed the receiver in databricks-driver-test would "overwrite" it. It can't — a check-run can only be updated by the App that created it, and the receiver posts under the integration-test App (id 2731531). So the receiver created its OWN completed check while the github-actions placeholder stayed `in_progress` forever. The ruleset's required check was pinned to integration_id 15368 (the placeholder's App), so branch protection waited on the orphan until the 60-minute queue timeout. Fix — match databricks/databricks-sql-python's trigger-integration-tests.yml, which posts no placeholder and lets the receiver be the sole creator of the integration-test check: - Remove the "Post in_progress check" step from both the merge-queue (`merge-queue-kernel`) and label-trigger (`trigger-tests-pr`) paths. - The receiver (databricks-sql-kernel-integration-tests.yml) already creates and completes "Kernel Integration Tests" under the integration-test App, so it is now the single source of truth — no duplicate, no orphan. - Fail-closed on a silent dispatch drop is preserved by the existing `if: failure()` steps plus branch protection treating a missing required check as blocking. - Update the stale header/sticky-comment text that described the removed overwrite mechanism. A companion ruleset change drops the `integration_id: 15368` pin from the required "Kernel Integration Tests" check so it matches by name — letting the PR-path auto-pass (github-actions) and the queue-path receiver result (integration-test App) both satisfy the gate, exactly as the connector's branch protection does. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
Measured PR CI critical path was ~7 min with every job cold-building the ~57-crate dep tree. Three fixes: 1. Restore Rust build caching. setup-jfrog exported a fresh-per-run CARGO_REGISTRIES_JFROG_TOKEN into $GITHUB_ENV; Swatinem/rust-cache (run by setup-rust-toolchain) hashes every CARGO*-prefixed env var into its cache key, so every run got a unique key and a guaranteed miss. Proven: two Clippy runs had matching lockfile-hash but differing job-hash (v0-rust-clippy-...-713dabfe-b925cd2e vs ...-d7a226c9-b925cd2e). The env export was redundant — cargo, cargo-deny, and cargo-llvm-cov all read the token from ~/.cargo/credentials.toml via the config.toml credential-provider. Dropping the export restores stable keys and warm builds. 2. Stop pyo3 building the kernel twice. `uv sync` installed the project, triggering a full release build of the cdylib (~4m43s), then `maturin develop` rebuilt it in debug — x5 Python versions. Add `--no-install-project` so uv installs only deps; maturin builds the extension once. 3. Take napi's release build off the PR critical path. The lto=true `cargo build --release` (~4m) only verifies the release profile links; `cargo check --release` wouldn't exercise the LTO link, so keep the real build but gate it to `push` (post-merge canary on main). napi is not a required check, so PR feedback drops to fmt + clippy + test. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
Audit of every workflow + job name. No required-check context is
renamed (Unit + doc tests and Kernel Integration Tests are untouched),
so gating is unaffected — these are display-only cleanups for the
checks UI.
- trigger-integration-tests.yml: give all five jobs human-readable
names instead of falling back to raw machine keys
(remove-label-on-new-commit, skip-integration-tests-pr,
label-noop-during-rollout, trigger-tests-pr, merge-queue-kernel).
- license-check.yml: rename the job from `cargo-deny` to
`License & advisory check` to match the Title Case convention every
other workflow uses.
- close-stale.yml: name the `stale` job.
- pyo3-checks.yml / napi-checks.yml: drop the trailing slash in the
precondition job names ("Check pyo3/ sub-crate exists" ->
"Check pyo3 sub-crate exists"). GitHub renders checks as
"Workflow / Job", so a slash inside the job name produced a
confusing double-slash ("PyO3 Checks / Check pyo3/ sub-crate
exists").
Note: the "License Check / Kernel Integration Tests" grouping seen in
the UI is NOT fixable by renaming — it is GitHub bucketing an
API-created check-run (posted via github.token) into an arbitrary
same-app check-suite. It is cosmetic and does not affect gating.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-ups from a full audit of the repo's GitHub Actions setup. The scope grew as the merge queue (enabled but never previously exercised) surfaced latent bugs once this PR became the first to actually go through it. Grouped by theme below.
1. Merge-queue correctness (the queue was enabled but broken)
merge-queue-kernelcheckout 403. The job declaredpermissions: { checks: write }with nocontents: read; anypermissions:block zeroes unlisted scopes, soactions/checkoutfailedRepository not found(exit 128). Only the queue path checks out code, so it stayed latent until now. Addedcontents: read.in_progresscheck hung the queue. The kernel posted anin_progress"Kernel Integration Tests" check via the github-actions App and assumed the receiver (databricks-driver-test) would overwrite it. A check-run can only be updated by its creating App; the receiver posts under the integration-test App, so it created its own completed check while the placeholder stayedin_progressforever. Removed the kernel-side placeholder from both the merge-queue and label-trigger paths so the receiver is the sole poster — matchingdatabricks/databricks-sql-python's pattern.Unit + doc tests+Kernel Integration Tests; DCO/Formatting/Clippy/tls-build are advisory. Dropped theintegration_idpin onKernel Integration Testsso it matches by name (PR-path auto-pass and queue-path receiver result both satisfy it).pr-checksgains amerge_grouptrigger so the requiredUnit + doc testsreports on the merge group.2. CI speedups (measured critical path ~7 min → warm builds much faster)
setup-jfrogexported a fresh-per-runCARGO_REGISTRIES_JFROG_TOKEN; Swatinem/rust-cache hashes everyCARGO*env var into its key, so every run got a unique key and a guaranteed cold build. Proven via two runs with matching lockfile-hash but differing job-hash. Dropped the redundant env export (cargo/deny/llvm-cov read the token from~/.cargo/credentials.toml). Verified: first-everCache hit ... full match: true; Clippy 114s→41s, tls-rustls build 123s→44s.uv syncbuilt the cdylib in release (~4m43s), thenmaturin developrebuilt it in debug, ×5 Python versions. Added--no-install-projectso maturin builds it once.lto=truecargo build --release(~4m) now runs only on push to main (post-merge canary); napi isn't a required check, so PRs get fmt+clippy+test.3. Coverage / matrix / deps
{3.9, 3.12}→{3.10, 3.11, 3.12, 3.13, 3.14};requires-python→>=3.10;pyarrow→>=23.0.1,<24(23.x is the first series with cp314 wheels — matches databricks-sql-connector 5.0.0 / #818).abi3-py39→abi3-py310to match the ABI floor. Dropped the unsupported--interpreterflag frommaturin develop.cargo deny); allowCC0-1.0(transitivetiny-keccak, in both root and napi graphs). Path filter +merge_groupparity./napistandalone workspace.4. Naming cleanup (display-only; no required-check context renamed)
trigger-integration-testsjobs (were raw machine keys);cargo-denyjob →License & advisory check; named theclose-stalejob.Check pyo3/ sub-crate exists→Check pyo3 sub-crate exists) so theWorkflow / JobUI rendering isn't a confusing double-slash.Verification
actionlintclean on all workflows.cargo denyover the napi workspace passes after the CC0-1.0 allow; root still passes.Not in this PR (tracked follow-ups)