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

opentelemetry-collector/0.116.0 package update #37205

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

octo-sts[bot]
Copy link
Contributor

@octo-sts octo-sts bot commented Dec 16, 2024

@octo-sts octo-sts bot added request-version-update request for a newer version of a package automated pr P1 This label indicates our scanning found High, Medium or Low CVEs for these packages. labels Dec 16, 2024
Copy link
Contributor Author

octo-sts bot commented Dec 16, 2024

Gen AI suggestions to solve the build error:

• Detected Error: "install: can't stat './_build/otelcol': No such file or directory"

• Error Category: Build Configuration

• Failure Point: Installation step after compilation attempting to copy the built binary

• Root Cause Analysis: The builder (ocb) is not creating the output binary in the expected location (./_build/otelcol). This is likely due to a mismatch between the builder's output location and where the melange pipeline expects to find it.

• Suggested Fix:

  1. Modify the ocb command to explicitly specify the output path:
  - runs: |
      set -x
      yq eval '.replaces += ["golang.org/x/crypto => golang.org/x/crypto v0.31.0"]' builder-config.yaml -i
      mkdir -p _build
      ${{targets.destdir}}/usr/bin/ocb --config=builder-config.yaml --output=_build/otelcol

Or alternatively:

  - runs: |
      set -x
      yq eval '.replaces += ["golang.org/x/crypto => golang.org/x/crypto v0.31.0"]' builder-config.yaml -i
      ${{targets.destdir}}/usr/bin/ocb --config=builder-config.yaml
      install -Dm755 /tmp/otelcol-distribution*/otelcol "${{targets.destdir}}"/usr/bin/otelcol

• Explanation: The OpenTelemetry Collector Builder (ocb) creates its output in a temporary directory by default. By either explicitly specifying the output location or finding the binary in the temporary build directory, we ensure the installation step can locate the compiled binary.

• Additional Notes:

  • The builder uses a temporary directory pattern like /tmp/otelcol-distribution*
  • The error indicates a path resolution issue rather than a compilation failure
  • The compilation step appears to complete successfully based on the logs

• References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated pr P1 This label indicates our scanning found High, Medium or Low CVEs for these packages. request-version-update request for a newer version of a package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant