Skip to content

Fix CI: replace live RPC lookup table resolution with offline mock - #20

Merged
marshalokos merged 2 commits into
masterfrom
copilot/fix-github-actions-job-one-more-time
Oct 29, 2026
Merged

marshalokos merged 2 commits into
masterfrom
copilot/fix-github-actions-job-one-more-time

Conversation

Copilot AI commented Aug 25, 2026 •

Copy link
Copy Markdown

The address lookup table EDDSpjZHrsFKYTMJDcBqXAjkLcu9EKdvrQR4XnqsXErH referenced by the aTokenCreateIdempotentMsg fixture no longer exists on Solana mainnet, causing 5 tests across 4 files to fail with "Failed to find address lookup table account".

Changes

  • app/__tests__/mocks.ts — Added getMockAddressLookupTable(key) that returns a pre-built AddressLookupTableAccount for known fixture keys without any RPC call. The map can be extended as other lookup tables get deactivated.
// Before — live RPC call, breaks when table is deactivated
const connection = new Connection(clusterApiUrl('mainnet-beta'));
const lookups = await Promise.all(
    m.addressTableLookups.map(lookup =>
        connection.getAddressLookupTable(lookup.accountKey).then(val => val.value)
    )
);

// After — offline, deterministic
const lookups = m.addressTableLookups
    .map(lookup => mock.getMockAddressLookupTable(lookup.accountKey))
    .filter(x => x !== null) as AddressLookupTableAccount[];
  • 4 test files — Replaced the Connection-based lookup resolution with getMockAddressLookupTable in the createIdempotent-related test cases:
    • app/components/inspector/__tests__/AssociatedTokenDetailsCard.spec.tsx
    • app/components/inspector/__tests__/into-parsed-data.spec.ts
    • app/components/common/__tests__/BaseInstructionCard.spec.tsx
    • app/components/instruction/__tests__/AssociatedTokenDetailsCard.spec.tsx

@vercel

vercel Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
explorer Error Error Oct 29, 2026 1:20am UTC

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Fix CI: replace live RPC lookup table resolution with offline mock Aug 25, 2026
Copilot AI requested a review from marshalokos August 25, 2026 14:39

@marshalokos marshalokos left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@marshalokos marshalokos left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

marshalokos and others added 2 commits October 29, 2026 02:20
The `EDDSpjZHrsFKYTMJDcBqXAjkLcu9EKdvrQR4XnqsXErH` address lookup table
account has been deactivated/removed from Solana mainnet, causing five
tests to fail with "Failed to find address lookup table account".

Add `getMockAddressLookupTable()` to `app/__tests__/mocks.ts` with a
pre-built `AddressLookupTableAccount` for that key (130 addresses, index 69
= TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA as required by the
`aTokenCreateIdempotentMsg` fixture). Update the four affected test files
to use the mock instead of real RPC calls.

Co-authored-by: marshalokos <211153994+marshalokos@users.noreply.github.com>
@marshalokos
marshalokos force-pushed the copilot/fix-github-actions-job-one-more-time branch from c06009f to 9239229 Compare October 29, 2026 01:20
@marshalokos
marshalokos marked this pull request as ready for review October 29, 2026 01:29
@marshalokos
marshalokos merged commit f5614f2 into master Oct 29, 2026
3 of 8 checks passed
marshalokos added a commit that referenced this pull request Oct 29, 2026
…b-one-more-time

Fix CI: replace live RPC lookup table resolution with offline mock

This branch had an error being deployed

1 failed deployment
Preview — 92392295 Deployed Oct 29, 2026 by vercel[bot]
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.

2 participants