Skip to content
Merged
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
7 changes: 2 additions & 5 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,9 @@ jobs:

# Install everything else we need, and configure
sudo apt-get install -y make unzip g++ etcd-client etcd-server curl git wget

sudo service etcd stop

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD


- name: Building binaries
timeout-minutes: 30
run: |
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/unit_race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
go mod download
go install golang.org/x/tools/cmd/goimports@034e59c473362f8f2be47694d98fd3f12a1ad497 # v0.39.0

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD

- name: Run make tools
if: steps.changes.outputs.unit_tests == 'true'
run: |
Expand Down Expand Up @@ -127,23 +124,25 @@ jobs:
# testing, e.g. MySQL 5.7 vs 8.0.
export CI_DB_PLATFORM="mysql80"

make unit_test_race | tee -a output.txt | go-junit-report -set-exit-code > report.xml
JUNIT_OUTPUT=report.xml JSON_OUTPUT=report.json make unit_test_race

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.unit_tests == 'true' && github.base_ref == 'main' && !cancelled()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
show: "fail"

- name: Slowest Tests
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
echo '## Slowest Tests' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool gotestsum tool slowest --num 20 --jsonfile report.json | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
19 changes: 9 additions & 10 deletions .github/workflows/unit_race_evalengine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
go mod download
go install golang.org/x/tools/cmd/goimports@034e59c473362f8f2be47694d98fd3f12a1ad497 # v0.39.0

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD

- name: Run make tools
if: steps.changes.outputs.unit_tests == 'true'
run: |
Expand Down Expand Up @@ -127,23 +124,25 @@ jobs:
# testing, e.g. MySQL 5.7 vs 8.0.
export CI_DB_PLATFORM="mysql80"

make unit_test_race | tee -a output.txt | go-junit-report -set-exit-code > report.xml
JUNIT_OUTPUT=report.xml JSON_OUTPUT=report.json make unit_test_race

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.unit_tests == 'true' && github.base_ref == 'main' && !cancelled()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
show: "fail"

- name: Slowest Tests
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
echo '## Slowest Tests' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool gotestsum tool slowest --num 20 --jsonfile report.json | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
19 changes: 9 additions & 10 deletions .github/workflows/unit_test_evalengine_mysql57.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
go mod download
go install golang.org/x/tools/cmd/goimports@034e59c473362f8f2be47694d98fd3f12a1ad497 # v0.39.0

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD

- name: Run make tools
if: steps.changes.outputs.unit_tests == 'true'
run: |
Expand Down Expand Up @@ -127,23 +124,25 @@ jobs:
# testing, e.g. MySQL 5.7 vs 8.0.
export CI_DB_PLATFORM="mysql57"

make unit_test | tee -a output.txt | go-junit-report -set-exit-code > report.xml
JUNIT_OUTPUT=report.xml JSON_OUTPUT=report.json make unit_test

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.unit_tests == 'true' && github.base_ref == 'main' && !cancelled()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
show: "fail"

- name: Slowest Tests
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
echo '## Slowest Tests' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool gotestsum tool slowest --num 20 --jsonfile report.json | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
19 changes: 9 additions & 10 deletions .github/workflows/unit_test_evalengine_mysql80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
go mod download
go install golang.org/x/tools/cmd/goimports@034e59c473362f8f2be47694d98fd3f12a1ad497 # v0.39.0

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD

- name: Run make tools
if: steps.changes.outputs.unit_tests == 'true'
run: |
Expand Down Expand Up @@ -127,23 +124,25 @@ jobs:
# testing, e.g. MySQL 5.7 vs 8.0.
export CI_DB_PLATFORM="mysql80"

make unit_test | tee -a output.txt | go-junit-report -set-exit-code > report.xml
JUNIT_OUTPUT=report.xml JSON_OUTPUT=report.json make unit_test

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.unit_tests == 'true' && github.base_ref == 'main' && !cancelled()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
show: "fail"

- name: Slowest Tests
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
echo '## Slowest Tests' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool gotestsum tool slowest --num 20 --jsonfile report.json | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
19 changes: 9 additions & 10 deletions .github/workflows/unit_test_evalengine_mysql84.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
go mod download
go install golang.org/x/tools/cmd/goimports@034e59c473362f8f2be47694d98fd3f12a1ad497 # v0.39.0

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD

- name: Run make tools
if: steps.changes.outputs.unit_tests == 'true'
run: |
Expand Down Expand Up @@ -127,23 +124,25 @@ jobs:
# testing, e.g. MySQL 5.7 vs 8.0.
export CI_DB_PLATFORM="mysql84"

make unit_test | tee -a output.txt | go-junit-report -set-exit-code > report.xml
JUNIT_OUTPUT=report.xml JSON_OUTPUT=report.json make unit_test

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.unit_tests == 'true' && github.base_ref == 'main' && !cancelled()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
show: "fail"

- name: Slowest Tests
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
echo '## Slowest Tests' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool gotestsum tool slowest --num 20 --jsonfile report.json | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
19 changes: 9 additions & 10 deletions .github/workflows/unit_test_mysql57.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
go mod download
go install golang.org/x/tools/cmd/goimports@034e59c473362f8f2be47694d98fd3f12a1ad497 # v0.39.0

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD

- name: Run make tools
if: steps.changes.outputs.unit_tests == 'true'
run: |
Expand Down Expand Up @@ -127,23 +124,25 @@ jobs:
# testing, e.g. MySQL 5.7 vs 8.0.
export CI_DB_PLATFORM="mysql57"

make unit_test | tee -a output.txt | go-junit-report -set-exit-code > report.xml
JUNIT_OUTPUT=report.xml JSON_OUTPUT=report.json make unit_test

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.unit_tests == 'true' && github.base_ref == 'main' && !cancelled()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
show: "fail"

- name: Slowest Tests
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
echo '## Slowest Tests' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool gotestsum tool slowest --num 20 --jsonfile report.json | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
19 changes: 9 additions & 10 deletions .github/workflows/unit_test_mysql80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
go mod download
go install golang.org/x/tools/cmd/goimports@034e59c473362f8f2be47694d98fd3f12a1ad497 # v0.39.0

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD

- name: Run make tools
if: steps.changes.outputs.unit_tests == 'true'
run: |
Expand Down Expand Up @@ -127,23 +124,25 @@ jobs:
# testing, e.g. MySQL 5.7 vs 8.0.
export CI_DB_PLATFORM="mysql80"

make unit_test | tee -a output.txt | go-junit-report -set-exit-code > report.xml
JUNIT_OUTPUT=report.xml JSON_OUTPUT=report.json make unit_test

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.unit_tests == 'true' && github.base_ref == 'main' && !cancelled()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
show: "fail"

- name: Slowest Tests
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
echo '## Slowest Tests' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool gotestsum tool slowest --num 20 --jsonfile report.json | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
19 changes: 9 additions & 10 deletions .github/workflows/unit_test_mysql84.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
go mod download
go install golang.org/x/tools/cmd/goimports@034e59c473362f8f2be47694d98fd3f12a1ad497 # v0.39.0

# install JUnit report formatter
go install github.com/vitessio/go-junit-report@99fa7f0daf16db969f54a49139a14471e633e6e8 # HEAD

- name: Run make tools
if: steps.changes.outputs.unit_tests == 'true'
run: |
Expand Down Expand Up @@ -127,23 +124,25 @@ jobs:
# testing, e.g. MySQL 5.7 vs 8.0.
export CI_DB_PLATFORM="mysql84"

make unit_test | tee -a output.txt | go-junit-report -set-exit-code > report.xml
JUNIT_OUTPUT=report.xml JSON_OUTPUT=report.json make unit_test

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.unit_tests == 'true' && github.base_ref == 'main' && !cancelled()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
show: "fail"

- name: Slowest Tests
if: steps.changes.outputs.unit_tests == 'true' && !cancelled()
run: |
echo '## Slowest Tests' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool gotestsum tool slowest --num 20 --jsonfile report.json | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,12 @@ require (
github.com/DataDog/go-runtime-metrics-internal v0.0.4-0.20250721125240-fdf1ef85b633 // indirect
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.29.1 // indirect
github.com/Masterminds/semver/v3 v3.4.0 // indirect
github.com/bitfield/gotestdox v0.2.2 // indirect
github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575 // indirect
github.com/cilium/ebpf v0.19.0 // indirect
github.com/clipperhouse/uax29/v2 v2.2.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/dnephin/pflag v1.0.7 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/google/btree v1.1.3 // indirect
Expand All @@ -150,6 +152,7 @@ require (
go.opentelemetry.io/otel/log v0.14.0 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
gotest.tools/gotestsum v1.13.0 // indirect
k8s.io/apimachinery v0.33.4 // indirect
)

Expand Down Expand Up @@ -269,3 +272,5 @@ require (
)

exclude github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.33.0

tool gotest.tools/gotestsum
Loading
Loading