Skip to content

chore(ci): list every preReleaseVersion record, not just the one builds link to - #654

Merged
libravault-xyz merged 1 commit into
devfrom
chore/testflight-prerelease-versions
Aug 26, 2026
Merged

libravault-xyz merged 1 commit into
devfrom
chore/testflight-prerelease-versions

Conversation

@libravault-xyz

Copy link
Copy Markdown
Collaborator

Workflow-only diagnostic extension, no app code touched. Follow-up to #643/#652.

User caught build 41/40/148/39 not appearing unified under one "Version 1.0"
grouping in App Store Connect's own Builds page UI, despite every build's own
preReleaseVersion.id already checked identical via the API. This lists every
preReleaseVersion record that actually exists on the app (via the un-scoped
get_pre_release_versions endpoint, not reachable through any single Build)
and which build numbers each one owns, to check directly whether there's a
genuine second "1.0" record Apple silently created, or this is a pure
dashboard display artifact.

🤖 Generated with Claude Code

…ds link to

User caught a real anomaly in App Store Connect's own UI: build 41's
detail page correctly shows Groups (Alpha/Beta + Test int), but the
Builds list page doesn't show 41/40/148/39/... unified under one
"Version 1.0" section the way expected -- and this split appeared to
start right around when notifications stopped. Every build's own
preReleaseVersion.id already checked identical (148/39/40/41 all point
to the same record), so if ASC's dashboard is nonetheless grouping them
apart, either there's a second "1.0" preReleaseVersion record entirely
(possible if Apple silently created one, e.g. around an App Store
submission flow) or this is a pure UI artifact. This lists every
preReleaseVersion record on the app via the un-scoped
get_pre_release_versions endpoint (not reachable through any Build
we already have) and which build numbers each one actually owns, so we
can tell which it is directly instead of guessing from the dashboard.

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 26, 2026
@libravault-pipeline-bot libravault-pipeline-bot Bot added the status:needs-review QA passed, awaiting principal-review-agent label Aug 26, 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

Risk label: risk:high, correctly applied and not stale — re-ran classify_pr_risk.py origin/dev origin/chore/testflight-prerelease-versions myself and it independently reproduces risk:high (.github/workflows/list-testflight-groups.yml matches sensitive_paths glob .github/workflows/**). Single commit, label was set right after it landed, nothing pushed since. Per policy this always routes to status:needs-human-merge regardless of what review finds — routing this to a human on the label alone, not because I found a defect.

Diff: exactly the 9 lines shown in gh pr diff — confirmed via git diff origin/dev...origin/chore/testflight-prerelease-versions --stat too, so nothing else snuck in under a misleading PR description. No app code touched, matches the PR description.

Correctness — verified against the actual installed gem, not just read:

  • fastlane 2.238.0 is installed locally; both Spaceship::ConnectAPI.get_pre_release_versions and .get_builds exist with signatures matching this call (spaceship/connect_api/testflight/testflight.rb:438,510).
  • filter: { app: app.id } matches existing precedent elsewhere in this same fastlane version (download_dsyms.rb:76).
  • .all_pages.flat_map(&:to_models) is the exact same pattern already used two lines above this diff's insertion point (line 70, preexisting), so it's not a new/unproven idiom.
  • prv.version / prv.platform are backed by PreReleaseVersion's attr_mapping (connect_api/models/pre_release_version.rb).
  • Extracted the embedded Ruby heredoc and ran ruby -c on it — syntax OK. python3 -c "import yaml; yaml.safe_load(...)" — YAML OK.

One thing I could not fully verify from the gem source: filter: { ..., preReleaseVersion: prv.id } on get_builds — existing call sites in this fastlane version only filter by preReleaseVersion.version/preReleaseVersion.platform (dotted), never by bare preReleaseVersion (the relationship id). The filter hash is passed straight through to the API as a query param with no client-side validation, so a wrong key wouldn't raise a Ruby error — worst case Apple's API just ignores it or 400s, and since this is a manually-triggered, read-only diagnostic (no downstream consumer, human reads the log), the blast radius of that being wrong is nil. Flagging as PLAUSIBLE-but-unverified, not blocking.

CI: gh pr checks shows all build/test jobs (Build & Test iOS, Build Android App, Compose UI Tests, Unit & Integration Tests (JVM)) correctly skipping via the existing Detect Changed Paths gate, since only a workflow_dispatch-only CI script changed — consistent with the established pattern for this diagnostic-workflow PR chain (#618/#619/#621/#622/#627/#643/#652), no continue-on-error masking anything.

Networking policy: this does add new App Store Connect API endpoint calls (get_pre_release_versions, per-preReleaseVersion get_builds), but it's an extension of a diagnostic script whose entire purpose is already-authorized read-only ConnectAPI calls (see the file's own history back to #618), not a new dependency or a new external service. The PR description attributes the specific ask directly to the human ("User caught build 41/40/148/39 not appearing unified..."), matching the same human-in-the-loop pattern as the immediately preceding PR in this chain (#643). Not treating this as a blocking "no sign-off" finding, but noting it since the policy text is broad enough a human should have final say.

No status:blocked on the PR or its issue. No linked issue — same as #643, this PR was opened directly by the human (not libravault-pipeline-bot[bot]) and intake correctly routed it straight to status:needs-review per pr-intake.yml's documented handling (issue #223, #343) rather than leaving it stuck.

Minor, non-blocking, pre-existing, unrelated to this diff: the workflow file's header comment (line 5, untouched by this PR, present since the original commit 1443fb1) references project_testflight_external_group_intermittent_failure.md "for why this exists" — that file doesn't exist anywhere in the repo, including history (git log --all --diff-filter=A). Likely a local/gitignored scratch note (same category as .kilo/) rather than a real dangling reference, and it predates this PR by several revisions, so not raising it as a finding on this change — just noting it in case a human wants to fix the comment while touching this file anyway.

Verdict: no CONFIRMED findings on this diff — the addition is correct, consistent with the file's existing idioms, and low-blast-radius (manual, read-only diagnostic). Routing to human-merge purely on the risk:high / sensitive-path label, per policy.

@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 26, 2026
@libravault-xyz
libravault-xyz merged commit bbc558f into dev Aug 26, 2026
26 checks passed
@libravault-xyz
libravault-xyz deleted the chore/testflight-prerelease-versions branch August 26, 2026 06:58
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