Skip to content

fix(ci): release notes automation + coverage artifact fix - #3

Merged
ryann-g merged 3 commits into
mainfrom
sec.audit1
May 31, 2026
Merged

fix(ci): release notes automation + coverage artifact fix#3
ryann-g merged 3 commits into
mainfrom
sec.audit1

Conversation

@ryann-g

@ryann-g ryann-g commented May 31, 2026

Copy link
Copy Markdown
Owner

CI/CD Fixes

Changes

  1. pr-gatekeeper.yml — Skip coverage artifact download when unit-tests fail

    • Added condition to coverage-gate job
    • Added condition to coverage download step in pr-comment-summary
    • Prevents 'Artifact not found' error when tests fail
  2. production-release.yml — Automate release notes from commit bodies

    • Replaced static template with awk-based commit parser
    • Extracts hash, subject, and multi-line body from git log
    • Strips conventional commit prefixes (fix, feat, refactor, etc.)
    • Handles nested parentheses like fix(security):
    • Indents body bullet points under each entry
    • Categorizes into feat/fix/refactor/breaking/other sections

Verification

  • Tested awk parser against actual commit history
  • 3 commits correctly categorized as fix with body bullets extracted

ryann-g added 3 commits May 31, 2026 17:36
The pr-comment-summary and coverage-gate jobs tried to download
the coverage-report artifact unconditionally. When unit-tests
failed (or were cancelled), the artifact was never uploaded,
causing 'Artifact not found' errors.

- Add 'if: needs.unit-tests.result == success' to coverage-gate
- Add 'if: needs.unit-tests.result == success' to coverage download step
- Summary generation already handles missing coverage gracefully
- Use § delimiter to capture full commit body (not just subject line)
- Extract and display bullet points from commit descriptions
- Strip git metadata (Change-Id, Co-authored-by, etc.)
- Fix sed regex for prefix stripping (use [^:]* instead of nested parens)
- Fix OTHER_CHANGEStidy typo
- Add Other Changes section for test/docs/ci/chore commits

Before: release notes showed static 'No improvements in this release'
After: release notes show actual commit details with bullet points
- Replace fragile bash while-loop parsing with single awk script
- Correctly extracts hash, subject, and multi-line body from git log
- Strips conventional commit prefixes (feat, fix, refactor, perf, etc.)
- Indents body bullet points under each commit entry
- Strips git metadata (Change-Id, Co-authored-by, etc.)
- Handles nested parentheses in scopes like fix(security):
- Fixes OTHER_CHANGEStidy typo from original code
@github-actions

Copy link
Copy Markdown

CI/CD Pipeline Results

Check Status
Lint & TypeCheck [FAILED]
Security Audit [FAILED]
Unit Tests [FAILED]
Coverage Gate [FAILED] (N/A)
Preview Deploy [FAILED]
Lighthouse CI [FAILED]

Preview URL:

@ryann-g
ryann-g merged commit dcec91a into main May 31, 2026
19 of 21 checks passed
ryann-g added a commit that referenced this pull request May 31, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
ryann-g added a commit that referenced this pull request May 31, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
ryann-g added a commit that referenced this pull request May 31, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
ryann-g added a commit that referenced this pull request May 31, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
ryann-g added a commit that referenced this pull request May 31, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
ryann-g added a commit that referenced this pull request May 31, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
ryann-g added a commit that referenced this pull request May 31, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
ryann-g added a commit that referenced this pull request Jun 8, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
ryann-g added a commit that referenced this pull request Jun 21, 2026
fix(ci): release notes automation + coverage artifact fix LGTM
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