Repository navigation
ci(adbc): dispatch dedicated integration tests - #429
Conversation
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
Verdict: 2 Medium · 1 Low
The dispatch/check plumbing is mostly sound. One medium bug: the path filter can trigger on commits that landed on main, not just the PR's own changes. One medium robustness gap: a cancelled run can leave the check stuck in_progress.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Medium · 2 Low
The workflow is mostly sound, but there is one medium rollout concern. It reuses the shared INTEGRATION_TESTS_ENABLED gate, which is already on, so merging before databricks/databricks-driver-test#1957 leaves in_progress checks that never complete. The two low findings are a missing check on unlabeled PRs (only matters if the check becomes required) and possible duplicate checks on the same commit after a re-label.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Medium · 1 Low
Overall this looks solid. There is one medium concern: reusing a pending check can permanently block retries on a commit. Path filtering, the payload and cleanup on a failed or cancelled dispatch are handled correctly, and the existing synchronize-time label reset in trigger-integration-tests.yml also covers this label.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Low
Looks good, with one low concern: the path filter skips the ADBC suite for kernel changes, even though the ADBC driver builds against the kernel crate by path. The rest checks out: the trigger only fires for same-repo PRs, the shell treats a git diff --quiet exit code other than 1 as an error, the payload is built with JSON.stringify, the cleanup step runs on failure or cancellation, and dispatch stays off until the rollout flag is set.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Medium · 2 Low
The trigger workflow is mostly sound: SHA-pinned actions, a fork guard, merge-base path filtering and a rollout flag. The main concern (medium) is that reusing a pending check can turn a maintainer's re-label into a silent no-op for up to 3 hours. The other two findings are low-severity gaps in how the check lifecycle is reported.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
Verdict: 3 Low
Looks good overall, with three low-severity lifecycle concerns. The sender is well hardened: it only runs on same-repo PRs, checks out code without credentials and only runs git diff on it, keeps git's exit code 1 separate from real errors, and reports setup, dispatch and cancellation failures as checks. The remaining edge cases are about superseded checks, batched merge groups, and checks the receiver never completes.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
Verdict: 2 Low
The design looks sound. I found two low-severity issues: the dispatch-side check lookup can miss older in-progress runs because it uses GitHub's default filter: 'latest', and the app token has more permissions than this repo needs. A minor nit: the hourly expire-stalled-checks cron uses a runner and mints a token every hour even while RUST_ADBC_INTEGRATION_TESTS_ENABLED is off. Consider also giving the dispatch job a timeout-minutes, since it currently gets the 6h default.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Low
Looks good overall, with one low-severity gap: the stalled-check cleanup can't reach merge-group commits after they land on main. The rest of the workflow checks out: path detection, the retry/reuse/expiry logic, failure reporting and the fork/secret guards. Nit: the header comment "Enable RUST_ADBC_INTEGRATION_TESTS_ENABLED after driver-test#1957 lands" is out of date now that #1957 is merged.
| permission-pull-requests: read | ||
| permission-checks: write | ||
|
|
||
| - name: Cancel expired Rust ADBC checks on active revisions |
There was a problem hiding this comment.
🔵 Low — The hourly cleanup only looks at commits that are still the head of an open same-repo PR, or still pointed to by a gh-readonly-queue/ ref. Because this check is advisory, a merge group can merge while its ADBC run is still in_progress. Once that happens the queue ref is deleted and the merge-group commit becomes a main commit. If the receiver never reports back for that run, the check stays pending on main indefinitely, and nothing in this workflow will ever expire it. The same thing happens to checks on PR heads that were superseded by a later push, or on PRs that were closed.
Two possible fixes: also scan recent commits on the default branch (for example repos.listCommits limited to the last ~3–6 hours), or record dispatched merge-group SHAs somewhere the cleanup job can find them later.
|
Do you plan to follow up by removing adbc/** from the existing kernel integration-test workflow once this dedicated Rust ADBC workflow is enabled and validated? That would let ADBC-only changes run the new workflow, kernel-only changes run the kernel workflow, and mixed changes run both |
|
@rahuls-db yeah I can do that separately. Will give this a few more days to validate |
Give Rust ADBC its own
rust-adbc-pr-testdispatch, following the existing label and merge-queue pattern. Onlyadbc/or trigger-workflow changes start the suite. Kernel-only changes match Python/Node/Go, with cross-layer coverage left to nightly.Forward the exact commit and an advisory check ID; batched runs carry their merge-group ref. Re-labeling retries, merge-queue duplicates reuse active runs, and hourly maintenance cancels abandoned checks after three hours. The companion receiver preserves cancelled results from superseded runs.
The receiver, databricks/databricks-driver-test#1957, is merged. After this PR merges, set
RUST_ADBC_INTEGRATION_TESTS_ENABLED=truein this repository to enable dispatch; the flag defaults off. Reuse the existingintegration-testlabel; no new label is needed.Validation: actionlint, shell syntax, stale-base path filtering, and mocked rollout/retry/cleanup/reporting passed. #427's diff is excluded. Live tests were not run.