Skip to content

[Deepin-Kernel-SIG] [linux 6.6-y] [Deepin] CI: Add patch check by using build kernel sw64 #921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

opsiff
Copy link
Member

@opsiff opsiff commented Jul 8, 2025

Summary by Sourcery

CI:

  • Add a GitHub Actions workflow to build the Linux kernel for the sw64 architecture and upload the Module.symvers artifact.

Copy link

sourcery-ai bot commented Jul 8, 2025

Reviewer's Guide

Add a CI workflow to automate SW64 kernel builds by defining triggers, environment setup, compilation steps, and artifact upload in a new GitHub Actions file.

Flow diagram for SW64 kernel build CI process

flowchart TD
  A[Trigger: push/pull_request/workflow_dispatch] --> B[Checkout code]
  B --> C[Install dependencies and set git config]
  C --> D[Compile kernel with swmk1230]
  D --> E[Upload Module.symvers as artifact]
Loading

File-Level Changes

Change Details Files
Introduce a new GitHub Actions workflow to compile and artifact the kernel for SW64 architecture
  • Define workflow triggers on push, pull_request, and manual dispatch
  • Set KBUILD build user, host, and email environment variables
  • Grant pull-request read permission and specify self-hosted x64 runner
  • Checkout code and configure Git user settings
  • Run swmk1230 for defconfig and parallel kernel compilation
  • Upload Module.symvers as the Kernel-ABI-sw64 artifact
.github/workflows/build-kernel-sw64.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from opsiff. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@opsiff opsiff force-pushed the linux-6.6.y-ci-sw-build branch from 4a11878 to 9c6669e Compare July 8, 2025 06:15
@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • 缺少对环境变量 email 的验证,可能导致配置错误
  • permissions 部分只声明了 pull-requests 的读取权限,可能需要根据实际需求添加更多权限
  • steps 中缺少对 swmk1230xuelang_defconfig 的定义和验证,可能导致编译失败
  • time 命令用于测量编译时间,但未处理编译失败的情况
  • Upload Kernel Artifact 步骤中只上传了 Module.symvers 文件,可能需要上传更多编译产物

是否建议立即修改:

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @opsiff - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Avenger-285714
Copy link
Collaborator

请将build kernel sw64改为build kernel sw6b,以便未来引入sw8a

@Avenger-285714
Copy link
Collaborator

请将build kernel sw64改为build kernel sw6b,以便未来引入sw8a

或者“sw64-6b”、“sw64-c3b”等称呼

@opsiff opsiff force-pushed the linux-6.6.y-ci-sw-build branch from 9c6669e to f6d59be Compare July 8, 2025 06:49
@opsiff
Copy link
Member Author

opsiff commented Jul 8, 2025

请将build kernel sw64改为build kernel sw6b,以便未来引入sw8a

已改

Copy link

@Copilot 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

Adds a new GitHub Actions workflow to compile the Linux kernel for the sw64 architecture and upload the generated Module.symvers artifact.

  • Introduces .github/workflows/build-kernel-sw64.yml to define build steps
  • Sets environment variables for build user and host
  • Runs kernel compilation and uploads the Module.symvers file
Comments suppressed due to low confidence (3)

.github/workflows/build-kernel-sw64.yml:1

  • The workflow name has a typo: sw6b should be sw64 to match the file name and intended architecture.
name: build kernel sw6b

.github/workflows/build-kernel-sw64.yml:34

  • The artifact name uses sw6b instead of sw64; please correct this to ensure consistency.
          name: Kernel-ABI-sw6b

.github/workflows/build-kernel-sw64.yml:28

  • The build commands do not specify ARCH=sw64, so the kernel may default to x86_64. Prefix with ARCH=sw64 (and CROSS_COMPILE if needed) to ensure a proper cross-compile for sw64.
          time swmk1230 xuelang_defconfig

@Avenger-285714 Avenger-285714 merged commit 151aa88 into deepin-community:linux-6.6.y Jul 8, 2025
7 of 12 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.

3 participants