Repository navigation
ci: 无头识别用的两个模型改从 Actions 缓存取 - #118
Merged
Merged
Conversation
2026-10-06 huggingface.co 和 hf-mirror.com 同时连不上,main 的 Intel 腿在下载 SenseVoice 时失败(run 37401697547)。smoke-native-cli.ps1 新增 -ModelCache: 运行前把缓存里的模型文件复制进模型库(不带 manifest.json),由应用的下载器核对 大小和 sha256,缺的或核对不过的才下载;成功后把核对过的文件放回缓存。 windows-native、smoke-desktop 和 macos 三个 job 共用一份跨系统缓存(键为 catalogue.rs 的哈希),只从 main 写入。
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #118 +/- ##
==========================================
+ Coverage 93.48% 93.50% +0.01%
==========================================
Files 354 354
Lines 49506 49506
Branches 3216 3216
==========================================
+ Hits 46283 46292 +9
+ Misses 2808 2800 -8
+ Partials 415 414 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
摘要
2026-10-06,main 的 Intel 腿在无头识别下载 SenseVoice 时失败(run 37401697547):huggingface.co 和 hf-mirror.com 在 45 秒内都连不上,下载停在 0%。这两个模型每次 CI 都要现下载,合计约 930 MB,网络一出问题 main 就会变红,下一个候选包也过不了门禁。
scripts/smoke-native-cli.ps1新增-ModelCachemanifest.json。应用的下载器照常核对大小和 sha256,缺的或核对不过的才下载。ProjectDirs的数据目录加models。推出的位置和应用实际安装的位置不一致时会记一条提示,此时不影响正确性,只是缓存起不到作用。ci.yml:windows-native、smoke-desktop、macos 三个 job 共用一份跨系统缓存。smoke-models-<catalogue.rs 的哈希>,.gitattributes统一了 LF,所以各系统算出的键相同。测试
scripts/release/test_release_workflows.py:新增test_regression_the_smoke_models_come_from_the_actions_cache,改动前 3 个 job 都失败,改动后通过。本机 debug 版实跑四种情况:
make verify:65fc0cca 上所有门禁通过,dirty_paths=0。macOS 腿已手动派发 CI 验证。
ci:类型,不需要发版。