-
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
feat: proposal pre/post test steps #210
Changes from 1 commit
2660fec
8e3f3e4
df80864
0554920
5d4e465
2c94fef
a689ecc
61371f5
9f24947
3d6780c
5b4c029
608e2da
0ee2a77
7ad7d92
f55ef1f
8b22861
b89fe4f
6d5c227
f121f67
679a083
f983826
36a2a20
5d54940
ef3d10b
963e59f
1a137a4
12c5042
ac2c07b
b34bdb6
73a9c4b
9d67bc1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -121,19 +121,18 @@ switch (cmd) { | |||||||
const image = imageNameForProposal(proposal, 'test'); | ||||||||
bakeTarget(image.target, values.dry); | ||||||||
|
||||||||
const proposalPath = `${root}/proposals/${proposal.path}`; | ||||||||
const proposalHostScriptsDirectoryPath = `${root}/proposals/${proposal.path}/host`; | ||||||||
|
||||||||
if (fileExists(`${proposalPath}/pre_test.sh`)) | ||||||||
execSync(`/bin/bash ${proposalPath}/pre_test.sh`, { | ||||||||
stdio: 'inherit', | ||||||||
}); | ||||||||
const afterHookScriptPath = `${proposalHostScriptsDirectoryPath}/after-test-run.sh`; | ||||||||
const beforeHookScriptPath = `${proposalHostScriptsDirectoryPath}/before-test-run.sh`; | ||||||||
|
||||||||
fileExists(beforeHookScriptPath) && | ||||||||
execSync(beforeHookScriptPath, { stdio: 'inherit' }); | ||||||||
|
||||||||
runTestImage(proposal); | ||||||||
|
||||||||
if (fileExists(`${proposalPath}/post_test.sh`)) | ||||||||
execSync(`/bin/bash ${proposalPath}/post_test.sh`, { | ||||||||
stdio: 'inherit', | ||||||||
}); | ||||||||
fileExists(afterHookScriptPath) && | ||||||||
execSync(afterHookScriptPath, { stdio: 'inherit' }); | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. consider having a helper,
Suggested change
Then the above three consts don't need to be defined and when someone searched There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add running the hooks in case we're in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||||||||
|
||||||||
// delete the image to reclaim disk space. The next build | ||||||||
// will use the build cache. | ||||||||
|
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.
Let's be more explicit about what the
host
folder is for. There has been some confusion: Agoric/agoric-sdk#10947 (comment)While you're at it a change like this would help,
This is not blocking feedback. If something is delayed by this PR the docs improvements can come later.
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.
Added