fix: version_read/bump handle suffixed versions and HTML-comment VERSION #83

Merged
jmiller merged 3 commits from dev into main 2026-05-25 05:16:21 +00:00
Owner

Summary

Fixes release-candidate pre-release builds failing after a development pre-release.

Root cause: version_read.php and version_bump.php regex patterns could not match:

  1. Suffixed XML versions like 01.00.00-dev (only matched bare XX.YY.ZZ)
  2. VERSION: inside HTML comments (required line-start anchor)

Test plan

  • Trigger RC pre-release on MokoGallery after merging
## Summary Fixes release-candidate pre-release builds failing after a development pre-release. **Root cause:** version_read.php and version_bump.php regex patterns could not match: 1. Suffixed XML versions like 01.00.00-dev (only matched bare XX.YY.ZZ) 2. VERSION: inside HTML comments (required line-start anchor) ## Test plan - [ ] Trigger RC pre-release on MokoGallery after merging
jmiller added 2 commits 2026-05-25 05:14:11 +00:00
chore: cascade main → dev [skip ci]
fix: version_read/bump handle suffixed versions and HTML-comment VERSION
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Blocked by required conditions
Platform: moko-platform CI / Gate 4: Governance (push) Blocked by required conditions
Platform: moko-platform CI / CI Summary (push) Blocked by required conditions
Platform: moko-platform CI / Gate 1: Code Quality (push) Failing after 0s
Generic: Repo Health / Access control (push) Failing after 0s
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Release configuration (push) Has been skipped
Generic: Repo Health / Scripts governance (push) Has been skipped
Generic: Repo Health / Repository health (push) Has been skipped
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 3: Self-Health Check (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 4: Governance (pull_request) Blocked by required conditions
Platform: moko-platform CI / CI Summary (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 1: Code Quality (pull_request) Failing after 0s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Failing after 0s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Failing after 0s
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Generic: Repo Health / Release configuration (pull_request) Has been skipped
Generic: Repo Health / Scripts governance (pull_request) Has been skipped
Generic: Repo Health / Repository health (pull_request) Has been skipped
Universal: PR Check / Validate PR (pull_request) Successful in 4s
Universal: PR Check / Build RC Package (pull_request) Failing after 0s
Platform: moko-platform CI / Gate 5: Template Integrity (push) Has been skipped
Platform: moko-platform CI / Gate 5: Template Integrity (pull_request) Has been skipped
bc47944d8f
Two bugs caused release-candidate pre-release builds to fail after a
development pre-release had been built:

1. XML regex only matched bare XX.YY.ZZ but not XX.YY.ZZ-dev/-rc etc.
   After a development pre-release wrote -dev suffix to manifests, the
   next pre-release could not read the version back.

2. README regex required VERSION: at line start (^\s*VERSION:) which
   does not match <!-- VERSION: 01.00.00 --> format used by some repos.

Fixes: version_read.php, version_bump.php

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller added 1 commit 2026-05-25 05:15:19 +00:00
Merge branch 'main' into dev
Platform: moko-platform CI / CI Summary (push) Blocked by required conditions
Platform: moko-platform CI / CI Summary (pull_request) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: PR Check / Branch Policy (pull_request) Failing after 1s
Universal: PR Check / Validate PR (pull_request) Failing after 1s
Universal: PR Check / Build RC Package (pull_request) Has been skipped
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Generic: Repo Health / Release configuration (pull_request) Failing after 1s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 4s
Generic: Repo Health / Scripts governance (pull_request) Failing after 1s
Generic: Repo Health / Release configuration (push) Successful in 4s
Generic: Repo Health / Scripts governance (push) Successful in 4s
Generic: Repo Health / Repository health (push) Successful in 12s
Generic: Repo Health / Repository health (pull_request) Successful in 11s
Platform: moko-platform CI / Gate 1: Code Quality (push) Successful in 49s
Platform: moko-platform CI / Gate 1: Code Quality (pull_request) Successful in 49s
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Failing after 0s
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Failing after 0s
Platform: moko-platform CI / Gate 4: Governance (push) Failing after 1s
Platform: moko-platform CI / Gate 5: Template Integrity (push) Failing after 4s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Failing after 30s
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Failing after 33s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (pull_request) Failing after 0s
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (pull_request) Failing after 0s
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (pull_request) Failing after 0s
Platform: moko-platform CI / Gate 3: Self-Health Check (pull_request) Failing after 1s
Platform: moko-platform CI / Gate 4: Governance (pull_request) Failing after 0s
Platform: moko-platform CI / Gate 5: Template Integrity (pull_request) Failing after 0s
1b9ede4750
jmiller merged commit 251c1970f9 into main 2026-05-25 05:16:21 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#83