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

Add -gcflags=all=-l flag to the unit test execution #1124

Open
gurkanguray opened this issue Aug 28, 2024 · 0 comments
Open

Add -gcflags=all=-l flag to the unit test execution #1124

gurkanguray opened this issue Aug 28, 2024 · 0 comments

Comments

@gurkanguray
Copy link
Contributor

Describe the bug
Since monkey patching is used for some unit tests, we need to be aware of the note that the gomonkey library put on their readme file, which is about running unit tests with the -gcflags=all=-l flag. It's because "gomonkey fails to patch a function or a member method if inlining is enabled"

To Reproduce
Steps to reproduce the behavior:

  1. Running tests for arm64 machines may cause the issue.
  2. Filesystem-related operations in the unit tests mostly fail because of a sigbus error for arm64 machines.

Expected behavior
Consistent test results for all supported architectures.

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

No branches or pull requests

1 participant