Skip to content

恢复 openRuyi 基础组件的上游测试与构建根适配 / Restoring Upstream Tests and Buildroot Compatibility for openRuyi Core Components #2

Description

@misaka00251

项目支持报名语言 / Application Language

中英双语 / Chinese and English

项目类型 / Project Type

经典模式项目 / Classic Project

项目名称 (中文)

恢复 openRuyi 基础组件的上游测试与构建根适配

Project Name (English)

Restoring Upstream Tests and Buildroot Compatibility for openRuyi Core Components

项目导师 / Mentors

misaka00251

项目描述 (中文)

相关背景

openRuyi 的部分基础软件包保留了空的 %check 或历史测试豁免。其中部分阻塞依赖已在仓内具备,部分测试还需要处理构建根、共享库路径或测试运行环境。当前问题会使软件包构建通过,但缺少对上游行为的实际验证。

存在的不足

例如,genimage、lua-json、lmdb、libtomcrypt 的测试未被有效执行。部分历史注释已经过时,且测试失败原因、可复现方式和合理跳过范围没有形成统一记录。

希望改进的点

恢复选定软件包的上游测试,补齐测试依赖或构建根适配,确保测试失败会使 RPM 构建失败,并留下可复现的验证记录。

最终项目实现的目标

在不依赖外网、特权容器或宿主系统服务的前提下,恢复至少三个基础组件的有效上游测试,并完成剩余候选的根因分析和维护建议。

Project Description (English)

Background

Some core packages in openRuyi still contain empty %check sections or historical test exemptions. Some previously missing dependencies are now available in the repository, while other tests still require adaptations for the buildroot, shared library paths, or the test execution environment. As a result, these packages may build successfully without actually validating their upstream behavior.

Current Limitations

For example, the tests for genimage, lua-json, LMDB, and LibTomCrypt are not being effectively executed. Some historical comments are outdated, and there is no consistent documentation of test failure causes, reproduction procedures, or the reasonable scope of skipped tests.

Proposed Improvements

Restore upstream tests for selected packages, add missing test dependencies or buildroot adaptations, ensure that test failures cause the RPM build to fail, and provide reproducible verification records.

Final Project Goals

Without relying on external network access, privileged containers, or host system services, restore effective upstream tests for at least three core components, and complete root cause analyses and maintenance recommendations for the remaining candidates.

项目备注 (中文)

Project Notes (English)

N/A

项目综合难度 / Difficulty

基础 / Basic

开发周期 / Development Cycle

2 个月 / 2 months

技术领域标签 / Technical Domains

操作系统与基础软件 / Operating Systems and Infrastructure Software

编程语言标签 / Programming Languages

C, Lua, Shell, RPM Spec

项目产出要求 (中文)

  1. 完成四个候选包的测试基线审计
  2. 恢复 genimage 的上游测试
  3. 恢复 lua-json 的上游测试
  4. 恢复 LMDB 或 LibTomCrypt 的实际测试
  5. 提供另一核心包的根因与复现记录
  6. 提供构建日志和测试跳过说明

Project Deliverables (English)

  1. Complete a baseline test audit for all four candidate packages.
  2. Restore upstream tests for genimage.
  3. Restore upstream tests for lua-json.
  4. Restore actual test execution for either LMDB or LibTomCrypt.
  5. Provide root cause analysis and reproduction records for the other core package.
  6. Provide build logs and explanations for any skipped tests.

项目技术要求 (中文)

  1. 了解 Linux RPM 打包与 BuildRequires
  2. 能阅读 Makefile 和 Autotools 测试日志
  3. 具备基础 C、Lua 与 Shell 调试能力
  4. 能使用 Git 提交可独立审阅的 PR

Technical Requirements (English)

  1. Familiarity with Linux RPM packaging and BuildRequires.
  2. Ability to read Makefile and Autotools test logs.
  3. Basic debugging skills in C, Lua, and Shell.
  4. Ability to use Git and submit independently reviewable pull requests.

项目成果仓库 / Output Repository (PR Target)

https://github.com/openRuyi-Project/openRuyi

项目成果仓库开源协议 / Repository License

MulanPSL-2.0

提交确认 / Confirmation

  • 我确认所填信息完整准确,并已按所选报名语言填写对应内容。 / I confirm that the information is complete and accurate and matches the selected application language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Community: OSPPCommunity contribution during OSPP.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions