Commit graph

11 commits

Author SHA1 Message Date
Your Name
2a28e4073a fix: 使用 xvfb-run 解決 GUI 工具在 headless 環境卡住問題 2026-01-23 23:22:11 +08:00
Your Name
f24eec070c fix: 更新釋出工作流程中的標籤描述為 v0.1.13,並優化工具版本檢查邏輯 2026-01-23 14:37:56 +08:00
Your Name
0bc22411b6 ci: 優化 workflow timeout 和新增手動觸發 2026-01-23 11:29:26 +08:00
Your Name
3eec72926f feat(ci): 擴展 CI/CD E2E 測試並新增 Mock 測試
- release.yml: 新增 16 個 Docker 容器 E2E 測試
  - Inkscape (SVG→PNG, SVG→PDF)
  - Pandoc (Markdown→HTML, LaTeX)
  - LibreOffice (TXT→PDF, ODT→DOCX)
  - FFmpeg (音訊、視訊、MP4→GIF)
  - ImageMagick (PNG→JPEG)
  - Calibre (HTML→EPUB)
  - Potrace (PBM→SVG)
  - Tesseract OCR
  - GraphicsMagick, Resvg, VIPS

- docker-build-remote.yml: 新增 21 個遠端 E2E 測試
  - 透過 Tailscale SSH 在遠端 Docker 容器中執行
  - 包含通過/失敗計數和測試摘要

- 新增 Mock 測試 (converters.mock.test.ts)
  - 81 個測試驗證轉換器配置邏輯
  - 不依賴實際工具,可在本地執行
  - 測試 API 結構、格式支援、錯誤處理等
2026-01-23 00:42:12 +08:00
Your Name
a9f6e1de6f ci: add E2E tests to release workflow
- Add E2E converter tests in Docker container (verify-image job)
  - Inkscape: SVG → PNG
  - Pandoc: Markdown → HTML
  - LibreOffice: TXT → PDF
  - FFmpeg: Audio generation
  - ImageMagick: PNG → JPEG
  - API healthcheck endpoint

- Add cleanup step for verification containers
- Update verification summary to include E2E results
- Install pandoc and imagemagick in run-bun-test workflow for E2E tests
2026-01-23 00:18:03 +08:00
Your Name
b5992a84e0 fix(inkscape): use xvfb-run for headless execution
- Inkscape requires X11 display connection, causing 'GtkStyleContext without display' error
- Solution: use xvfb-run to create virtual X11 display
- Fallback: try direct inkscape if xvfb-run fails
- Add xvfb package to Dockerfile
- Update inkscape tests for new xvfb-run behavior

Fixes: Gtk-ERROR: Can't create a GtkStyleContext without a display connection
2026-01-22 23:56:47 +08:00
Your Name
d5c9bfa320 feat(ci): add model/headless verification, use --no-ff merge strategy
- Add verify-image job in release.yml with:
  - Headless environment verification (DISPLAY, Xvfb, LibreOffice, Inkscape, Calibre)
  - Model download verification (HuggingFace cache, ONNX models, offline mode)
  - Basic functionality verification (container startup, tool availability)
- Add Test 3 and Test 4 in upstream-sync.yml for headless/model verification
- Update auto-upstream-sync.yml to use git merge --no-ff for better history tracking
2026-01-22 23:51:18 +08:00
Your Name
5ad22e44ec fix: 優化 Docker 磁碟清理邏輯,針對大型模型與多架構建置進行強化,減少空間使用 2026-01-22 19:24:53 +08:00
Your Name
44152ff872 fix(ci): 修正 Release workflow 確保 Docker Image 正確發佈
- dockerhub-description.yml:
  - 修正 IMAGE_NAME 為 convertx/convertx-cn
  - 新增 continue-on-error 避免阻擋 Release
  - 新增 workflow_run 觸發器

- release.yml:
  - 新增 workflow_dispatch 手動觸發支援
  - 新增 permissions 設定
  - 優化 disk cleanup 錯誤處理

- docker-publish.yml:
  - 修正 DOCKERHUB_USERNAME 從 secrets 讀取
  - 修正 DOCKER_IMAGE 為正確的 convertx/convertx-cn
2026-01-20 12:52:02 +08:00
Your Name
e792dfedf1 refine fonts and language support 2026-01-19 23:54:04 +08:00
Your Name
7632584eb6 ci: add GitHub Actions workflows for upstream sync and release automation 2026-01-19 20:18:23 +08:00