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

Test failures on go1.20 with v4, not on v3.2.0 #391

Closed
2 of 5 tasks
dolmen opened this issue Jul 6, 2023 · 5 comments
Closed
2 of 5 tasks

Test failures on go1.20 with v4, not on v3.2.0 #391

dolmen opened this issue Jul 6, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@dolmen
Copy link

dolmen commented Jul 6, 2023

Description:

I'm a co-maintainer of Go module github.com/stretchr/testify, a major module in the Go ecosystem. I'm trying to migrate actions/setup-go from v3.2.0 to v4.

However, on v4 we get test failures with go1.20 which do not appear with setup-go v3.20.
See stretchr/testify#1408

I know that testify testing has concurrency issues (go test -race -count=100 reports failures on go1.20 on my machine), but I don't see how the changes mentioned in the changelog of setup-go (enable module cache) would affect us.

What changes appeared in v4 that could trigger this?

Note that testify is well known for having a circular dependency issue (for which I think I have a fix). Maybe that's related.

Action version:
Specify the action version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
go1.20

Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.

stretchr/testify#1408

Expected behavior:
Same test success/failure than with actions/setup-go v3.2.0

Actual behavior:
Tests failures.

@dolmen dolmen added bug Something isn't working needs triage labels Jul 6, 2023
@dolmen
Copy link
Author

dolmen commented Jul 6, 2023

Cc: @SuperQ

@dusan-trickovic
Copy link
Contributor

Hello, @dolmen ! Thank you for creating this issue, we will investigate it and see what can be done :)

@dmitry-shibanov
Copy link
Contributor

Hello @dolmen. Could you please attach the link to the failed build? If it fails could you please try to disable cache: false for actions/setup-gov4

@dmitry-shibanov dmitry-shibanov self-assigned this Jul 11, 2023
@SuperQ
Copy link

SuperQ commented Jul 11, 2023

I think we already found the source of the issues, the test is flaky due to Go timer race. We have a proposed fix on our side in progress.

stretchr/testify#1412

As to why the new version of the action triggers this race more often, I have no idea. :)

@dmitry-shibanov
Copy link
Contributor

Hello @SuperQ. Thank you for your response. In this case I'm going to close the issue. If you have any concerns feel free to ping us.

@dmitry-shibanov dmitry-shibanov closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants