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

Experiment: try tparse instead of gotestfmt #3404

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions .github/actions/test-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,11 @@ runs:
with:
tag: v2.5.0
repo: GoTestTools/gotestfmt

- name: Install tparse
uses: jaxxstorm/[email protected]
with:
repo: mfridman/tparse
extension-matching: disable
rename-to: tparse
chmod: 0755
16 changes: 12 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ jobs:
OIDC_ARM_CLIENT_ID: ${{ inputs.oidc_arm_client_id }}
run: |
set -euo pipefail
cd examples && go test -v -json -cover -timeout 2h -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 16 . 2>&1 | tee /tmp/gotest.log | gotestfmt
cd examples && go test -v -json -cover -timeout 2h -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 16 . 2>&1 | tee /tmp/gotest.log | tparse -all -follow

- name: Run short tests
if: inputs.short_test
run: |
set -euo pipefail
cd examples && go test -v -json -cover -timeout 15m -short -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 16 . 2>&1 | tee /tmp/gotest.log | gotestfmt
cd examples && go test -v -json -cover -timeout 15m -short -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 16 . 2>&1 | tee /tmp/gotest.log | tparse -all -follow

test_examples:
needs: build_sdks
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
cd examples && \
go mod edit -replace github.com/pulumi/examples/misc/test=../p-examples/misc/test/ && \
go mod tidy && \
go test -v -json -cover -timeout 2h -tags=${{ matrix.language }} -run TestPulumiExamples -parallel 16 . 2>&1 | tee /tmp/gotest.log | gotestfmt
go test -v -json -cover -timeout 2h -tags=${{ matrix.language }} -run TestPulumiExamples -parallel 16 . 2>&1 | tee /tmp/gotest.log | tparse -all -follow

test_provider:
runs-on: ubuntu-latest
Expand All @@ -279,6 +279,14 @@ jobs:
tag: v2.5.0
repo: GoTestTools/gotestfmt

- name: Install tparse
uses: jaxxstorm/[email protected]
with:
repo: mfridman/tparse
extension-matching: disable
rename-to: tparse
chmod: 0755

- run: make ensure

- name: Prerequisites artifact restore
Expand All @@ -294,7 +302,7 @@ jobs:
- name: Test Provider Library
run: |
set -euo pipefail
cd provider && go test -v -json -coverprofile="coverage.txt" -coverpkg=./... -timeout 1h -parallel 16 ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
cd provider && go test -v -json -coverprofile="coverage.txt" -coverpkg=./... -timeout 1h -parallel 16 ./... 2>&1 | tee /tmp/gotest.log | tparse -all -follow

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down
Loading