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

#373 Follow-up #375

Merged
merged 2 commits into from
Jan 5, 2023
Merged

#373 Follow-up #375

merged 2 commits into from
Jan 5, 2023

Conversation

fuweid
Copy link
Member

@fuweid fuweid commented Jan 5, 2023

  • Add deprecated comment for the TxStats fields
  • Add more unit test matrix in CI
  • Use GOGC to limit high resource usage and prevent unexpected terminating

Follow-up: #373

fuweid added 2 commits January 5, 2023 10:31
Signed-off-by: Wei Fu <fuweid89@gmail.com>
* Remove duplicate targets in Makefile
* Use GOGC=30 to prevent high resource usage

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@fuweid
Copy link
Member Author

fuweid commented Jan 5, 2023

ping @ahrtr @ptabor It is ready to review. PTAL. Thanks!

# with GOMEMLIMIT=2048MiB if the go-version is updated to >=1.19.x.
#
# REF: https://github.com/actions/runner-images/issues/6680#issuecomment-1335778010
GOGC=30 CPU=4 ENABLE_RACE=true make test
Copy link
Member

Choose a reason for hiding this comment

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

It will run race mode for freelist-array as well? I recall that you mentioned running race mode for freelist-array will fail with high possibility? can you clarify this?

Copy link
Member Author

Choose a reason for hiding this comment

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

It will run race mode for freelist-array as well?

Yes. make test will run cases for both hashmap and freelist.

I recall that you mentioned running race mode for freelist-array will fail with high possibility?

Yes. It happened yesterday (I run the CI in my forked repo action https://github.com/fuweid/bbolt/actions).
But in this morning, it failed random.... ( So I try to use GOGC env to limit the usage and run it 7 times successfully.
Hopefully it is not flaky in the future.

Copy link
Member

Choose a reason for hiding this comment

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

OK, thx for the clarification.

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

thx @fuweid

@ahrtr ahrtr merged commit ff5cb3f into etcd-io:master Jan 5, 2023
@fuweid fuweid deleted the 213-follow-up branch January 5, 2023 08:57
@fuweid
Copy link
Member Author

fuweid commented Jan 5, 2023

Thanks! @ahrtr @ptabor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants