-
Notifications
You must be signed in to change notification settings - Fork 674
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
e2e: Cleanup test labeling #1907
Conversation
61ba2c2
to
3ff603e
Compare
@@ -28,4 +28,4 @@ jobs: | |||
run: ./scripts/build.sh -r | |||
- name: Run e2e tests with persistent network | |||
shell: bash | |||
run: ./scripts/tests.e2e.persistent.sh ./build/avalanchego | |||
run: ./scripts/tests.e2e.persistent.sh |
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.
The binary path is now defaulted and can be overridden by setting AVALANCHEGO_PATH
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.
lazy question: do we print the path used?
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.
Yes, in multiple places as it turns out. I've cleaned this up so that its only printed by testnetctl.
else | ||
echo "ALL SUCCESS!" | ||
fi | ||
ginkgo -p -v --randomize-all ./tests/e2e/e2e.test -- ${E2E_ARGS} "${@}" |
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.
All script arguments are now provided to ginkgo to support things like filtering by spec label or file
110e7a4
to
eb56aa5
Compare
874fa5b
to
fd8f589
Compare
5fa7c26
to
2927005
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.
Minor comments
fd5806e
to
f4f69c6
Compare
f4f69c6
to
6bdaa42
Compare
Rebased |
5bcb89c
to
44aea75
Compare
Previously test labels were applied via free-form strings and didn't provide a way to select only a single chain. Now there are constants defined for each chain to ensure consistent labeling and there is a separate constant for each chain. Tests also previously had a test-specific label applied which can be betteraccomplished with the `--focus-file` argument so long as major tests exist in separate files.
c86104b
to
ec92f0f
Compare
This PR is a precursor to replacing kurtosis e2e testing for coreth. The coreth e2e job will be able to run
./scripts/tests.e2e.sh --ginkgo.label-filter='c || uses-c'
to run only tests that interact with the C-Chain.Tests also previously had a test-specific label applied which can be better accomplished with the
--focus-file
argument so long as major tests exist in separate files.