-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fixed e2e makefile target to use deploy-cli instead of deploy-script.js #78
Conversation
Nice, would be great to close out #72 here or in a fast follow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good stuff, but using npx
really needs --no-install
.
Otherwise, one typo and npx
downloads and runs who-knows-what.
contract/Makefile
Outdated
# todo: figure out why this sequence # is always off by 1 forcing a retry | ||
# yarn node script/deploy-contract.js | ||
|
||
npx tsx ../e2e-testing/scripts/deploy-cli.ts test/builder/init-orca.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npx
by itself is a bit of a loose cannon. Be sure to use --no-install
.
npx tsx ../e2e-testing/scripts/deploy-cli.ts test/builder/init-orca.js | |
npx --no-install tsx ../e2e-testing/scripts/deploy-cli.ts test/builder/init-orca.js |
consider factoring it out a la...
TSX=npx --no-install tsx |
and then...
npx tsx ../e2e-testing/scripts/deploy-cli.ts test/builder/init-orca.js | |
$(TSX) ../e2e-testing/scripts/deploy-cli.ts test/builder/init-orca.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could even go further...
npx tsx ../e2e-testing/scripts/deploy-cli.ts test/builder/init-orca.js | |
$(DEPLOY) test/builder/init-orca.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah good ideas! will do
@@ -259,26 +259,7 @@ test-orca: | |||
|
|||
# todo remove clean install steps after debugging | |||
e2e: | |||
make clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 for replacing lots of old lines with 1 new one
How about deleting |
84a5e1b
to
1db90cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Be sure to autosquash. I don't think we have bots for that here.
c344d92
to
da643e4
Compare
# todo: figure out why this sequence # is always off by 1 forcing a retry | ||
# yarn node script/deploy-contract.js | ||
|
||
$(DEPLOY) src/builder/init-orca.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Since
deploy-contract.js
is now "subsumed" bydeploy-cli.js
, we replace the Makefile target:New command to deploy:
$(DEPLOY) src/builder/init-orca.js
which expands to:
npx --no-install tsx ../e2e-testing/scripts/deploy-cli.ts src/builder/init-orca.js
Fixes #77 , renders #64 outdated, and addresses #72
Shoutout to @dckc & @0xpatrickdev for the heads up!
@amessbee try this now, should be good 🚀