Skip to content

Modernize CI, fix metadata URLs, and add test coverage#29

Draft
toddr-bot wants to merge 3 commits intomainfrom
koan.toddr.bot/modernize-ci-and-metadata
Draft

Modernize CI, fix metadata URLs, and add test coverage#29
toddr-bot wants to merge 3 commits intomainfrom
koan.toddr.bot/modernize-ci-and-metadata

Conversation

@toddr-bot
Copy link
Copy Markdown

@toddr-bot toddr-bot commented Apr 6, 2026

What

Three maintenance improvements for the Digest-MD5 distribution.

Why

  • CI tested up to Perl 5.32 only — missing 4 years of releases (5.34-5.40). As a dual-life module, this is a gap.
  • META_MERGE URLs had wrong case (dual-Life/digest-md5 instead of Dual-Life/Digest-MD5).
  • Several methods had zero test coverage: reset(), context() 4-arg restore, add() with zero/many args, addfile() chaining, digest() auto-reset behavior.

How

  1. CI modernization: checkout v2→v4, install-with-cpm v1→@stable, added Perl 5.34/5.36/5.38/5.40, added Windows job
  2. URL fix: Corrected case in bugtracker and repository URLs
  3. Test coverage: 39 new tests in t/methods.t covering previously untested paths

Testing

355 tests pass (was 316). All existing tests unaffected.

🤖 Generated with Claude Code


Quality Report

Changes: 4 files changed, 278 insertions(+), 13 deletions(-)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

@toddr-bot toddr-bot changed the title ci: modernize CI and fix META_MERGE URLs Modernize CI, fix metadata URLs, and add test coverage Apr 6, 2026
toddr-bot and others added 3 commits April 11, 2026 05:07
Docker Hub has removed perl:5.8 through perl:5.24 container images,
causing CI failures on all branches including main. Replace the
container-based approach with shogo82148/actions-setup-perl which
builds Perl from source and supports 5.8+.

Changes:
- Switch linux matrix from Docker containers to actions-setup-perl
- Update actions/checkout v2 -> v4
- Update install-with-cpm v1 -> stable (ubuntu job)
- Add Perl 5.34, 5.36, 5.38, 5.40 to test matrix
- Drop Perl 5.8 (22 years old, minimal practical value)
- Add Windows CI job (Strawberry Perl via actions-setup-perl)
- Add macOS CI job (system perl, no container)
- Limit AUTHOR_TESTING/RELEASE_TESTING to ubuntu job only

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The bugtracker and repository URLs had wrong case for both the owner
(dual-Life) and repo name (digest-md5). GitHub URLs are case-sensitive
for redirects but correct canonical URLs improve discoverability.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 new tests covering: reset(), digest() auto-reset, add() with zero/many
args, method chaining, context() save/restore (including 4-arg form with
partial buffer), addfile() chaining, empty input handling, subclassing,
and rapid create/destroy cycles.

These methods and edge cases had zero or minimal coverage in the
existing test suite.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@toddr-bot toddr-bot force-pushed the koan.toddr.bot/modernize-ci-and-metadata branch from 0513471 to 06f84a0 Compare April 14, 2026 08:32
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.

1 participant