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

[CI] opentelemetry-collector-contrib builds linux/arm64 binary with wrong arm version #29542

Closed
atoulme opened this issue Nov 28, 2023 · 8 comments · Fixed by #33830
Closed
Assignees
Labels
bug Something isn't working ci-cd CI, CD, testing, build issues

Comments

@atoulme
Copy link
Contributor

atoulme commented Nov 28, 2023

Component(s)

No response

What happened?

See https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/7021964134/job/19105712226 as example.

It runs:

make GOOS=linux GOARCH=arm64 GOARM=7 otelcontribcol

It should run:

make GOOS=linux GOARCH=arm64 GOARM=8 otelcontribcol

Collector version

latest

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@atoulme atoulme added bug Something isn't working needs triage New item requiring triage labels Nov 28, 2023
@crobert-1
Copy link
Member

I believe this is coming from here. Blame shows it was updated to version 7 a few months ago here.

Can you provide more context as to why it should be 8 instead? From documentation it looks like 8 isn't a valid value, unless I'm missing something.

@crobert-1 crobert-1 added the ci-cd CI, CD, testing, build issues label Nov 28, 2023
@atoulme
Copy link
Contributor Author

atoulme commented Dec 1, 2023

it's possible it should not be set, but arm 64 bit is armv8.

@crobert-1
Copy link
Member

Good point, it looks like when GOARCH=arm64 we need to leave GOARM unset. Official source.

@crobert-1 crobert-1 removed the needs triage New item requiring triage label Dec 1, 2023
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Jan 31, 2024
@crobert-1 crobert-1 removed the Stale label Jan 31, 2024
Copy link
Contributor

github-actions bot commented Apr 1, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Apr 1, 2024
@crobert-1 crobert-1 removed the Stale label Apr 3, 2024
Copy link
Contributor

github-actions bot commented Jun 3, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Jun 3, 2024
@mx-psi mx-psi removed the Stale label Jun 3, 2024
@mowies
Copy link
Member

mowies commented Jul 1, 2024

I think this is basically almost a typo. The PR #23436 tried to add a single matrix entry to the cross-compile job, but accidentally added three:

- os: linux
- arch: arm
- arm: 7

This should have been:

- os: linux
  arch: arm
  arm: 7

I will file a PR to fix that.
If you could assign the issue to me, that would be great :)

@mowies
Copy link
Member

mowies commented Jul 1, 2024

Since this is an older issue, I'll ping @crobert-1 here :)

@mx-psi mx-psi linked a pull request Jul 1, 2024 that will close this issue
TylerHelmuth pushed a commit that referenced this issue Jul 1, 2024
**Description:** <Describe what has changed.>
This PR fixes a small issue in the `cross-compile` pipeline job.
#23436
aimed to introduce a new specific matrix configuration that built for
linux/arm with ARMv7 but accidentally built all arm jobs with ARMv7 with
some magic of YAML and GitHub actions matrix definitions 😇

**Link to tracking Issue:**
#29542

**Testing:** not sure how to test, since this is just pipeline changes

**Documentation:** no docs added

Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci-cd CI, CD, testing, build issues
Projects
None yet
4 participants