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

e2e: Cleanup test labeling #1907

Merged
merged 5 commits into from
Sep 22, 2023
Merged

e2e: Cleanup test labeling #1907

merged 5 commits into from
Sep 22, 2023

Conversation

marun
Copy link
Contributor

@marun marun commented Aug 23, 2023

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.

@marun marun added testing This primarily focuses on testing e2e-migrate-kurtosis labels Aug 23, 2023
@marun marun requested review from abi87 and gyuho as code owners August 23, 2023 20:22
@@ -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
Copy link
Contributor Author

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

Copy link
Contributor

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?

Copy link
Contributor Author

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} "${@}"
Copy link
Contributor Author

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

@marun marun self-assigned this Aug 23, 2023
@marun marun linked an issue Aug 23, 2023 that may be closed by this pull request
16 tasks
@marun marun force-pushed the e2e-cleanup-test-labels branch 4 times, most recently from 110e7a4 to eb56aa5 Compare August 28, 2023 14:56
@marun marun marked this pull request as draft September 5, 2023 22:30
@marun marun force-pushed the e2e-cleanup-test-labels branch 4 times, most recently from 874fa5b to fd8f589 Compare September 5, 2023 23:02
@marun marun marked this pull request as ready for review September 5, 2023 23:02
Copy link
Contributor

@joshua-kim joshua-kim left a comment

Choose a reason for hiding this comment

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

Minor comments

scripts/tests.e2e.persistent.sh Outdated Show resolved Hide resolved
tests/e2e/describe.go Show resolved Hide resolved
wallet/chain/p/wallet.go Outdated Show resolved Hide resolved
scripts/tests.e2e.persistent.sh Show resolved Hide resolved
scripts/tests.e2e.persistent.sh Show resolved Hide resolved
tests/e2e/x/interchain_workflow.go Show resolved Hide resolved
@marun
Copy link
Contributor Author

marun commented Sep 21, 2023

Rebased

scripts/tests.e2e.persistent.sh Show resolved Hide resolved
tests/e2e/README.md Outdated Show resolved Hide resolved
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.
@StephenButtolph StephenButtolph added this pull request to the merge queue Sep 22, 2023
@StephenButtolph StephenButtolph added this to the v1.10.11 milestone Sep 22, 2023
Merged via the queue into dev with commit a7604bc Sep 22, 2023
16 checks passed
@StephenButtolph StephenButtolph deleted the e2e-cleanup-test-labels branch September 22, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Migrate Kurtosis Tests
5 participants