Skip to content

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

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

Conversation

opsiff
Copy link
Member

@opsiff opsiff commented Jun 19, 2025

Summary by Sourcery

CI:

  • Add GitHub Actions workflow 'build-kernel-riscv64' to compile the Linux kernel for riscv64 and upload the Kernel-ABI-riscv64 artifact

Copy link

sourcery-ai bot commented Jun 19, 2025

Reviewer's Guide

Adds a new GitHub Actions workflow to build the RISC-V64 kernel using a cross-compiler and upload its ABI artifact for CI verification.

Flow diagram for RISC-V64 kernel build and artifact upload in CI

flowchart TD
  A[Start: Push/PR/Workflow Dispatch] --> B[Checkout Code]
  B --> C[Configure Git User/Email]
  C --> D[Compile Kernel with RISC-V Cross-Compiler]
  D --> E[Upload Module.symvers as Kernel-ABI-riscv64 Artifact]
  E --> F[End]
Loading

File-Level Changes

Change Details Files
Introduce RISC-V64 kernel build workflow with artifact upload
  • Define workflow triggers (push, pull_request, manual)
  • Set env vars and permissions for KBUILD user, host, and email
  • Run on self-hosted Linux x64 runner
  • Checkout code, configure Git, and build kernel with CROSS_COMPILE
  • Upload Module.symvers as Kernel-ABI-riscv64 artifact
.github/workflows/build-kernel-riscv64.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

@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • 缺少对环境变量 email 的验证,可能导致配置错误
  • permissions 部分只允许读取拉取请求,可能需要根据实际需求调整权限
  • time 命令用于测量编译时间,但未处理可能的错误输出
  • Module.symvers 文件路径硬编码,建议使用变量或配置文件
  • 缺少对编译过程中可能出现的错误进行捕获和处理

是否建议立即修改:

@Avenger-285714 Avenger-285714 merged commit a8b6645 into deepin-community:linux-6.6.y Jun 19, 2025
9 checks passed
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 riscv64 and upload the Kernel-ABI-riscv64 artifact

  • Introduces build-kernel-riscv64.yml under .github/workflows
  • Triggers on push, pull_request, and manual dispatch
  • Checks out code, configures git, builds the kernel, and uploads Module.symvers
Comments suppressed due to low confidence (2)

.github/workflows/build-kernel-riscv64.yml:20

  • [nitpick] The step named "Install Deps" only configures Git user information and does not install dependencies. Consider renaming it to "Configure Git user" or adding actual package installation commands if needed.
      - name: "Install Deps"

.github/workflows/build-kernel-riscv64.yml:10

  • [nitpick] The environment variable email is lowercase, while others are uppercase. For consistency, consider renaming it to EMAIL.

@opsiff opsiff changed the title CI: Add patch check by using build kernel riscv64 [Deepin-Kernel-SIG] [linux 6.6-y] [Deepin] CI: Add patch check by using build kernel riscv64 Jun 20, 2025
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