Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy change check #1755

Merged
merged 2 commits into from
Aug 14, 2023
Merged

Proxy change check #1755

merged 2 commits into from
Aug 14, 2023

Conversation

noisekit
Copy link
Contributor

@noisekit noisekit commented Aug 9, 2023

  • add scripts for each workspace with contracts to simulate release and to check for proxy change
  • update gh action to run over all the workspaces with contracts
  • comment out workspaces that were not published yet or have issues with build (re-enable after fixed)
  • wait for Fix Infura URL for optimism mainnet #1763 to be merged first

@noisekit noisekit self-assigned this Aug 9, 2023
@noisekit noisekit force-pushed the proxy-change-check branch 9 times, most recently from 7c46907 to 3ef8f9c Compare August 9, 2023 05:47
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #1755 (e579efd) into main (74ef200) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1755   +/-   ##
=======================================
  Coverage   72.77%   72.77%           
=======================================
  Files          57       57           
  Lines         720      720           
  Branches      236      236           
=======================================
  Hits          524      524           
  Misses        167      167           
  Partials       29       29           
Flag Coverage Δ
core-contracts 93.26% <ø> (ø)
core-modules 90.47% <ø> (ø)
core-utils 68.57% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@noisekit noisekit force-pushed the proxy-change-check branch 9 times, most recently from 64835f0 to 759d79b Compare August 11, 2023 07:20
@noisekit noisekit changed the base branch from main to fix-optimistic-mainnet-rpc August 11, 2023 07:21
@noisekit noisekit marked this pull request as ready for review August 11, 2023 07:32
- project: protocol/synthetix
cannonPackage: synthetix:latest
proxy: "InitialCoreProxy"
chains: "mainnet optimistic-mainnet goerli optimistic-goerli"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Th reason to check all chains in one matrix run is that env setup has a big overhead and testing only one release per run is very inefficient (actual build is much faster than env setup). Bundling multiple networks for each package makes builds run slightly slower than build setup and makes matrix split more reasonable.

--upgrade-from ${{ matrix.cannonPackage }}:latest \
--impersonate ${{ matrix.impersonate }} | tee deployment.log

grep 'Successfully built package ${{ matrix.cannonPackage }}' deployment.log
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to ensure that build actually happened and not simply failed (as it used to be), so the step will fail if hardhat does not actually build anything.

@@ -35,19 +71,34 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.16.0"
node-version: "16.20.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

downgrade to 16 on purpose?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saw thread on discord

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it is a bit messier than I'd like it to be

Base automatically changed from fix-optimistic-mainnet-rpc to main August 14, 2023 09:07
Copy link
Contributor

@0xjocke 0xjocke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@noisekit noisekit merged commit 06f070b into main Aug 14, 2023
17 checks passed
@noisekit noisekit deleted the proxy-change-check branch August 14, 2023 13:08
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.

3 participants