Skip to content

ci(adbc): dispatch dedicated integration tests - #429

Merged
vuanhphung merged 9 commits into
mainfrom
vu-phung_data/stack/rust-adbc-integration-trigger
Nov 9, 2026
Merged

vuanhphung merged 9 commits into
mainfrom
vu-phung_data/stack/rust-adbc-integration-trigger

Conversation

@vuanhphung

@vuanhphung vuanhphung commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Give Rust ADBC its own rust-adbc-pr-test dispatch, following the existing label and merge-queue pattern. Only adbc/ 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=true in this repository to enable dispatch; the flag defaults off. Reuse the existing integration-test label; 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.

Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: 2 Low

Looks good overall: the change-detection, retry, reuse and expiry logic all check out on careful reading. I found two low-severity robustness gaps: the hourly sweep can abort on a single API error, and a cancelled setup posts no check.

Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@vuanhphung
vuanhphung marked this pull request as ready for review November 9, 2026 04:15
@vuanhphung
vuanhphung requested a review from a team as a code owner November 9, 2026 04:15

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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.

@rahuls-db

Copy link
Copy Markdown
Collaborator

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

@vuanhphung

Copy link
Copy Markdown
Collaborator Author

@rahuls-db yeah I can do that separately. Will give this a few more days to validate

@vuanhphung
vuanhphung added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 6a116f9 Nov 9, 2026
23 checks passed

This branch was previously deployed

1 inactive deployment
azure-prod — b9c73404 Deployed Nov 9, 2026 by oss-reviewer-bot[bot] via followup #2209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants