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] Fix device race in golang tests #612

Merged
merged 7 commits into from
Sep 20, 2024
Merged

Conversation

jeremyfelder
Copy link
Collaborator

Describe the changes

This PR updates golang tests to include a suite that allows us to wrap each test in a function that will handle calling runtime.SetDevice

Copy link
Contributor

@nonam3e nonam3e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix 💪
LGTM but bn254 golang test failed 😢

@jeremyfelder
Copy link
Collaborator Author

jeremyfelder commented Sep 16, 2024

Nice fix 💪 LGTM but bn254 golang test failed 😢

Not sure why that failed. From the values of the failure it looks like the functions didn't run and just returned the default values. Everything passes locally (on multiple machines) consistently.

I added a proper exit code for the tests so this would be easier to catch in the future

@jeremyfelder jeremyfelder force-pushed the fix/golang-ci-device-race branch from f674f14 to b58af44 Compare September 17, 2024 11:19
@jeremyfelder jeremyfelder force-pushed the fix/golang-ci-device-race branch from 8ae6328 to 8a004d3 Compare September 19, 2024 11:49
@jeremyfelder jeremyfelder merged commit 9086ff1 into main Sep 20, 2024
28 checks passed
@jeremyfelder jeremyfelder deleted the fix/golang-ci-device-race branch September 20, 2024 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants