Skip to content

fix: pin cloc to v2.06 in fleet-reports workflow - #80

Merged
cpitzi merged 1 commit into
mainfrom
agent/pin-cloc-fleet-reports
Aug 10, 2026
Merged

fix: pin cloc to v2.06 in fleet-reports workflow#80
cpitzi merged 1 commit into
mainfrom
agent/pin-cloc-fleet-reports

Conversation

@lentago-claude-runner

Copy link
Copy Markdown
Contributor

Summary

  • .github/workflows/fleet-reports.yml installed cloc unpinned via apt-get, which resolves to cloc 1.98 on ubuntu-latest (noble). That version doesn't recognise .astro or Jinja templates and silently drops both from the code census entirely, rather than miscategorizing them.
  • Replaced the apt install with a pinned fetch of cloc-2.06.pl from the tagged GitHub release, verified against a recorded sha256, installed to /usr/local/bin/cloc.
  • Updated CLAUDE.md § "Weekly fleet reports" to record the pin and explain why an unpinned/mismatched cloc breaks local-vs-CI reproducibility.

An earlier attempt (claude/issue-78-20260730-0128) could only land the CLAUDE.md doc update — that run's GitHub App token lacked workflows write permission, so the actual workflow-file edit was left for a human. This PR carries the real fix.

Heads up for review: the first scheduled run after this merges will show a one-time +2,172 line jump in the census total (the .astro/Jinja files being counted for the first time) — that's the correction landing, not fleet growth. Worth noting when that week's refresh PR shows up so it isn't misread as activity.

I verified the pinned script locally: fetched cloc-2.06.pl from the v2.06 release, confirmed the sha256 checksum used in the workflow matches, and ran it against a scratch .astro file to confirm it's now recognized (previously absent from cloc's language list).

Closes #78

Test plan

  • python3 ci/validate.py passes locally
  • Workflow YAML parses (yaml.safe_load)
  • Downloaded cloc-2.06.pl from the v2.06 release and confirmed sha256 matches the value embedded in the workflow
  • Ran the pinned cloc locally against a sample .astro file — confirmed it's recognized as language Astro (cloc 1.98 does not recognize it)
  • Maintainer: confirm the fleet-reports workflow run succeeds end-to-end on ubuntu-latest (next scheduled Monday run, or trigger via workflow_dispatch)

ubuntu-latest's apt archive resolves to cloc 1.98, which doesn't
recognise .astro or Jinja templates and silently drops both from the
code census instead of miscategorizing them. Fetch the tagged
cloc-2.06.pl release script and verify it against a recorded sha256
so CI and local regenerations stay reproducible against each other.

Closes #78
@cpitzi
cpitzi merged commit 762c8f1 into main Aug 10, 2026
4 checks passed
@cpitzi
cpitzi deleted the agent/pin-cloc-fleet-reports branch August 10, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pin cloc in the fleet-reports workflow — the unpinned 1.98 drops all Astro source from the census

1 participant