Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
| @@ -1,7 +1,6 @@ | |||
| $ /home/kaze/code/contracts/node_modules/.bin/cannon inspect cow-settlement:latest --chain-id 13370 --out deploy-json | |||
There was a problem hiding this comment.
apparently this was included in the previous PR. oops 😆
There was a problem hiding this comment.
Review
The core idea is solid - commit published Cannon artifacts and verify them in CI. A few things to address before merge:
CI is failing
The verify-cannon-record job fails. The new workflow uses pnpm (pnpm/action-setup + pnpm install + pnpm cannon:record) but the rest of the repo uses yarn (all other workflows, yarn.lock present). The cannon:record script in package.json was also changed to call cannon directly instead of yarn cannon - if cannon isn't on PATH this will break.
Version mismatch
PR title says "publish 2.0.2" but cannonfile.toml bumps to 2.0.3. The description says the 2.0.2 package has been published, so I assume 2.0.3 is setting up for the next publish - but it's confusing since the committed artifacts in cannon/deploy.json are from the 2.0.2 build. Could you clarify?
Action pinning inconsistency
actions/checkout and pnpm/action-setup are pinned to commit SHAs (nice, aligns with #260), but actions/setup-node@v4 in the same file is not pinned.
Minor: shell command header cleanup
Good catch removing the $ /home/kaze/code/... header lines from cannon/deploy.json and cannon/misc.json - those were leftover from piping stdout directly into the files.
Description
Completed the Cannon publish, so dumping the release artifacts into the repository and adding CI to verify consistency.
Context
The previous PR #257 added cannon and the cannonfile, but didn't actually publish the package to the repo. The package has now been published, and so we can dump the artifacts in this repository and verify them with CI.
Note that the artifacts that already existed in the repository were leftover from the previous merge, and since I did a clean build before publish, there are slight changes.
Testing Instructions
Verify the CI is working as expected
Check the output cannon artifacts for anything that seems wierd.
Related Issues
#257