Skip to content

ci(e2e-pay): keep the expired-payment pool in artifacts - #678

Merged
ignaciosantise merged 1 commit into
mainfrom
ci/expired-pool-artifacts
Nov 27, 2026
Merged

ignaciosantise merged 1 commit into
mainfrom
ci/expired-pool-artifacts

Conversation

@ignaciosantise

Copy link
Copy Markdown
Collaborator

Why

pay_expired_link failed intermittently because the expired-payment pool lived in actions/cache. Caches are branch-scoped and evicted least-recently-used once a repo passes 10 GB, so the tiny pool often disappeared. Runs then found no payment older than 20 min and fell back to a hardcoded link that no longer resolves as expired.

What

  • Bumps maestro/pay-tests to the merge of WalletConnect/actions#126. The pool now lives in repo-wide pay-expired-pool artifacts (3-day retention, newest 5 merged, fork runs ignored), and the fallback link is refreshed.
  • Adds actions: read so the action can list and download those artifacts.

Verified in reown-kotlin (reown-com/reown-kotlin#459). A fresh run logged Restored 1 pool entries from 1 artifact(s). and Using pooled expired payment: …, and pay_expired_link passed.

Expected in this PR's run

There is no artifact in this repo yet, so the first run warns No pay-expired-pool artifact found, uses the refreshed fallback link and uploads the first artifact. Runs 20+ minutes later, from any branch, use the pool. Re-running the same run doesn't test this, because a re-run deletes the earlier attempt's artifacts.

🤖 Generated with Claude Code

Bumps maestro/pay-tests to WalletConnect/actions#126, which moves the
pay_expired_link pool from actions/cache (branch-scoped, evicted past the
10 GB limit) to repo-wide artifacts, and grants actions: read to list them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
pos-demo Ignored Ignored Preview Nov 27, 2026 12:37pm UTC
react-native-appkit Ignored Ignored Preview Nov 27, 2026 12:37pm UTC
react-native-walletkit Ignored Ignored Preview Nov 27, 2026 12:37pm UTC

Request Review

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @ignaciosantise's task in 1m 52s —— View job


Review

  • Gather context
  • Read changed files
  • Breaking changes subagent
  • Data classification subagent

The changes are minimal and well-reasoned. Data classification: no issues. One breaking-change note from cross-repo caller analysis:

Found 1 issue(s)

Issue 1: Cross-repo callers implicitly need actions: read after this bump

ID: brk-action-actions-read-implicit-requirement-7c3f
File: .github/actions/walletkit-build-and-maestro/action.yml:774
Severity: MEDIUM
Category: breaking_change

Context:

  • Pattern: pay-tests@5a9fa55 now reads pay-expired-pool artifacts internally. Composite actions cannot declare their own permissions — only the calling workflow can grant actions: read.
  • Risk: Any external caller that invokes this composite action for prod pay flows (no pay-api-url or expired-gateway-url override, with merchant-api-key-single-nokyc passed) will fail on the artifact-read step unless their workflow declares actions: read.
  • Impact: Callers like pay-core that pass their own pay-api-url are already unaffected (the conditional on line 776 blanks out the merchant key, so pay-tests skips the pool entirely). But any new cross-repo caller targeting prod would silently fail on pay_expired_link without this permission.
  • Trigger: Only when pay-api-url == '' AND expired-gateway-url == '' AND merchant keys are passed — i.e., prod-targeting pay flows.

Note: The step comment at action.yml:769 already mentions the requirement (so the calling workflow needs 'actions: read'), which is good. The in-repo ci_e2e_walletkit.yaml is correctly updated in this same PR.

Recommendation: No code change strictly required; the requirement is documented in the step comment. If you want a stronger guard, add a ::warning:: to the action when the pool path is active:

- name: Warn on missing actions:read
  if: contains(inputs.maestro-tags, 'pay') && inputs.pay-api-url == '' && inputs.expired-gateway-url == ''
  shell: bash
  run: echo "::notice::pay-expired-pool artifact reads require 'actions: read' in the calling workflow."

@ignaciosantise

Copy link
Copy Markdown
Collaborator Author

Re brk-action-actions-read-implicit-requirement: no change. A caller without actions: read doesn't fail. fetch-expired-pool.sh warns (Could not list pay-expired-pool artifacts (does the job have 'actions: read'?)) and starts with an empty pool, so pay_expired_link falls back to the hardcoded link, as it did before the pool existed. The step comment already documents the requirement, and the only cross-repo caller today (pay-core) passes its own link, which disables the pool.

@ignaciosantise
ignaciosantise merged commit 9c2ba7a into main Nov 27, 2026
17 checks passed
@ignaciosantise
ignaciosantise deleted the ci/expired-pool-artifacts branch November 27, 2026 13:06
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