Skip to content

refactor: migrate to in-tree archive backends - #562

Open
dengzhongyuan365-dev wants to merge 5 commits into
linuxdeepin:masterfrom
dengzhongyuan365-dev:self-develop-v8283-ordered
Open

dengzhongyuan365-dev wants to merge 5 commits into
linuxdeepin:masterfrom
dengzhongyuan365-dev:self-develop-v8283-ordered

Conversation

@dengzhongyuan365-dev

@dengzhongyuan365-dev dengzhongyuan365-dev commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary / 改动说明

将归档管理器的读写操作接入仓库内的归档后端,并移除旧第三方归档插件源码。后端继续按格式调用所需的系统库和命令行工具;迁移以保持原版功能、界面交互和性能为目标。

  1. 2d99fc2e 实现归档后端和格式路由,不改动 pzip。
  2. bc9b4d9b 将应用接入新后端,加入迁移调用所需的 pzip --exclude-path。
  3. cccc810a 修复迁移后发现的短输入、压缩进度、磁盘空间不足错误上报和页面闪退问题,保持原版进度页切换行为。
  4. 83d92c6e 单独加入契约测试、单元测试调整和验收工具;本 PR 不包含验收文档。
  5. ebe02ebd 删除旧 3rdparty 归档插件、迁移适配层和旧插件测试,测试与 CLI 仅依赖自研后端。

Log: Migrate archive operations to the in-tree backends and remove obsolete third-party plugin sources.

Verification / 验证结果

  • 最终提交 ebe02ebd:Qt 6 Release 开启测试构建通过,全程使用 -j4。
  • 契约测试:129 项通过,2 项因当前环境没有 rar 创建工具而跳过;unrar 读取路径正常。
  • 主程序测试:606 项非主窗口测试通过,主窗口 208 项按既有隔离方式运行并全部通过。
  • archive-cli 冒烟通过:ZIP、7z、tar.gz、tar.bz2、tar.xz 的创建、列出、解压和内容校验均通过。
  • 同产品源码的前一待验包完成 104 次解压、36 次压缩对照,产物均通过校验,9 组中位数均未触发 5% 回退告警;最终待验包尚未重跑完整性能矩阵。
  • 222 条桌面用例分轮累计:219 通过,1 条为用例描述有误(1799179),2 条因环境要求待办(1798917:真实 U 盘空间不足;1799461:另一台电脑接收并解压隐藏文件)。两项待办不计入通过。

Influence / 回归重点

  1. 对照旧版验证 ZIP、7z、RAR、tar 系列及单文件压缩格式,重点核对密码、分卷和长文件名行为。
  2. 对照旧版确认压缩、整包解压的进度显示、切页、取消及错误提示。
  3. 在最终待验包上补跑完整性能矩阵,并在具备 rar 工具的环境补跑两项 RAR 写入测试。

PMS: TASK-398535
Issue: V-8283

1. Define shared archive contracts and filename encoding detection.
2. Implement ZIP, 7z, RAR, TAR, CRX and single-file backends.
3. Add format dispatch without changing the app's existing routes.

Log: No user-facing changes

Influence:
1. Verify the app still uses the original archive entry points.
2. Review format and capability selection in the backend registry.
3. Compare filename decoding against the legacy implementation.

refactor: 实现自有归档后端

1. 定义公共归档接口并实现文件名编码探测。
2. 实现 ZIP、7z、RAR、TAR、CRX 和单文件后端。
3. 加入格式分发逻辑,暂不改变 App 的归档入口。

Log: 无用户可见变化

Influence:
1. 确认 App 仍沿用原有归档入口。
2. 核对后端注册表的格式和能力选择。
3. 对照旧实现检查文件名解码结果。

Log: No user-facing changes
PMS: TASK-398535
Issue: V-8283
1. Route archive jobs through the app-owned archive session.
2. Stop installing legacy plugins and keep their test-only build.
3. Add the pzip path exclusion option used by the new ZIP route.

Log: Switch archive operations to the new backends.

Influence:
1. Verify installed archive operations do not depend on legacy plugins.
2. Check ZIP creation with the destination inside the source directory.
3. Check context actions, archive listing and password prompts.

refactor: 将归档管理器接入自有后端

1. 通过 App 自有归档会话处理归档任务。
2. 停止安装旧插件,仅保留其测试构建。
3. 同步补齐新 ZIP 路径使用的 pzip 路径排除参数。

Log: 将归档操作切换到自有后端。

Influence:
1. 确认安装后的归档操作不依赖旧插件。
2. 检查输出路径位于源目录内时的 ZIP 创建。
3. 检查右键操作、归档列表和密码提示。

Log: Switch archive operations to the new backends.
PMS: TASK-398535
Issue: V-8283
1. Fix short pzip inputs, progress events and disk-full reporting.
2. Align extraction, long names and cancellation with the original app.
3. Restore progress handling and guard stale accessibility queries.

Log: Fix archive progress, short inputs and settings page crashes.

Influence:
1. Verify short ZIP entries and disk-full errors during writes.
2. Check encrypted and long-name extraction, pause and cancellation.
3. Compare progress pages and exercise screen-reader queries on page changes.

fix: 修复归档迁移回归问题

1. 修复 pzip 短文件输入、进度事件和磁盘满错误上报。
2. 对齐旧版解压、长文件名和取消行为。
3. 恢复进度处理,避免过期无障碍查询导致崩溃。

Log: 修复归档进度、短文件输入和设置页崩溃。

Influence:
1. 验证 ZIP 短文件条目和写入时的磁盘满提示。
2. 检查加密及长文件名解压、暂停和取消。
3. 对照进度页,并在切页时验证读屏查询。

Log: Fix archive progress, short inputs and settings page crashes.
PMS: TASK-398535
Issue: V-8283
1. Add backend contracts and update app and legacy plugin tests.
2. Cover long names, cancellation, progress and accessibility.
3. Add legacy adapters and CLI tools for regression comparisons.

Log: No user-facing changes

Influence:
1. Run the aggregate tests with the test build enabled.
2. Check encrypted archives and verify extracted file contents.
3. Compare security checks and benchmarks against the baseline.

test: 补齐归档迁移回归测试

1. 增加后端契约并更新 App 与旧插件单测。
2. 覆盖长文件名、取消、进度和无障碍查询。
3. 加入仅供测试的旧版适配器和命令行验收工具。

Log: 无用户可见变化

Influence:
1. 启用测试构建并运行聚合测试。
2. 验证加密归档,并核对解压文件内容。
3. 对照基线执行安全专项和性能基准。

Log: No user-facing changes
PMS: TASK-398535
Issue: V-8283
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dengzhongyuan365-dev

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

1. Remove the in-tree third-party archive plugins and their unit tests.
2. Route contract coverage and the archive CLI only through owned backends.
3. Update build, coverage, fuzzing, translation and license metadata.

Log: Remove obsolete third-party archive plugin sources and test adapters.

Influence:
1. Build with tests enabled and verify no deleted plugin targets are referenced.
2. Run archive contract tests plus isolated MainWindow unit tests.
3. Exercise archive-cli create, list and extract across supported formats.

refactor: 删除旧归档插件源码

1. 删除仓库内的旧第三方归档插件及其单元测试。
2. 契约测试和归档 CLI 仅使用自研后端。
3. 同步更新构建、覆盖率、模糊测试、翻译和许可元数据。

Log: 删除旧第三方归档插件源码及测试适配层。

Influence:
1. 开启测试构建,确认不再引用已删除的插件目标。
2. 运行归档契约测试和隔离运行的主窗口单元测试。
3. 通过 archive-cli 验证各支持格式的创建、列出和解压。

Log: Remove obsolete third-party archive plugin sources and test adapters.
PMS: TASK-398535
Issue: V-8283

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

Sorry @dengzhongyuan365-dev, this pull request is too large to review

It changes 338 files. Sourcery can review pull requests with up to 300 changed files.

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.

2 participants