Repository navigation
fix(ci): reject bare version strings in Firebase release notes - #291
Conversation
Firebase App Distribution's tester invite page auto-linkifies any dot-separated, domain-shaped token in the release notes text, without validating a real TLD or requiring a scheme. A note like "v0.4.6.1-alpha" renders as a dead link to http://0.4.6.1-alpha. Firebase's own page heading already shows the build's version + build number, so restating it in the notes body is redundant as well as broken. Add a validation step that fails the workflow_dispatch run early -- before build/signing -- if release_notes contains a bare version-like token. Firebase's own auto-generated heading link is a separate, upstream-only issue (closed-source tester page template, not fixable from this repo); tracked but not resolved by this change. Fixes #290 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
This PR was opened outside the automated pipeline (author isn't |
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
QA verification — PR #291 vs issue #290Issue type: bug report (no acceptance checklist) → checklist is "repro no longer reproduces" + "a regression test proves it." Repro no longer reproduces — PASSExtracted the validation regex from the new workflow step and ran it against the actual → Regression test proves it — FAILNo test was added — This repo already has an established, in-tree pattern for exactly this situation — CI-shell validation logic with no JVM/gradle harness to hook into: Secondary observation (non-blocking, worth a follow-up)The regex over-blocks on legitimate decimal numbers and IPs, e.g. Test suite
AGENTS.md conventions
VerdictThe fix itself is functionally correct and well-targeted, but ships with no automated regression coverage despite a clear, directly-analogous precedent already in this repo for testing exactly this kind of CI validation logic. Sending back for a test to be added. QA verdict: FAIL |
| QA failed its first round — routing back to the dev agent for one automated retry. |
…tion QA flagged PR #291 for shipping the issue #290 fix with no committed, re-runnable regression test -- only ad hoc local grep verification. Extract the validation regex into a sourceable validate_release_notes.sh (same script/no-CI-harness pattern already used by resolve_linked_issue.sh) and add test_validate_release_notes.sh asserting on the actual build-12 incident string plus the workflow's safe defaults.
Addressed QA feedbackQA's only gap: no committed regression test for the release-notes validation logic (functional correctness was already confirmed PASS). Fixed by extracting the validation regex out of the workflow YAML into a sourceable script, following the exact
Not in scope for this round (QA flagged as non-blocking, a follow-up worth filing separately): the regex over-blocking on legitimate decimals/IPs like "12.5 percent" or "192.168.1.1" — that's an existing, fail-safe behavior carried over unchanged from the original fix, not something QA asked to be fixed here. 🤖 Generated with Claude Code |
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
QA verification — PR #291 vs issue #290Issue type: bug report (no acceptance-criteria checklist). Checklist used: the repro steps in #290 no longer reproduce, backed by a regression test. Repro check
What I ran
AGENTS.md conventions
Minor, non-blocking observationThe regex ( No gaps found against the issue's contract. QA verdict: PASS |
Principal review — PR #291Verdict: Risk classificationRe-ran Verification performed
Finding (PLAUSIBLE, not blocking on its own)The regex (
The No CONFIRMED findings. Tests are real and were shown to be capable of failing. Recommending this route to a human purely on the |
Addresses the non-blocking PLAUSIBLE finding from principal review on PR #291: the version-string regex is broader than "a version string" -- it also catches ordinary numbers that happen to be dot-separated (an OS version, a percentage, an IP). The error message read as if it had misidentified the input. We can't inspect Firebase's actual autolink heuristic, so narrowing the regex risks reintroducing the original bug (a real version mention that slips past a too-narrow pattern). Erring broad is the safer tradeoff -- worst case is a re-run with reworded notes, not another dead link shipped to testers. Instead of narrowing, make the tradeoff explicit and tested: - Reworded the ::error:: message to say what actually triggered it and to stop implying high confidence it's a version string. - Added regression tests asserting the over-block cases (Android 8.0, a percentage, an IP) block by design, so a future reader sees this is a documented decision, not an unnoticed bug. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
What
Adds a validation step to
android-firebase-distribution.ymlthat fails theworkflow_dispatchrun early (before build/signing) ifrelease_notescontains a bare, dotted version-like string (e.g.v0.4.6.1-alpha).Why
Firebase App Distribution's tester invite page auto-linkifies any dot-separated, domain-shaped token in the release notes text — without validating a real TLD or requiring a scheme — so a mention like
v0.4.6.1-alpharenders as a dead link tohttp://0.4.6.1-alpha. This is exactly what happened on the build 12 invite (reported by user, confirmed via job logs on run 32177679056).Firebase's own page heading ("Release notes for
0.4.6.1-alpha(12)") already shows the version + build number, so restating it in the notes body is both redundant and broken — the fix is to just not do that, enforced in CI so it can't silently recur on a future manual trigger.What this does NOT fix
Firebase's own auto-generated heading is templated from the APK's
versionName/versionCodeby Firebase's closed-source tester page, not from any text we submit — it shows the same broken-link styling regardless of our release notes content. That's not fixable from this repo; it needs a Firebase Console feedback report (requires human Console access). Documented as a known, tracked limitation in #290 rather than silently left unaddressed.Testing
Regex verified locally against the actual
RELEASE_NOTESvalue from run 32177679056 (blocks) and several safe notes strings including the workflow's own default and numbers-with-no-dots / plain issue references (pass) — see PR description commit for cases exercised.Closes #290
🤖 Generated with Claude Code