Commit Graph
91 Commits
Author SHA1 Message Date
zqlit ad118b470d perf(ci): Gitea 环境跳过无效缓存,消除每次约 9 分钟空等
Deploy to Production / pre-check (push) Successful in 54s
Deploy to Production / build (push) Successful in 9m8s
Deploy to Production / deploy-edgeone (push) Successful in 5m29s
Deploy to Production / deploy-upyun (push) Successful in 6s
Deploy to Production / finalize (push) Successful in 4m17s
Deploy to Production / notify-failure (push) Skipped
根因:/opt/gitea/runner/config.yaml 中 container.network=gitea_default
(job 容器落在 172.20.x),但 runner 容器自身只挂在 bridge 网络
(172.17.0.2),其提供的缓存服务 172.17.0.2:44869 跨 bridge 网段不可达。

实测证据:
- runner 容器内 wget http://127.0.0.1:44869/ -> HTTP 404(服务活着)
- gitea 容器 wget http://172.17.0.2:44869/  -> download timed out
- 构建日志:Setup Node restore 死等 278s(01:07:17 -> 01:11:55 ETIMEDOUT)
            Post Setup Node save 死等 288s(01:14:54 -> 01:19:42 ETIMEDOUT)
            Cache Hugo resources restore 亦超时
合计每次构建约 10 分钟纯浪费,且缓存从未真正命中或保存成功过。

改动:
- Setup Node 的 cache 改为按 github.server_url 条件启用;Gitea 上
  表达式求值为空串,setup-node 自动跳过缓存
- Cache Hugo resources 步骤加 if 条件,Gitea 上不执行(避免 restore+save 双超时)
- npm ci 增加 --no-audit --no-fund
- step summary 在 Gitea 上如实显示"已跳过",不再误报"未命中"

无副作用:npm ci 实测 68s 本就是在无缓存状态下跑的(restore 从未成功),
去掉缓存不会使其变慢;GitHub 侧行为完全不变。
2026-10-01 11:42:43 +08:00
zqlit 6838934fa5 fix(ci): 修复定时构建「无新提交则跳过」逻辑失效
Deploy to Production / pre-check (push) Successful in 42s
Deploy to Production / build (push) Canceled after 11m47s
Deploy to Production / deploy-edgeone (push) Canceled after 0s
Deploy to Production / deploy-upyun (push) Canceled after 0s
Deploy to Production / finalize (push) Canceled after 0s
Deploy to Production / notify-failure (push) Canceled after 0s
根因:pre-check job 的 outputs.can_deploy 绑定在 steps.repo-check 上,
而该步骤是无条件写 true;真正写 can_deploy=false 的是 steps.cron-check,
它写进自己步骤的 outputs,从未被 job 级 output 采用。
于是 build 的 if: needs.pre-check.outputs.can_deploy == 'true' 恒为真。

证据(run 8, event=schedule):
- 日志 cron-check 已打印「距离上次提交: 9 小时 / 超过 1 小时没有新提交,跳过定时构建」
- 但随后 build 的 if 表达式求值
  'steps.repo-check.outputs.can_deploy' 结果为 true,build 照常执行

后果:每天北京 09:00 无条件全量构建(build ~17min + finalize ~12.5min),
2 核服务器被白占约 32 分钟/天。线上不受影响(build hash 未变,
COS/EdgeOne/UpYun 上传与部署均正确 skip)。

改动:
- 合并 repo-check 与 cron-check 为单一步骤 decide,统一计算并输出 can_deploy
- pre-check.outputs.can_deploy 改指向 steps.decide.outputs.can_deploy
- 去掉原 cron-check 的 exit 0(避免步骤提前中断导致 output 丢失)
2026-10-01 11:30:15 +08:00
zqlit 83d87ddeaf fix(ci): 加固 UpYun 上传步骤,修复 upx 下载挂死
Deploy to Production / pre-check (push) Successful in 54s
Deploy to Production / build (push) Successful in 18m13s
Deploy to Production / deploy-edgeone (push) Successful in 11s
Deploy to Production / deploy-upyun (push) Successful in 6s
Deploy to Production / finalize (push) Successful in 12m29s
Deploy to Production / notify-failure (push) Skipped
根因:collection.b0.upaiyun.com 实测 2/3 概率整站无响应,
而 curl -sL 无 --max-time,导致步骤永久挂起直到 job 15 分钟超时。

改动:
- upx 主源改用 GitHub Releases(实测 0.5s 稳定),原 CDN 降为兜底
- curl 加 --connect-timeout/--max-time/--retry
- upx login/put 加 timeout 兜底,sync 加 480s 上限
- 删除无效的 Cache upx 步骤(缓存路径 /tmp 随 job 容器销毁,永远命中不了)
- 给 Upload to UpYun 加 timeout-minutes: 10
2026-09-30 23:37:53 +08:00
zqlit 33d54453d7 fix(ci): 用 Python 重写 pre-build 脚本,替换 PowerShell 依赖
Deploy to Production / pre-check (push) Successful in 29s
Deploy to Production / build (push) Failing after 23m24s
Deploy to Production / deploy-edgeone (push) Skipped
Deploy to Production / deploy-upyun (push) Skipped
Deploy to Production / finalize (push) Skipped
Deploy to Production / notify-failure (push) Successful in 4s
Gitea 自建 runner 镜像不含 PowerShell,导致 Run Pre-Build Scripts
以 exitcode 127 失败。改用 Python 3(GitHub/Gitea runner 均预装),
跨平台通用,迁回 GitHub 无需改回。
2026-09-30 22:50:43 +08:00
zqlit f64d8f30f3 chore: 清理误提交的 .claude/worktrees gitlink
Deploy to Production / pre-check (push) Successful in 3m35s
Deploy to Production / build (push) Failing after 10m9s
Deploy to Production / deploy-edgeone (push) Skipped
Deploy to Production / deploy-upyun (push) Skipped
Deploy to Production / finalize (push) Skipped
Deploy to Production / notify-failure (push) Successful in 7s
- 移除 4 个空目录 gitlink(导致 checkout 报 No url found for submodule path)
- .gitignore 忽略 .claude/worktrees/
2026-09-30 20:30:08 +08:00
zqlit 8d9eef0f4f chore: add Gitea Actions support and secrets checklist 2026-09-30 15:20:27 +08:00
zqlit 671871e0b2 snapshot before merge 2026-06-01 17:57:22 +08:00
zqlit 06a5f3da4d 修复代码折叠bug 2026-05-25 15:01:18 +08:00
zqlit 9774eeac12 增加评论互动趣味性 2026-05-25 13:55:45 +08:00
zqlit a93f46a2de 修复首页加载速度 2026-05-25 13:06:26 +08:00
zqlit eaca6ec191 修改样式 2026-05-25 12:41:12 +08:00
zqlit b83d6adb76 优化性能提交新功能 2026-05-25 12:23:00 +08:00
zqlit 9ab38b6e6a 修复流畅性 2026-05-25 00:03:50 +08:00
zqlit 3a7bddb881 修复bug 2026-05-24 22:05:11 +08:00
zqlit e6d50f3611 修复bug 2026-05-24 21:34:06 +08:00
zqlit 331af9074a 修复bug 2026-05-24 19:58:07 +08:00
zqlit e382dc36a5 修复bug 2026-05-24 16:00:53 +08:00
zqlit ff228ae6f5 修复动画掉帧的问题,增加昼夜切换的过渡动画 2026-05-24 14:43:34 +08:00
zqlit 624d0bda0f 修复动画掉帧的问题,增加昼夜切换的过渡动画 2026-05-24 14:00:12 +08:00
zqlit 94471c4c89 修复主题动画掉帧问题 2026-05-24 13:37:09 +08:00
zqlit 72b1ebad11 Merge branch 'main' of https://github.com/zqlit/blog 2026-05-24 12:17:57 +08:00
zqlit a8f49d8651 修复主题一些细节优化问题 2026-05-24 12:17:43 +08:00
zqlit 578bac0e12 发布: rss的优化点 2026-05-23 22:44:44 +08:00
zqlit 99f283e2ac Merge branch 'main' of https://github.com/zqlit/blog 2026-05-23 22:32:03 +08:00
zqlit 0d4f8de46a 发布: OpenWrt 路由器改纯 AP 模式记录(Cudy TR3000 + 中兴 F50) 2026-05-23 22:30:52 +08:00
zqlit fbed28e59e 发布: Ubuntu 24.04 安装 Zabbix 8.0 全记录 2026-05-22 16:59:32 +08:00
zqlit 9529e49b96 修复若干问题 2026-05-21 13:45:17 +08:00
zqlit 5277744463 Merge branch 'main' of https://github.com/zqlit/blog 2026-05-21 13:35:32 +08:00
zqlit d9b7026d21 修复若干问题 2026-05-21 13:35:18 +08:00
zqlit 013dce4f9f 0520发布文章 2026-05-21 00:27:35 +08:00
zqlit 993ac5581d 修复若干问题 2026-05-20 15:33:10 +08:00
zqlit 91a55bc10f 优化一下GitHub action 输出 2026-05-20 14:42:30 +08:00
zqlit 427b17d7a0 优化一下博客的性能 2026-05-20 14:33:05 +08:00
zqlitandClaude Opus 4.7 15421ff0ac fix: restore original links style, only change data source to API
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 19:34:34 +08:00
zqlitandClaude Opus 4.7 8a9bcfbbad feat: connect friend links and friend circle to RSS API
- Friend links page now fetches from /api/links with avatar cards
- Friend circle fetches from /api/articles with real-time data

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 19:30:34 +08:00
zqlit 56a196e815 修复url渲染逻辑 2026-05-19 09:53:08 +08:00
小赵同学 1c11abe758 Update links.yaml 2025-02-26 18:07:07 +08:00
小赵同学 8f1abf66a4 Delete 除草日记.md 2025-02-26 17:26:21 +08:00
小赵同学 2074bd9f22 修改rss链接 2025-02-26 16:30:40 +08:00
小赵同学 45f583423f 更新icon 2025-02-24 22:12:33 +08:00
小赵同学 994f422add Update main.css 2025-02-22 15:30:59 +08:00
小赵同学 bd78cfc0cf 完毕 2025-02-22 15:13:28 +08:00
小赵同学 218da80cb5 fixed: memos 适配pjax刷新 2025-02-22 14:41:44 +08:00
小赵同学 7c5a70dbe1 Update main.css 2025-02-20 20:20:18 +08:00
小赵同学 b6bff1bc80 0.2.0 版本发布 2025-02-20 19:50:51 +08:00
小赵同学 28f74e7a38 1.28 2025-01-28 21:13:15 +08:00
小赵同学 e403a96e04 Update favicon.ico 2025-01-14 10:31:04 +08:00
小赵同学 0124fd559f 修改博客icon 2025-01-14 10:24:13 +08:00
小赵同学 bef22487b1 修复若干配置 2025-01-14 10:16:22 +08:00
小赵同学 3bf5275614 Update .gitignore 2025-01-03 09:46:11 +08:00
小赵同学 5638789c6b Update .gitignore 2024-12-22 10:27:36 +08:00
小赵同学 2500d69451 Update tiaozhuan.js 2024-12-21 10:18:45 +08:00
小赵同学 8b507ffdb9 Update tiaozhuan.js 2024-12-18 19:56:16 +08:00
小赵同学 225f5a9b44 Update tiaozhuan.js 2024-12-18 19:46:58 +08:00
小赵同学 945e1f0e4d 12.17 2024-12-17 21:18:24 +08:00
小赵同学 4f70f7f905 Update hello-webstorm.md 2024-12-10 13:48:18 +08:00
小赵同学 d3a77c49e1 精简掉友圈功能 2024-12-10 08:54:56 +08:00
小赵同学 aee58b203f 11.13 2024-11-13 09:21:28 +08:00
小赵同学 47ca618cc7 11.10 2024-11-10 10:22:50 +08:00
小赵同学 6f44eb7a92 Update upy.yml 2024-10-21 20:58:31 +08:00
小赵同学 fc35291cd3 修改了工作流定时时间 2024-10-21 20:58:13 +08:00
小赵同学 5ed44580a6 Update hugo.toml 2024-10-20 13:46:44 +08:00
小赵同学 ffc36b581c Update hugo.toml 2024-10-20 12:03:35 +08:00
小赵同学 89b8b9cf6e Update hugo.toml 2024-10-20 12:00:21 +08:00
小赵同学 750a38167a 10.20 2024-10-20 11:51:55 +08:00
小赵同学 3efaba548a Update ly.html 2024-10-19 15:53:04 +08:00
小赵同学 2c2678ce02 Update links.yaml 2024-10-19 15:27:22 +08:00
小赵同学 7130078b08 修改了favicon 2024-10-18 21:12:00 +08:00
小赵同学 9b24831664 更新文章 2024-10-18 17:58:34 +08:00
小赵同学 e6afeab72b 修改了文章显示逻辑 2024-10-18 17:14:57 +08:00
小赵同学 371668ee3f 修改文章 2024-10-18 17:10:47 +08:00
小赵同学 32de6a4a26 更新了文章 2024-10-18 16:58:21 +08:00
小赵同学 1923a775fe 修改文章时间 2024-10-18 15:09:40 +08:00
小赵同学 02305b849d 上传两个静态资源 2024-10-16 09:39:52 +08:00
小赵同学 b36dbbfe7a Update links.yaml 2024-10-13 23:18:56 +08:00
小赵同学 fa9f89ba98 Update hugo-backup-alioss.md 2024-10-07 20:36:28 +08:00
小赵同学 9e5e7a3c98 10.7 2024-10-07 20:34:00 +08:00
小赵同学 6125cf08a1 Update about.md 2024-10-07 20:30:16 +08:00
小赵同学 f48412757b Update hugo-backup-alioss.md 2024-10-06 21:50:53 +08:00
小赵同学 a615cc448f Update hugo-backup-alioss.md 2024-10-06 18:55:02 +08:00
小赵同学 28e05072a5 Update hugo-backup-alioss.md 2024-10-06 16:52:59 +08:00
小赵同学 8eb8028bf9 Update hugo-backup-alioss.md 2024-10-06 16:46:47 +08:00
小赵同学 9a9b136e17 Update hugo-backup-alioss.md 2024-10-06 16:45:22 +08:00
小赵同学 5ce4d46273 10.6更新文章 2024-10-06 16:36:12 +08:00
小赵同学 d8b76c3cfe Update hugo.toml 2024-10-05 22:58:17 +08:00
小赵同学 6d8b162c65 Update hugo.toml 2024-10-05 21:36:31 +08:00
小赵同学 652800f181 Merge branch 'main' of https://github.com/zqlit/blog 2024-10-05 18:06:00 +08:00
小赵同学 47af60472a Update new-links-lite.html 2024-10-05 18:05:56 +08:00
小赵同学 c427ba2c3f Update new-links-lite.html 2024-10-05 15:42:54 +08:00
小赵同学 8a2d88ff73 Update new-links-lite.html 2024-10-05 15:40:22 +08:00
小赵同学 e527b27ccc 10.5 2024-10-05 15:35:48 +08:00