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

[flaky test][arm builds] CI/CD failing during arm builds intermittently #32286

Closed
crobert-1 opened this issue Apr 9, 2024 · 2 comments · Fixed by #32288
Closed

[flaky test][arm builds] CI/CD failing during arm builds intermittently #32286

crobert-1 opened this issue Apr 9, 2024 · 2 comments · Fixed by #32288
Labels
ci-cd CI, CD, testing, build issues flaky test a test is flaky needs triage New item requiring triage

Comments

@crobert-1
Copy link
Member

Component(s)

No response

Describe the issue you're reporting

Failure link

Run actions/setup-go@v5
  with:
    go-version: 1.[2](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/8622302341/job/23633699812?pr=32221#step:6:2)2.0
    cache: false
    check-latest: false
    token: ***
  env:
    TEST_RESULTS: testbed/tests/results/junit/results.xml
    SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
    PATH: /home/runner/.arkade/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/home/runner/go/bin:/home/runner/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Setup go version spec 1.22.0
Attempting to download 1.22.0...
matching 1.22.0...
Not found in manifest.  Falling back to download directly from Go
Error: Request timeout: /dl/?mode=json&include=all
@crobert-1 crobert-1 added needs triage New item requiring triage flaky test a test is flaky ci-cd CI, CD, testing, build issues labels Apr 9, 2024
@crobert-1
Copy link
Member Author

It looks like a potential fix may be to upgrade to use 1.22.2 for CI/CD, as the go-version manifest includes ARM based builds for Linux, Darwin, and Windows. 1.22.0 only has an ARM build for Darwin.

@crobert-1
Copy link
Member Author

crobert-1 commented Apr 9, 2024

If my understanding is correct, I would expect this to fail everytime instead of being flaky, so this may not resolve it. I've opened a draft PR to see if that fixes it.

codeboten pushed a commit that referenced this issue Apr 10, 2024
Version 1.22.0 of golang only has a darwin OS build of arm architecture
available from `actions/setup-go` and `actions/go-versions`, so
hopefully upgrading to use 1.22.2 will help tests pass.

Fixes #32286

**Testing:** 
None yet, but hopefully from this CI/CD run of
`build-and-test/unittest-matrix` we can confirm if the updated go
version resolves this issue for arm testing.

Run shows `1.22.2` got picked up successfully:
```
Setup go version spec 1.22.2
...
Attempting to download 1.22.2...
...
matching 1.22.2...
Acquiring 1.22.2 from https://github.com/actions/go-versions/releases/download/1.22.2-8[54](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/8622703577/job/23634936527?pr=32288#step:6:55)8848001/go-1.22.2-linux-arm64.tar.gz
...
Extracting Go...
```
rimitchell pushed a commit to rimitchell/opentelemetry-collector-contrib that referenced this issue May 8, 2024
…telemetry#32288)

Version 1.22.0 of golang only has a darwin OS build of arm architecture
available from `actions/setup-go` and `actions/go-versions`, so
hopefully upgrading to use 1.22.2 will help tests pass.

Fixes open-telemetry#32286

**Testing:** 
None yet, but hopefully from this CI/CD run of
`build-and-test/unittest-matrix` we can confirm if the updated go
version resolves this issue for arm testing.

Run shows `1.22.2` got picked up successfully:
```
Setup go version spec 1.22.2
...
Attempting to download 1.22.2...
...
matching 1.22.2...
Acquiring 1.22.2 from https://github.com/actions/go-versions/releases/download/1.22.2-8[54](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/8622703577/job/23634936527?pr=32288#step:6:55)8848001/go-1.22.2-linux-arm64.tar.gz
...
Extracting Go...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cd CI, CD, testing, build issues flaky test a test is flaky needs triage New item requiring triage
Projects
None yet
1 participant