Skip to content

[chore](build) Use ubuntu-slim for review trigger - #68048

Open
hello-stephen wants to merge 1 commit into
masterfrom
ci/use-ubuntu-slim-review-trigger
Open

hello-stephen wants to merge 1 commit into
masterfrom
ci/use-ubuntu-slim-review-trigger

Conversation

@hello-stephen

Copy link
Copy Markdown
Contributor

Proposed changes

Switch the lightweight Label when reviewed trigger job from ubuntu-latest to ubuntu-slim.

The job only runs echo to emit the downstream workflow_run event, so the 1-vCPU container runner is a better fit than a full Ubuntu VM.

Suggested by @mbien in #68025 (comment).

Validation

  • actionlint .github/workflows/approve-label-trigger.yml
  • git diff --check

The event wiring is unchanged: pull_request_review still starts this workflow, and the existing workflow_run.requested listener remains unchanged. Runtime validation requires a review event after this change reaches the default branch.

### What problem does this PR solve?

Issue Number: None

Related PR: #68025

Problem Summary: The review-label trigger only runs an echo command to emit the workflow_run event, but it currently allocates a full ubuntu-latest VM. Use the lightweight ubuntu-slim container runner for this short automation task.

### Release note

None

### Check List (For Author)

- Test: Manual test
    - actionlint .github/workflows/approve-label-trigger.yml
    - git diff --check
- Behavior changed: No. The pull_request_review and downstream workflow_run events are unchanged.
- Does this need documentation: No
@hello-stephen

Copy link
Copy Markdown
Contributor Author

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@hello-stephen

Copy link
Copy Markdown
Contributor Author

@mbien I opened this small follow-up based on your suggestion in #68025. It only switches the review trigger's no-op job to ubuntu-slim. Would you mind taking a look? Thanks.

@hello-stephen

Copy link
Copy Markdown
Contributor Author

skip buildall

@mbien

mbien commented Sep 16, 2026

Copy link
Copy Markdown
Member

looks good. The restrictions are essentially 15min timeout and a limited set of pre-installed tools, see
https://github.com/actions/runner-images/blob/main/images/ubuntu-slim/ubuntu-slim-Readme.md.

some of your other workflows look like that they only need gh CLI, jq and basic bash -> so there might be more candidates.

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.

2 participants