MIL-010: code metrics and coverage badges workflow #164

Merged
Tirsvad merged 10 commits from mil-010-implementation into main 2026-10-14 08:59:20 +02:00
Owner

Adds the reusable workflow code-metrics.yml: it counts the code files and the lines of code (without comment and blank lines), reads a Cobertura XML coverage report that the caller uploads as an artifact, and commits three SVG badges to a badges branch (ADR-0010).

  • tools/count_loc.py, tools/badges.py, tools/code-metrics.sh and .gitea/workflows/code-metrics.yml, with offline tests (527 tests, 98% coverage of tools/)
  • UC-008, US-001.18 to US-001.20, UCD-001 (RC-069 to RC-071), ADR-0010 (RC-072, amended in RC-073)
  • guide guides/code-metrics.md, README, wiki pages in English, Danish and Bahasa Malaysia, changelog entry 2.1.0
  • results of the delivery check (task 3) and of the adoption in a throwaway repository with a seeded change and a seeded failure (task 8), reviewed in RC-074

Reviews are Go, recorded as autonomous, not independent (AI as stand-in for S01).

The release (task 9) is a separate step after this merge: the Release workflow is run for 2.1.0, a dry run first.

Closes #155
Closes #156
Closes #157
Closes #158
Closes #159
Closes #160
Closes #161
Closes #162
Refs #163

Adds the reusable workflow `code-metrics.yml`: it counts the code files and the lines of code (without comment and blank lines), reads a Cobertura XML coverage report that the caller uploads as an artifact, and commits three SVG badges to a `badges` branch (ADR-0010). - `tools/count_loc.py`, `tools/badges.py`, `tools/code-metrics.sh` and `.gitea/workflows/code-metrics.yml`, with offline tests (527 tests, 98% coverage of `tools/`) - UC-008, US-001.18 to US-001.20, UCD-001 (RC-069 to RC-071), ADR-0010 (RC-072, amended in RC-073) - guide `guides/code-metrics.md`, README, wiki pages in English, Danish and Bahasa Malaysia, changelog entry 2.1.0 - results of the delivery check (task 3) and of the adoption in a throwaway repository with a seeded change and a seeded failure (task 8), reviewed in RC-074 Reviews are `Go`, recorded as autonomous, not independent (AI as stand-in for S01). The release (task 9) is a separate step after this merge: the Release workflow is run for 2.1.0, a dry run first. Closes #155 Closes #156 Closes #157 Closes #158 Closes #159 Closes #160 Closes #161 Closes #162 Refs #163
Tirsvad added 9 commits 2026-10-14 08:06:48 +02:00
Tirsvad added 2 commits 2026-10-14 08:06:49 +02:00
Task: MIL-010#8
Refs #162
Resolve pending commit links
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Skipped
Validate workflows / validate (pull_request) Successful in 28s
292886531e
Tirsvad added 1 commit 2026-10-14 08:10:51 +02:00
Re-run the checks: the status of the previous head stayed pending
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Skipped
Validate workflows / validate (pull_request) Successful in 32s
a795f3b03e
Tirsvad merged commit 16faffaf13 into main 2026-10-14 08:59:20 +02:00
Tirsvad deleted branch mil-010-implementation 2026-10-14 08:59:21 +02:00
Sign in to join this conversation.