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

fix: adding github action parallel runs to cli e2e tests #3136

Merged
merged 9 commits into from
Sep 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ jobs:
- name: Run unit tests
run: cd agent; make test -B


unit-test-web:
name: WebUI unit tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -336,6 +335,11 @@ jobs:
name: CLI e2e tests
needs: [build-docker]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
total_splits: [8]
index: [0,1,2,3,4,5,6,7]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -348,14 +352,17 @@ jobs:
docker load --input dist/image.tar
- name: Run tests
run: |
curl -sfL https://raw.githubusercontent.com/Songmu/gotesplit/main/install.sh | sh -s

find ./dist -name 'tracetest' -exec cp {} ./dist \;
chmod +x ./dist/tracetest

export TRACETEST_CLI=$PWD/dist/tracetest
export TEST_ENVIRONMENT=jaeger

cd ./testing/cli-e2etest
make test

../../bin/gotesplit -total ${{ matrix.total_splits }} -index ${{ matrix.index }} ./... -- -v -timeout 300s -p 1

# TODO: this would be a great idea but it doesn't work on GHA with docker
# it can probablly be implemented with k8s in a separated job
Expand Down
Loading