• Mark Tyneway's avatar
    contracts-bedrock: hacky patch for CI failures (#9081) · 3ba1ff7c
    Mark Tyneway authored
    * contracts-bedrock: hacky patch for CI failures
    
    CI is consistently failing due to the L2 genesis generation happening
    out of process using ffi. Ideally the genesis state could be ran a
    single time once outside of the process ahead of time but the problem
    with this approach is that the deployer nonce is not correct and the
    L1 contract addresses in practice end up not matching the addresses
    that are injected into the L2 genesis state. There are a few solutions
    to this problem, one is deploying the proxies with create2 and another
    is to ensure that the deployer does not deploy additional contracts
    in the test case setup that are not deployed in the L1 genesis gen
    setup so that we are guaranteed that the contracts have the same
    addresses.
    
    This is a hacky patch to attempt to fix the issue where it will wait
    if the allocs file doesn't exist. Something with the process running in
    parallel causes the file to not exist. The downside of this fix is that
    CI may hang silently forever if the file is lost for some reason.
    
    Another solution would be to return the JSON to solidity and then write
    it to a temp file. This isn't ideal but could work in the short term.
    We are working on a rewrite of the L2 genesis generation in solidity
    that will fix this issue along with many other devex issues in the
    monorepo.
    
    * ctb: update gas snapshot
    3ba1ff7c
Name
Last commit
Last update
..
deploy-config Loading commit data...
deployments Loading commit data...
invariant-docs Loading commit data...
lib Loading commit data...
periphery-deploy-config Loading commit data...
scripts Loading commit data...
snapshots Loading commit data...
src Loading commit data...
test Loading commit data...
.eslintignore Loading commit data...
.eslintrc.js Loading commit data...
.gas-snapshot Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
STYLE_GUIDE.md Loading commit data...
foundry.toml Loading commit data...
package.json Loading commit data...
semver-lock.json Loading commit data...
slither-report.json Loading commit data...
slither.config.json Loading commit data...
tsconfig.build.json Loading commit data...
tsconfig.json Loading commit data...