Skip to content

Serialize profile-mutating deployment tests - #365

Open
dajiaohuang wants to merge 1 commit into
alchemyplatform:developfrom
dajiaohuang:fix/364-serialize-script-tests
Open

dajiaohuang wants to merge 1 commit into
alchemyplatform:developfrom
dajiaohuang:fix/364-serialize-script-tests

Conversation

@dajiaohuang

Copy link
Copy Markdown

Motivation

Fixes #364. The four deployment-script test files use vm.setEnv to set FOUNDRY_PROFILE. When Forge runs them concurrently, sibling suites can observe a different profile than the one each script test expects.

Solution

pnpm test runs the rest of the suite as before, then runs test/script/Deploy*.s.t.sol with --threads 1. Both CI test profiles and the README use this entry point; unrelated tests remain parallel.

Validation

  • Static selection check matched the four deployment test files.
  • git diff --check passed.
  • Local Forge tests were not run because the forge binary is unavailable in this environment. No toolchain was installed.

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.

Script deploy tests are flaky under parallel forge test: sibling suites clobber each other's FOUNDRY_PROFILE

1 participant