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

build proposals for PriceFeed coreEvals on multiple platforms. #10146

Merged
merged 10 commits into from
Oct 10, 2024
4 changes: 4 additions & 0 deletions a3p-integration/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ proposals/*/.yarn/*
!proposals/*/.yarn/releases
!proposals/*/.yarn/sdks
!proposals/*/.yarn/versions

# build artifacts
proposals/*/mainNet/*
proposals/*/devNet/*
4 changes: 3 additions & 1 deletion a3p-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"fromTag": "use-vaults-auctions"
},
"scripts": {
"build": "yarn run build:sdk && yarn run build:submissions && yarn run build:synthetic-chain",
"build": "yarn run build:sdk && yarn run build:submissions && yarn run build:synthetic-chain && yarn run build:priceFeeds-for-mainnet && yarn run build:priceFeeds-for-devnet",
Copy link
Member

Choose a reason for hiding this comment

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

I see only the 1 variant in the ci job Artifact:

$ unzip -l core-eval-scripts.zip |grep gov-price
     1024  2024-10-10 01:41   f-replace-price-feeds/gov-price-feeds-A3P_INTEGRATION-permit.json
     1463  2024-10-10 01:41   f-replace-price-feeds/gov-price-feeds-A3P_INTEGRATION-plan.json
     7069  2024-10-10 01:41   f-replace-price-feeds/gov-price-feeds-A3P_INTEGRATION.js

Is build:submissions the relevant thing to tweak rather than build?

"build:sdk": "make -C ../packages/deployment docker-build-sdk",
"build:submissions": "scripts/build-all-submissions.sh",
"build:priceFeeds-for-mainnet": "scripts/build-submission.sh proposals/f:replace-price-feeds inter-protocol/updatePriceFeeds.js submission UNRELEASED_main; scripts/build-submission.sh proposals/f:replace-price-feeds vats/add-auction.js; scripts/build-submission.sh proposals/f:replace-price-feeds vats/upgradeVaults.js",
"build:priceFeeds-for-devnet": "scripts/build-submission.sh proposals/f:replace-price-feeds inter-protocol/updatePriceFeeds.js submission UNRELEASED_devnet; scripts/build-submission.sh proposals/f:replace-price-feeds vats/add-auction.js; scripts/build-submission.sh proposals/f:replace-price-feeds vats/upgradeVaults.js",
"build:synthetic-chain": "yarn synthetic-chain build",
"test": "yarn synthetic-chain test",
"doctor": "yarn synthetic-chain doctor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export default async (homeP, endowments) => {

const { writeCoreEval } = await makeHelpers(homeP, endowments);

await writeCoreEval('gov-price-feeds', (utils, opts) =>
const match = scriptArgs[0].match(/UNRELEASED_(.*)/);
const variant = match ? match[1] : scriptArgs;

await writeCoreEval(`gov-price-feeds-${variant}`, (utils, opts) =>
defaultProposalBuilder(utils, { ...opts, ...config }),
);
};
Loading