Skip to content

ci: streamline test runs and coverage reporting - #1222

Open
qwqcode wants to merge 86 commits into
masterfrom
codex/fix-codecov-upload
Open

qwqcode wants to merge 86 commits into
masterfrom
codex/fix-codecov-upload

Conversation

@qwqcode

@qwqcode qwqcode commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

The Go coverage upload used an unsupported file input, so Codecov found no report and kept showing an old commit. Use files, upload the report explicitly, and fail CI if uploading fails.

Collect coverage for ui/artalk/src during the existing frontend tests on Linux with Node 22. Reuse the installed Vitest V8 provider and upload LCOV with the artalk flag; Go keeps the go flag. Each flag has its own coverage check. Carry forward the last report when an unchanged part of the monorepo does not run. Coverage configuration changes trigger the relevant workflows.

Run the four test workflows for pull requests and pushes to master, avoiding duplicate branch-push runs. Keep Linux AMD64, Linux ARM64, and database tests on PRs. Run macOS tests only on master, so waiting for a macOS runner does not delay PR checks. Test and artifact names use the runner labels.

Validation: actionlint, Prettier, and Codecov YAML validation pass. The matrix selects two Linux runners for PRs and all three runners for master. GitHub triggered one run per test workflow, with no macOS job on the PR. Linux Go tests, database compatibility tests, all frontend environments, browser end-to-end tests, workflow security checks, and Codecov checks pass.

Run pnpm test --run --coverage from the repository root to generate coverage/artalk/lcov.info and the HTML report in coverage/artalk/lcov-report.

Regenerate Swagger and the TypeScript client from the DTO types. Keep JSON fields, public frontend types, and template parameters unchanged. Add schema and template regression checks.
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.86%. Comparing base (91ac907) to head (e8b7f4b).
⚠️ Report is 209 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1222       +/-   ##
===========================================
+ Coverage   32.71%   81.86%   +49.15%     
===========================================
  Files         206      344      +138     
  Lines        8881    11378     +2497     
  Branches        0      742      +742     
===========================================
+ Hits         2905     9315     +6410     
+ Misses       5815     1425     -4390     
- Partials      161      638      +477     
Flag Coverage Δ
artalk 72.44% <ø> (?)
go 86.34% <ø> (+53.63%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@qwqcode qwqcode changed the title fix(ci): upload Go coverage reports to Codecov ci: report backend and frontend coverage to Codecov Nov 17, 2026
@qwqcode
qwqcode force-pushed the codex/fix-codecov-upload branch from 6a55cda to 175c000 Compare November 17, 2026 15:52
@qwqcode
qwqcode force-pushed the codex/fix-codecov-upload branch from 175c000 to e8b7f4b Compare November 17, 2026 16:08
@qwqcode qwqcode changed the title ci: report backend and frontend coverage to Codecov ci: streamline test runs and coverage reporting Nov 17, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant