Skip to content

Instantly share code, notes, and snippets.

@hughesjj
Created December 6, 2023 07:21
Show Gist options
  • Save hughesjj/c0d3fe334ccae646ce1a367b309a208b to your computer and use it in GitHub Desktop.
Save hughesjj/c0d3fe334ccae646ce1a367b309a208b to your computer and use it in GitHub Desktop.
otel contrib golang basic build
FROM golang:bookworm
RUN git clone https://github.com/open-telemetry/opentelemetry-collector-contrib.git
WORKDIR ./opentelemetry-collector-contrib
RUN make install-tools
RUN make # as of 2023-12-05 fails first on sigv4
RUN make integration-test # fails on jmx receiver
# How about we at least add to docs (README.md? CONTRIBUTING.md?) how to test individual recievers?
@hughesjj
Copy link
Author

hughesjj commented Dec 6, 2023

--- FAIL: TestLoadConfigError (0.00s)
config_test.go:55:
Error Trace: /home/jameshughes/workspace/otel-github/opentelemetry-collector-contrib/extension/sigv4authextension/config_test.go:55
Error: An error is expected but got nil.
Test: TestLoadConfigError

For this error, do you have valid AWS credentials in your environment when running the tests? I have seen this behavior before in some of the AWS components. The tests expect no valid credentials to exist which can lead to flaky behavior if they do.

Oh, yes, I definitely have some expired role sessions in my .aws/credentials, will try clearing that out and re-running. Thanks Bryan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment