-
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
2660fec
hooks
usmanmani1122 8e3f3e4
Merge branch "usman/prepare-test-hook" into branch "usman/before-afte…
usmanmani1122 df80864
nit
usmanmani1122 0554920
fixes
usmanmani1122 5d4e465
Merge branch 'main' into usman/before-after-test-scripts
usmanmani1122 2c94fef
document prepare-test hook
usmanmani1122 a689ecc
address comments
usmanmani1122 61371f5
Merge branch 'main' into usman/before-after-test-scripts
usmanmani1122 9f24947
increase test timeout
usmanmani1122 3d6780c
increase test timeout 2.0
usmanmani1122 5b4c029
fix for spawn
usmanmani1122 608e2da
:)
usmanmani1122 0ee2a77
increase test timeout 3.0
usmanmani1122 7ad7d92
revert
usmanmani1122 f55ef1f
address comments
usmanmani1122 8b22861
Empty
usmanmani1122 b89fe4f
Empty
usmanmani1122 6d5c227
Empty
usmanmani1122 f121f67
Merge branch 'main' into usman/before-after-test-scripts
usmanmani1122 679a083
Address comments
usmanmani1122 f983826
lint
usmanmani1122 36a2a20
use tmp directory
usmanmani1122 5d54940
nit
usmanmani1122 ef3d10b
address comments + fix bug
usmanmani1122 963e59f
lint
usmanmani1122 1a137a4
nit
usmanmani1122 12c5042
nit
usmanmani1122 ac2c07b
Merge branch 'main' into usman/before-after-test-scripts
usmanmani1122 b34bdb6
Merge branch 'main' into usman/before-after-test-scripts
usmanmani1122 73a9c4b
add test + host folder notes
usmanmani1122 9d67bc1
lint
usmanmani1122 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
in this PR would you revise the name? Please clarify that it runs within the test image before agd starts.
test-before-agd.sh
would be clear.This readme must also mention the two new hooks.
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.
I think the hook name should not have any mention of
agd
. It should just be an indication of at which point in the pipeline this hook fits andprepare-test.sh
I think conveys that. We could rename it topre-test.sh
as well but we then have to distinguish on hook names running outside and inside the container. The current PR usespre-test.sh
name which run on the host.What do you suggest?
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.
Agree
Disagree.
prepare.sh
works very differently,prepare-test.sh
sounds like it would be a PREPARE step but for tests. However it runs in the same image astest.sh
. It's just liketest.sh
but runs before agd starts.I'll argue firmly that we need a different name than
prepare-test.sh
. As you point outpre
andpost
are taken. I think those should be more explicit that they don't run within the image:before-test-run.sh
andafter-test-run.sh
. ("Before" and "after" more closely match testing hook names like Ava has.)That would leave
pre-test.sh
but that could still be easily confused. I would suggestsetup-test.sh
ortest-before-chain.sh
.If we should discuss more let's do it synchronously or in a call.
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.
I agree with
before-test-run.sh
andafter-test-run.sh
for host andsetup-test.sh
(and possiblyteardown-test.sh
) for image so we can lock them if you agree as well.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.
🤝
I like your "host" term though. I'd suggest putting the host scripts in
host
or some other subdir so they're not copied to the image (using--exclude
). That way you can modify them without invalidating it.