Skip to content

fix: align failing tests with current registry and committed testdata#61

Merged
GabrielCartier merged 3 commits into
developfrom
fix/failing-tests
May 7, 2026
Merged

fix: align failing tests with current registry and committed testdata#61
GabrielCartier merged 3 commits into
developfrom
fix/failing-tests

Conversation

@sduchesneau
Copy link
Copy Markdown
Contributor

Summary

  • Remove Test_USDC from evm-events-calls: it references testdata/usdc.state.json which was added to the test in ed41691 but never committed. Test_UniswapFactoryDynamic still exercises the testGenerateProject helper.
  • Update mantra-hello-world/TestConvoNextStep: mantra was deprecated from the upstream graph network registry (networks.GetSubstreamsRegistry().Search(/^mantra/) now returns 0 networks), so the pre-shared flow skips AskChainName and goes straight to AskInitialStartBlockType. Test now sets ChainName directly.

Note: the mantra change is a test fix only. The underlying codegen has no way for users to pick a mantra chain interactively now that the network is gone from the registry — worth a separate look if mantra is still meant to be supported.

Test plan

  • go test ./... passes locally

🤖 Generated with Claude Code

- Remove Test_USDC: references testdata/usdc.state.json which was never
  committed (added in ed41691). Test_UniswapFactoryDynamic still
  exercises testGenerateProject.
- Update mantra-hello-world TestConvoNextStep: mantra was deprecated
  from the upstream graph network registry, so the pre-shared flow no
  longer asks for a chain name. Set ChainName directly instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sduchesneau sduchesneau requested a review from GabrielCartier May 7, 2026 14:41
sduchesneau and others added 2 commits May 7, 2026 11:01
With anchor-lang 1.x (resolved from `>=0.31.0`), the declare_program!
macro expands to code referencing anchor_lang from its own generated
module. The old `use anchor_lang::declare_program;` only imports the
macro identifier, so the expanded code fails to resolve `anchor_lang`
and cargo build aborts with E0432 (unresolved import super).

Adding `self` to the use list brings the crate itself into scope, which
fixes all 10 sol-anchor integration tests (orca, meteora, pump-fun,
jupiter-governance, jupiter-staking, raydium-cp-swap, oasis, lifinity,
bonkswap, sanctum) — verified locally with substreams build.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Several pinned solana crates (solana-address, solana-hash,
solana-instruction-error, solana-pubkey, solana-system-interface) now
require rustc >= 1.89.0, so cargo build fails on the integration
container's previous rust:1.88 base image.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@GabrielCartier GabrielCartier left a comment

Choose a reason for hiding this comment

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

LGTM

@GabrielCartier GabrielCartier merged commit dca646e into develop May 7, 2026
3 checks passed
@GabrielCartier GabrielCartier deleted the fix/failing-tests branch May 7, 2026 15:42
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