Skip to content

Commit 71ce97e

Browse files
[chore] Fixing Prom Compliance tests (#35071)
**Description:** Ensuring prom tests directory is created.
1 parent bd66ceb commit 71ce97e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/prometheus-compliance-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ jobs:
5353
- name: Copy binary to compliance directory
5454
# The required name of the downloaded artifact is `otelcol_0.42.0_linux_amd64`, so we place the collector contrib artifact under the same name in the bin folder to run.
5555
# Source: https://github.com/prometheus/compliance/blob/12cbdf92abf7737531871ab7620a2de965fc5382/remote_write_sender/targets/otel.go#L8
56-
run: mkdir compliance/remote_write_sender/bin && cp opentelemetry-collector-contrib/bin/otelcontribcol_linux_amd64 compliance/remote_write_sender/bin/otelcol_0.42.0_linux_amd64
56+
run: mkdir compliance/remotewrite/sender/bin && cp opentelemetry-collector-contrib/bin/otelcontribcol_linux_amd64 compliance/remotewrite/sender/bin/otelcol_0.42.0_linux_amd64
57+
- name: clean up mod file
58+
run: go mod tidy
59+
working-directory: compliance/remotewrite/sender
5760
- name: Run compliance tests
58-
run: go test -v --tags=compliance -run "TestRemoteWrite/otel/.+" ./ |& tee ./test-report.txt
59-
working-directory: compliance/remote_write_sender
61+
run: |
62+
set -o pipefail && \
63+
go test -v --tags=compliance -run "TestRemoteWrite/otel/.+" ./ |& tee ./test-report.txt
64+
working-directory: compliance/remotewrite/sender

0 commit comments

Comments
 (0)