Skip to content

fix(ci): drop app_version from TestFlight groups diagnostic - #622

Merged
libravault-xyz merged 1 commit into
devfrom
fix/testflight-diagnostic-app-version
Aug 25, 2026
Merged

libravault-xyz merged 1 commit into
devfrom
fix/testflight-diagnostic-app-version

Conversation

@libravault-xyz

Copy link
Copy Markdown
Collaborator

b.app_version raised a RuntimeError ("No pre_release_version included") since fetch_builds/Build.all don't include that relationship by default. Build number (b.version) alone is enough to identify a build for this diagnostic.

🤖 Generated with Claude Code

…include

b.app_version raised RuntimeError (No pre_release_version included) --
fetch_builds/Build.all don't include it by default and it's not needed to
identify a build; build number (b.version) alone is enough.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added the risk:high Touches a sensitive path or exceeds diff-size threshold — always human merge label Aug 25, 2026
@libravault-pipeline-bot libravault-pipeline-bot Bot added the status:needs-review QA passed, awaiting principal-review-agent label Aug 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened outside the automated pipeline (author isn't libravault-pipeline-bot[bot]) and doesn't link an issue (no Closes #N-style line in its body), so there's no acceptance criteria for qa-agent.yml to verify against — it would otherwise sit with no risk/status label and nothing downstream would pick it up (see issue #223's actual history, and issue #343 for this issue-less case specifically). This deterministic backstop (pr-intake.yml) classified its risk and applied status:needs-review to route it straight to principal review.

@github-actions

Copy link
Copy Markdown
Contributor

Principal review — verdict: human-merge

Outcome forced by risk:high, not by any defect in the change itself. .github/workflows/list-testflight-groups.yml matches sensitive_paths: - ".github/workflows/**" in .github/agent-policy.yml, and classify_pr_risk.py correctly applied risk:high — per policy that alone routes to human-merge regardless of what review otherwise concludes.

Process note: this PR was already merged (commit 706bba7, by @libravault-xyz at 2026-08-25T18:58:42Z) 44 seconds after risk:high/status:needs-review were applied, before any review happened — the github-actions bot comment above confirms it was opened outside the dev/qa pipeline (no linked issue, not authored by libravault-pipeline-bot[bot]), so it also skipped qa-agent. Nothing for the merge workflow to do at this point; documenting the review for the record anyway, as instructed.

Verification

  • The fix is correct and I confirmed it against real CI, not just the diff. Before this PR, workflow_dispatch run 32886722087 crashed exactly as described: build.rb:64:in 'Build#app_version': No pre_release_version included (RuntimeError), thrown from the g.fetch_builds loop. Root cause checks out against the installed spaceship gem: BetaGroup#fetch_builds → get_builds_for_beta_group issues GET betaGroups/{id}/builds with no includes param, so preReleaseVersion is never hydrated, and Build#app_version raises unless it's present. Post-merge run 32886927890 confirms the group-listing section that used to crash now prints cleanly. Filed (and closed) PR #621's diagnostic workflow extension shipped an app_version RuntimeError, caught on first real run — fixed by PR #622 #625 for the permanent record per the "Documenting real findings" policy, mirroring PR #618's diagnostic workflow shipped with a NoMethodError, caught only by its first real run #620's precedent for this same workflow file.

  • One inaccuracy in the stated rationale, not worth blocking on. The commit message says "fetch_builds/Build.all don't include that relationship by default" — true for fetch_builds, not true for Build.all. Spaceship::ConnectAPI::Build.all defaults includes: to ESSENTIAL_INCLUDES = "app,buildBetaDetail,preReleaseVersion,buildBundles" (build.rb:46,124), which already includes preReleaseVersion — so app_version would not have raised in the second ("most recent builds") loop. Dropping it there anyway is harmless (just one fewer diagnostic field, build number remains sufficient per the PR's own stated goal), so this isn't a functional bug — noted for accuracy, not filed separately.

  • Found a second, unrelated bug while verifying: the workflow still doesn't complete a clean run even after this fix. The same post-merge run (32886927890) got past the (now-fixed) group listing and immediately crashed again, in the "most recent builds" loop: build.rb:92:in 'Build#ready_for_external_testing?': undefined method 'ready_for_external_testing?' for an instance of Spaceship::ConnectAPI::BuildBetaDetail (NoMethodError). BuildBetaDetail only defines ready_for_internal_testing?/processed?, never ready_for_external_testing?, in either the runner's installed fastlane 2.237.0 or current 2.238.0. This line predates this PR (introduced in chore(ci): extend TestFlight groups diagnostic to show build membership #621/0a0bcea) and is untouched by this diff, so it's out of scope for this review to block on — but it means the diagnostic tool this PR is fixing still cannot finish a run today. Filed as list-testflight-groups.yml still fails after PR #622: BuildBetaDetail has no ready_for_external_testing? method #626 (open) so it's tracked rather than lost once this thread stops being discoverable.

  • No new networking dependency introduced (reuses the same App Store Connect API auth already used by ios-testflight.yml). No other sensitive_paths globs touched. AGENTS.md's unit-test requirement doesn't apply — this is a CI-only diagnostic Ruby snippet with no app logic and no test harness to put it in, same category as the "build-script bumps" exemption. Commit message follows Conventional Commits and is one concern.

Risk classification sanity check

Label was applied at 2026-08-25T18:57:58Z against the current (only) commit fe524c3 — no commits landed after, so the label isn't stale; re-running classify_pr_risk.py would reproduce the same risk:high for the same reason (.github/workflows/** match).

@github-actions github-actions Bot added status:needs-human-merge Principal review done, requires human merge decision and removed status:needs-review QA passed, awaiting principal-review-agent labels Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:high Touches a sensitive path or exceeds diff-size threshold — always human merge status:needs-human-merge Principal review done, requires human merge decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants