fix: align failing tests with current registry and committed testdata#61
Merged
Conversation
- 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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test_USDCfromevm-events-calls: it referencestestdata/usdc.state.jsonwhich was added to the test in ed41691 but never committed.Test_UniswapFactoryDynamicstill exercises thetestGenerateProjecthelper.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 skipsAskChainNameand goes straight toAskInitialStartBlockType. Test now setsChainNamedirectly.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