You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Yicong-Huang (via GitHub)" <gi...@apache.org> on 2026/05/01 22:29:27 UTC

[PR] feat(ci): gate main build stacks on PR labels [texera]

Yicong-Huang opened a new pull request, #4622:
URL: https://github.com/apache/texera/pull/4622

   ### What changes were proposed in this PR?
   
   Wire the Build workflow's `precheck` job up to PR labels so it can skip irrelevant stacks. Two pieces:
   
   - `precheck` now polls for the `labeler` check on the PR head SHA before deciding (up to 5 minutes), so the labels the Pull Request Labeler workflow applies are already in place. Then it re-fetches the PR's labels and uses them as the gating signal.
   - Routing rules:
     - PR labelled exclusively with `docs` and/or `dev` → every main stack (`frontend`, `scala`, `python`, `agent-service`) is skipped.
     - PR with no `frontend` label → `frontend` stack is skipped; the other stacks still run.
     - Other label combinations → every stack runs (current default).
     - `push` and `workflow_dispatch` events are unchanged, every stack runs unconditionally.
   - Rename the existing `build` label in `.github/labeler.yml` to `dev` so the name matches the role it actually plays (infra / developer tooling under `bin/**` and `deployment/**`); precheck reads `dev`.
   
   The backport matrix gating is unchanged; it still keys off `release/*` labels.
   
   ### Any related issues, documentation, discussions?
   
   Closes #4621.
   Picks up the idea from the closed prior attempt #3642 ("chore(ci): skip non-relevant CIs"), but applies it to the merged Build workflow's `precheck` and uses labels as the source of truth instead of a separate path filter.
   
   Note: the `.asf.yaml` ruleset on `release/*` and `main` lists static required check names (e.g. `frontend (ubuntu-latest, 18)`, `scala (ubuntu-22.04, 11)`). When this PR skips a stack, those checks come back as `skipped` rather than `success` and may need the aggregator from #4599 to bypass branch protection cleanly. This PR does not modify the ruleset.
   
   ### How was this PR tested?
   
   To be exercised on the PR itself once labeler runs on it: this PR touches `.github/workflows/**` and `.github/labeler.yml`, so the labeler should add `ci`. With only `ci` (and not `frontend`), `precheck` should set `run_frontend=false` and run the other stacks. Adding `frontend` should flip frontend back on; replacing labels with `docs` (or `dev`) only should skip every stack.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 4.7
   


-- 
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@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): make Build stacks optional based on PR labels [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on PR #4622:
URL: https://github.com/apache/texera/pull/4622#issuecomment-4362148338

   > Hope we can skip the Scala check for Python changes and the Python check for Scala changes. For example, we don't need to run a Python check when we add a new Scala operator. Totally optional.
   
   for now, no. python and scala are both engine code. they are not 100% decoupled. in our scala backend test, there are test cases with python native operators (integration tests).
   
   We need to separate them into scala only tests, python only tests, and integration tests. then we can skip them optionally. we have a long way to go.
   
   Also scala tests should be split into per service. currently it's bundled together although we split the codebase. the test entry is single, at least in CI. let's do this gradually. 
   
   This PR I only did the simple ones: docs, dev, and frontend. It will be a long fight for other paths.


-- 
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@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): make Build stacks optional based on PR labels [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on PR #4622:
URL: https://github.com/apache/texera/pull/4622#issuecomment-4362139624

   Hope we can skip the Scala check for Python changes and the Python check for Scala changes. For example, we don't need to run a Python check when we add a new Scala operator. Totally optional.


-- 
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@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): make Build stacks optional based on PR labels [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on PR #4622:
URL: https://github.com/apache/texera/pull/4622#issuecomment-4362132188

   > Why do we skip the frontend based on the label? Can we check on the files?
   
   labeler will make sure to add the label according to file path. the mapping relationship is done in the labeler. This way is also for developer to add labels to trigger necessary CI job, for extra check.


-- 
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@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): make Build stacks optional based on PR labels [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang merged PR #4622:
URL: https://github.com/apache/texera/pull/4622


-- 
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@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org