Repository navigation
ci: scope checks and persist native build caches - #180
Merged
Merged
Conversation
- Route checks from full Git diffs with a full-run fallback - Cache Flutter native assets, server targets, and Docker Cargo mounts - Add production web builds, live Redis tests, and workflow gates
- Replace the locale-dependent check in migration 0019 - Preserve historical checksums and validate existing friendship rows - Cover bot creation and reversed-pair rejection with fixed account IDs
- Match hooks 2.x outputDirectory under shared/kim_mobile/build - Use one native target glob for cache storage and library validation - Report the expected cache glob when native validation fails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
最近一次成功的 CI 运行 总耗时约 22 分钟,其中移动端测试约 18 分钟。所有改动都会触发整套检查,移动端 Cargo 缓存路径还被重复拼接,实际没有覆盖 FFI 或桌面 helper 的编译产物。
Related issue
无关联 issue。
Changes
hooks 2.0.2的outputDirectory位于shared/kim_mobile/build/<配置摘要>,FFI Cargo target 不在 runner 的kim_mobile/*/out下。缓存与产物校验共用NATIVE_CARGO_TARGETS,缺失产物时报告完整 glob;缓存命名空间更新为native-v2。ordered_pair使用字节序;随机生成的 bot 账号会间歇触发friendships_check。新增0019_friendship_byte_order.sql,显式使用COLLATE "C",保留历史迁移校验和并验证已有记录;发现非规范旧账号对时整条迁移回滚。新增固定b_Z/bot-test-owner的创建、幂等重试、双向查询和逆序拒绝回归。tools/ci/changes.py使用 PR merge-base / push 范围读取完整差异,保留删除及重命名两端路径。未知路径、差异不可用、CI 配置改动和手动运行触发全量检查;输出检查范围到 Actions summary。target的桌面 helper 和.dart_tool/hooks_runner/shared/kim_mobile/build/*/target的 FFI Cargo 产物,不恢复 hook 输出和依赖时间戳。CI 关闭 dev/test 调试信息以减小编译与缓存开销。target。#[ignore]跳过的会话测试、actionlint、仓库门禁测试和 Shell 语法检查。CI passed汇总失败与取消,允许未受影响的任务跳过。Test plan
BuildInputBuilder生成输出目录:旧校验失败,新缓存 glob 和校验同时匹配;缺失产物仍失败friendships_check失败,应用迁移后同一固定账号回归通过git diff --check70607be的完整 CI及CI passed总门禁全部成功;镜像构建成功native-v2缓存已保存到 GitHub(6,245,860,272 字节)