Skip to content

fix(tron): flaky tron-sdk build from cached build:tron outputs#8204

Closed
paulbalaji wants to merge 1 commit intomainfrom
fix/tron-build-turbo-cache-determinism
Closed

fix(tron): flaky tron-sdk build from cached build:tron outputs#8204
paulbalaji wants to merge 1 commit intomainfrom
fix/tron-build-turbo-cache-determinism

Conversation

@paulbalaji
Copy link
Collaborator

@paulbalaji paulbalaji commented Feb 25, 2026

Summary

  • make solidity/build-tron.sh clear cache-tron and generated Tron SDK output dirs before compiling
  • this forces deterministic ABI/typechain generation for the @hyperlane-xyz/core#build:tron turbo task

Root cause

  • @hyperlane-xyz/tron-sdk depends on @hyperlane-xyz/core#build:tron
  • in a cache-hit path, restored/generated Tron typechain output could be incomplete (index/re-export files existed while many leaf files were missing)
  • then tron-sdk TypeScript compile failed with many TS2307 Cannot find module ... errors in src/typechain/**

Verification

  • reproduced failure with:
    • pnpm -C typescript/tron-sdk clean
    • pnpm turbo run build --filter=@hyperlane-xyz/tron-sdk --output-logs=full
  • after fix, same command succeeds
  • repeated the command again through cache-hit path; still succeeds

Note

Low Risk
Small build-script change that only affects generated artifacts and cache behavior; main risk is longer builds or unintended cleanup of expected outputs.

Overview
Makes the Tron Solidity build deterministic under Turbo cache hits by clearing incremental Hardhat/TypeChain state and generated outputs before compiling.

solidity/build-tron.sh now removes ./cache-tron plus the generated typescript/tron-sdk/src/abi and src/typechain directories up front, preventing partial/leftover trees from causing downstream tron-sdk TypeScript build failures.

Written by Cursor Bugbot for commit b378637. This will update automatically on new commits. Configure here.

@github-project-automation github-project-automation bot moved this to In Review in Hyperlane Tasks Feb 25, 2026
@paulbalaji paulbalaji changed the title Fix flaky tron-sdk build from cached build:tron outputs fix(tron): flaky tron-sdk build from cached build:tron outputs Feb 25, 2026
@paulbalaji
Copy link
Collaborator Author

rolled into #8205 (review)

@paulbalaji paulbalaji closed this Feb 25, 2026
@github-project-automation github-project-automation bot moved this from In Review to Done in Hyperlane Tasks Feb 25, 2026
@paulbalaji paulbalaji deleted the fix/tron-build-turbo-cache-determinism branch February 25, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant