Skip to content

ci: stop secondary fork-PR checks from failing (#831)#852

Merged
vikrantpuppala merged 1 commit into
mainfrom
fix/831-fork-secondary-checks
Jul 9, 2026
Merged

ci: stop secondary fork-PR checks from failing (#831)#852
vikrantpuppala merged 1 commit into
mainfrom
fix/831-fork-secondary-checks

Conversation

@vikrantpuppala

Copy link
Copy Markdown
Contributor

Summary

After the offline-CI fix (#845/#848/#850/#851) turned the 37 unit/lint/type checks green on fork PRs, 3 checks remained red on the fork verification PR (#849). They are pre-existing (also red on the original fork PR #671), unrelated to the cache work, and all rooted in GitHub's fork restrictions:

  1. skip-integration-tests-pr / skip-kernel-e2e-pr post synthetic-success check-runs (checks.create), which need checks: write. On fork PRs GitHub forces GITHUB_TOKEN to read-only regardless of the declared permission, so the call 403s (Resource not accessible by integration). Fix: swallow the 403 only for forks (head.repo.fork) so the poster doesn't show a spurious failure. The real required checks (Python Proxy Tests / thrift|kernel, Kernel E2E) are posted by the merge_group run — which runs in the base-repo context with full permissions and secrets, checks out the queue branch (fork's merged code), and dispatches the actual proxy tests. So the fork's code is integration-tested, at merge-queue time. Non-fork and other errors still fail loudly.

  2. test-with-coverage runs the e2e suite against a live warehouse and needs the azure-prod secrets, which forks never receive (Secret source: None) — so it could only fail on a fork. Skip it on fork PRs; the real coverage gate runs on the merge_group transient branch (secrets present), which is what actually protects main.

Same-repo PRs and merge_group are unaffected by all three changes.

Before / after (fork PR)

#671 (pre-fix) #849 after #851 #849 after this PR (expected)
fail 40 3 0
pass 4 41 44

Test plan

Maintainer note

For a fork PR to be addable to the merge queue, branch protection must allow the required checks (Python Proxy Tests / *, Kernel E2E, coverage) to be satisfied by the merge_group run rather than at PR time. Please confirm the ruleset is in merge-queue mode for these — this is the standing branch-protection follow-up for #831.

Refs #831

This pull request and its description were written by Isaac.

The fork verification (#849) showed 3 checks still red on fork PRs — pre-existing
(also red on the original #671), separate from the cache fix, all rooted in
GitHub's fork restrictions:

- skip-integration-tests-pr / skip-kernel-e2e-pr post synthetic-success
  check-runs, needing checks:write. On fork PRs GitHub forces GITHUB_TOKEN to
  read-only regardless of the declared permission, so checks.create 403s
  ('Resource not accessible by integration'). Swallow the 403 ONLY for forks
  (github.event.pull_request.head.repo.fork) so the poster doesn't show a
  spurious failure; the REAL required checks are posted by the merge_group run
  (base context, full perms) when a maintainer queues the PR — the fork's code
  is genuinely integration-tested there. Non-fork/other errors still fail loudly.

- test-with-coverage runs the e2e suite against a live warehouse and needs the
  azure-prod secrets, which forks never get (Secret source: None) — so it could
  only fail on a fork. Skip it on fork PRs; the real coverage gate runs on the
  merge_group transient branch (secrets present), which is what protects main.

Same-repo PRs and merge_group are unaffected by all three changes.

Refs #831

Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
@vikrantpuppala vikrantpuppala merged commit 7e7b323 into main Jul 9, 2026
53 checks passed
vikrantpuppala added a commit to vikrantpuppala/databricks-sql-python that referenced this pull request Jul 9, 2026
…tabricks#831)

Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant