You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "rusackas (via GitHub)" <gi...@apache.org> on 2026/06/04 16:28:21 UTC
[PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
rusackas opened a new pull request, #40772:
URL: https://github.com/apache/superset/pull/40772
### SUMMARY
Follow-up to #40770. Frontend-only PRs (e.g. Dependabot npm bumps like #40757)
are still blocked from merging — stuck on **`unit-tests (current)`** and
**`test-postgres (current)`** showing *"Expected — Waiting for status to be
reported."*
**Root cause:** #40718 moved `unit-tests` and `test-postgres` to **job-level**
change-detection gating (`if: needs.changes.outputs.python == 'true'`). On a
non-Python PR the job is skipped — and a job-level skip happens **before matrix
expansion**, so the per-combination contexts `unit-tests (current)` /
`test-postgres (current)` are **never created**. Branch protection requires
them, so the PR waits forever.
This only bites *matrix* jobs. Non-matrix gated jobs (`test-mysql`,
`test-sqlite`) publish a `skipped` check that branch protection treats as
success — which is why only the two matrix contexts were stuck.
**Fix:** add an always-running `*-required` anchor job for each matrix job that
passes when the underlying job is `success` **or** `skipped`, and fails only on
a real failure. Point the required status checks at those anchors:
```yaml
unit-tests-required:
needs: [changes, unit-tests]
if: always()
steps:
- run: |
[ "$RESULT" = success ] || [ "$RESULT" = skipped ] || exit 1
env: { RESULT: "${{ needs.unit-tests.result }}" }
```
`.asf.yaml`: `unit-tests (current)` → `unit-tests-required`, `test-postgres
(current)` → `test-postgres-required`. The expensive matrix jobs stay **fully
skipped** on unrelated PRs (no wasted Postgres/Redis service containers); the
anchor is a ~5-second no-op.
> 📝 Related follow-up: #40722 (Python matrix → current-only on PRs) will stop
> producing `pre-commit (previous)` on PRs. That's a *matrix reduction*, not a
> job-skip, so it just needs the `pre-commit (previous)` context removed from
> `.asf.yaml` — handled in that PR, no shim required.
### TESTING INSTRUCTIONS
- Python PR: `unit-tests-required` / `test-postgres-required` run after the
matrix jobs and pass.
- Frontend-only / docs PR: the matrix jobs skip; the anchors run and pass; the
PR is mergeable.
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Changes UI
- [ ] Includes DB Migration
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #40772:
URL: https://github.com/apache/superset/pull/40772#issuecomment-4624196633
<!-- Bito Reply -->
This pull request introduces stable "required" status check anchors for the `test-postgres` and `unit-tests` jobs in the GitHub Actions workflows.
Because the original matrix-based jobs are gated on change detection, they are skipped on non-Python PRs, which can cause branch protection checks to fail. The new `test-postgres-required` and `unit-tests-required` jobs are configured to run `always()`, checking the result of the original jobs and passing if they either succeeded or were skipped, ensuring branch protection requirements are consistently met.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "hainenber (via GitHub)" <gi...@apache.org>.
hainenber commented on PR #40772:
URL: https://github.com/apache/superset/pull/40772#issuecomment-4624183188
Thanks Evan, LGreatTM :D
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #40772:
URL: https://github.com/apache/superset/pull/40772#issuecomment-4624137744
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas merged PR #40772:
URL: https://github.com/apache/superset/pull/40772
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on code in PR #40772:
URL: https://github.com/apache/superset/pull/40772#discussion_r3357523330
##########
.github/workflows/superset-python-unittest.yml:
##########
@@ -74,3 +74,25 @@ jobs:
verbose: true
use_oidc: true
slug: apache/superset
+
+ # Stable required-status-check anchor. `unit-tests` is a matrix job gated on
+ # change detection, so on non-Python PRs it is skipped and never produces its
+ # `unit-tests (current)` context (a job-level skip happens before matrix
+ # expansion). This always-running job reports a single context that branch
+ # protection can require: it passes when unit-tests succeeded or was skipped,
+ # and fails only on a real failure.
+ unit-tests-required:
+ needs: [changes, unit-tests]
+ if: always()
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
Review Comment:
Making sure this isn't too short as well....
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #40772:
URL: https://github.com/apache/superset/pull/40772#issuecomment-4624174877
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/40772?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 55.34%. Comparing base ([`41572db`](https://app.codecov.io/gh/apache/superset/commit/41572dbf9dfd2f73f27f8aa8a22c58372359545f?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`54e849b`](https://app.codecov.io/gh/apache/superset/commit/54e849bec09de87658228fd61ad9db51ab1e7378?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 2 commits behind head on master.
> :exclamation: There is a different number of reports uploaded between BASE (41572db) and HEAD (54e849b). Click for more details.
>
> <details><summary>HEAD has 20 uploads less than BASE</summary>
>
>| Flag | BASE (41572db) | HEAD (54e849b) |
>|------|------|------|
>|python|20|1|
>|presto|2|1|
></details>
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #40772 +/- ##
==========================================
- Coverage 64.03% 55.34% -8.70%
==========================================
Files 2663 2663
Lines 143619 143619
Branches 33030 33030
==========================================
- Hits 91973 79481 -12492
- Misses 50044 63426 +13382
+ Partials 1602 712 -890
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/40772/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [hive](https://app.codecov.io/gh/apache/superset/pull/40772/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [mysql](https://app.codecov.io/gh/apache/superset/pull/40772/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [postgres](https://app.codecov.io/gh/apache/superset/pull/40772/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [presto](https://app.codecov.io/gh/apache/superset/pull/40772/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `41.26% <ø> (ø)` | |
| [python](https://app.codecov.io/gh/apache/superset/pull/40772/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `41.26% <ø> (-18.68%)` | :arrow_down: |
| [sqlite](https://app.codecov.io/gh/apache/superset/pull/40772/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [unit](https://app.codecov.io/gh/apache/superset/pull/40772/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/40772?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on code in PR #40772:
URL: https://github.com/apache/superset/pull/40772#discussion_r3357518592
##########
.github/workflows/superset-python-integrationtest.yml:
##########
@@ -222,3 +222,25 @@ jobs:
verbose: true
use_oidc: true
slug: apache/superset
+
+ # Stable required-status-check anchor for the matrix-based test-postgres job.
+ # It is gated on change detection, so on non-Python PRs it is skipped and
+ # never produces its `test-postgres (current)` context (a job-level skip
+ # happens before matrix expansion). This always-running job reports a single
+ # context branch protection can require: it passes when test-postgres
+ # succeeded or was skipped, and fails only on a real failure.
+ test-postgres-required:
+ needs: [changes, test-postgres]
+ if: always()
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
Review Comment:
~~Hopefully this isn't too short 🤞~~
I think we're OK.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on code in PR #40772:
URL: https://github.com/apache/superset/pull/40772#discussion_r3357523330
##########
.github/workflows/superset-python-unittest.yml:
##########
@@ -74,3 +74,25 @@ jobs:
verbose: true
use_oidc: true
slug: apache/superset
+
+ # Stable required-status-check anchor. `unit-tests` is a matrix job gated on
+ # change detection, so on non-Python PRs it is skipped and never produces its
+ # `unit-tests (current)` context (a job-level skip happens before matrix
+ # expansion). This always-running job reports a single context that branch
+ # protection can require: it passes when unit-tests succeeded or was skipped,
+ # and fails only on a real failure.
+ unit-tests-required:
+ needs: [changes, unit-tests]
+ if: always()
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
Review Comment:
~~Making sure this isn't too short as well...~~
I think we're OK.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] ci: stable required-check anchors for skippable matrix test jobs [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on code in PR #40772:
URL: https://github.com/apache/superset/pull/40772#discussion_r3357518592
##########
.github/workflows/superset-python-integrationtest.yml:
##########
@@ -222,3 +222,25 @@ jobs:
verbose: true
use_oidc: true
slug: apache/superset
+
+ # Stable required-status-check anchor for the matrix-based test-postgres job.
+ # It is gated on change detection, so on non-Python PRs it is skipped and
+ # never produces its `test-postgres (current)` context (a job-level skip
+ # happens before matrix expansion). This always-running job reports a single
+ # context branch protection can require: it passes when test-postgres
+ # succeeded or was skipped, and fails only on a real failure.
+ test-postgres-required:
+ needs: [changes, test-postgres]
+ if: always()
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
Review Comment:
Hopefully this isn't too short 🤞
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org