Skip to content

chore: switch CI jobs to use ubuntu-slim instead of ubuntu-latest#902

Merged
yangxk1 merged 2 commits intoapache:mainfrom
SYaoJun:0304_ci_slim
Mar 10, 2026
Merged

chore: switch CI jobs to use ubuntu-slim instead of ubuntu-latest#902
yangxk1 merged 2 commits intoapache:mainfrom
SYaoJun:0304_ci_slim

Conversation

@SYaoJun
Copy link
Contributor

@SYaoJun SYaoJun commented Mar 4, 2026

Reason for this PR

This PR aims to use ubuntu-slim for GitHub Actions.

ubuntu-slim is a new cost-efficient runner to fit small jobs like license-check. We had better use this to save ASF infra usage (if possible)

fix: #901

.licenserc.yml referred to iceberg-cpp

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates GitHub Actions workflows to use the new ubuntu-slim runner for lightweight CI jobs, and adjusts the license-check workflow to use Apache’s license header checking tooling/config.

Changes:

  • Switch selected workflow jobs from ubuntu-latest to ubuntu-slim.
  • Revise the license workflow job (rename job, improve checkout inputs for push/PR contexts).
  • Replace the previous license header checker with apache/skywalking-eyes and add .github/.licenserc.yaml configuration.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/pr-title.yml Uses ubuntu-slim for the PR title validation job.
.github/workflows/license.yml Uses ubuntu-slim, adjusts checkout defaults, switches license checker to SkyWalking Eyes with config.
.github/workflows/docs.yml Uses ubuntu-slim for docs site build job.
.github/.licenserc.yaml Adds license header checking configuration for the license workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +45 to +49
- name: Check license header
uses: apache/skywalking-eyes@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

apache/skywalking-eyes is referenced from the moving @main branch, which makes the workflow non-reproducible and increases supply-chain risk. Pin this action to a tagged release or a specific commit SHA instead.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +5
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

This new .github/.licenserc.yaml file is missing the standard ASF license header comment block that the repository uses for YAML files. Add the ASF header to the top of this file (or ensure it’s explicitly excluded by the license-check config) so the license check and ASF policy remain consistent.

Copilot uses AI. Check for mistakes.
- name: Check License Header
uses: korandoru/hawkeye@v4
- name: Check license header
uses: apache/skywalking-eyes@main
Copy link
Contributor

Choose a reason for hiding this comment

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

noticed that the usage displayed on the GitHub readme is

  uses: apache/skywalking-eyes/header@main      # always prefer to use a revision instead of `main`.

@SYaoJun
Copy link
Contributor Author

SYaoJun commented Mar 10, 2026

I have updated the code.

@SYaoJun SYaoJun requested a review from yangxk1 March 10, 2026 13:49
Copy link
Contributor

@yangxk1 yangxk1 left a comment

Choose a reason for hiding this comment

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

LGTM

@yangxk1 yangxk1 merged commit 080a2f6 into apache:main Mar 10, 2026
3 checks passed
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.

[CI]: Use ubuntu-slim for GitHub Actions

3 participants