Skip to content

chore: move stub_linux from 3rdparty to tests - #106

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
wangrong1069:agent/pms-bug-bot/47043ff05815
Nov 17, 2026
Merged

deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
wangrong1069:agent/pms-bug-bot/47043ff05815

Conversation

@wangrong1069

@wangrong1069 wangrong1069 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

chore: move stub_linux from 3rdparty to tests

  1. Move stub_linux headers from 3rdparty/ to tests/ directory
  2. Update include_directories path in src/CMakeLists.txt
  3. Update file path in debian/copyright
  4. Remove obsolete 3rdparty filter from lcov commands

Influence:

  1. Verify test build with DOTEST enabled
  2. Confirm stub headers are found at new path

chore: 将 stub_linux 从 3rdparty 移至 tests

  1. 将 stub_linux 头文件从 3rdparty/ 移至 tests/ 目录
  2. 更新 src/CMakeLists.txt 中的 include_directories 路径
  3. 更新 debian/copyright 中的文件路径
  4. 移除 lcov 命令中过时的 3rdparty 过滤规则

Influence:

  1. 验证启用 DOTEST 时测试构建正常
  2. 确认 stub 头文件在新路径下可被找到

PMS: TASK-398525

Summary by Sourcery

Move Linux test stubs into the tests directory and align project metadata and coverage configuration with the new location.

Enhancements:

  • Relocate Linux stub headers from the third-party tree into the test tree and update test include paths accordingly.

Chores:

  • Update licensing metadata and remove the obsolete third-party coverage filter.

@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Point test builds at the relocated stubs and update licensing metadata to record their new location.

  • .reuse/dep5 L57, L71-72
  • debian/copyright L14
  • src/CMakeLists.txt L116

Tests

Move the Linux stub headers into the test directory and update the coverage script to match their new location.

  • tests/test-prj-running.sh L3, L46, L54

Other changes

Files not grouped.

  • tests/stub_linux/addr_any.h
  • tests/stub_linux/addr_pri.h
  • tests/stub_linux/elfio.hpp
  • tests/stub_linux/stub.h

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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="src/CMakeLists.txt" line_range="116" />
<code_context>

     include_directories(./../tests/)
-    include_directories(./../3rdparty/stub_linux/)
+    include_directories(./../tests/stub_linux/)

     aux_source_directory(./../tests/ allTestSource)
</code_context>
<issue_to_address>
**Stub headers receive GPL metadata**

When REUSE tooling processes the relocated headers, `.reuse/dep5` matches the headers under its broad `tests/*` GPL-3.0-or-later rule instead of the MIT stanza for `3rdparty/stub_linux/*`, so REUSE metadata reports the wrong license.

Update `.reuse/dep5` so the relocated headers match an MIT stanza.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread src/CMakeLists.txt Resolved
1. Move stub_linux headers from 3rdparty/ to tests/ directory
2. Update include_directories path in src/CMakeLists.txt
3. Update file path in debian/copyright
4. Remove obsolete 3rdparty filter from lcov commands

Influence:
1. Verify test build with DOTEST enabled
2. Confirm stub headers are found at new path

chore: 将 stub_linux 从 3rdparty 移至 tests

1. 将 stub_linux 头文件从 3rdparty/ 移至 tests/ 目录
2. 更新 src/CMakeLists.txt 中的 include_directories 路径
3. 更新 debian/copyright 中的文件路径
4. 移除 lcov 命令中过时的 3rdparty 过滤规则

Influence:
1. 验证启用 DOTEST 时测试构建正常
2. 确认 stub 头文件在新路径下可被找到

Log: 将 stub_linux 从 3rdparty 移至 tests 目录
PMS: TASK-398525
@wangrong1069
wangrong1069 force-pushed the agent/pms-bug-bot/47043ff05815 branch from a3dc3f7 to 153e222 Compare November 17, 2026 11:28
@deepin-ci-robot

Copy link
Copy Markdown

deepin pr auto review

🤖 AI 代码审查报告

总体评分: 100 分 (通过阈值: 70分)

Pass


📊 总体评价

项目 结果
审查结论 代码审查通过
评分详情 本次提交将 stub_linux 测试桩文件从 3rdparty/ 目录迁移到 tests/ 目录,属于项目结构整理。 所有引用路径(CMakeLists.txt、.reuse/dep5、debian/copyright、lcov 过滤规则)均已同步更新, 变更一致性良好。四维度均无问题,OCR 审查与启发式扫描均未发现缺陷,代码质量优秀。

|


🔍 详细分析

1. 语法逻辑 ✅

评价: 语法正确,逻辑清晰 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


2. 代码质量 ✅

评价: 代码结构清晰,注释完整 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


3. 代码性能 ✅

评价: 性能良好,资源使用合理 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


4. 代码安全 🔒

评价: 存在0个安全漏洞 ✅ 通过

🔐 发现 0 个安全漏洞

安全漏洞详情:
✅ 未发现安全漏洞

建议: []


💡 改进建议代码示例


本报告由 AI 代码审查工具自动生成

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lzwind, wangrong1069

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

Details 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

@wangrong1069

Copy link
Copy Markdown
Contributor Author

/merge

@deepin-bot
deepin-bot Bot merged commit 0e6899b into linuxdeepin:master Nov 17, 2026
20 checks passed
@wangrong1069
wangrong1069 deleted the agent/pms-bug-bot/47043ff05815 branch November 17, 2026 11:38
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