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

Expand weary (debugging) info #46757

Merged
merged 3 commits into from
Jan 16, 2021

Conversation

actual-nh
Copy link
Contributor

Summary

SUMMARY: Infrastructure "Expand weary-related debugging info"

Purpose of change

Intermittent errors in weary tests (see #46256) are hard to debug without more information. While this information has been expanded in #46473, this does not give enough examples, nor is it able to tell what in "normal" builds is causing intermittent weary test problems.

Describe the solution

debug_weary_info gives more information, including statistics used to determine weary_threshold, and is called more places during testing. During activity tests, weariness level change tracking now also tracks the actual weariness level and weary_threshold.

Describe alternatives you've considered

Altering the Github and/or Travis matrices used in #46473 so that they go on independently even if another compiler/etc combination fails, to increase the amount of debugging information available from that PR alone. The solution in this PR is preferable, since it will increase the amount of information available without monopolizing testing resources.

Testing

See #46473; these modifications have been in use in that PR.

actual-nh and others added 3 commits January 14, 2021 22:18
Expand debug_weary_info (in character.cpp) to give enough information to reconstruct reasons for weary_threshold variations.

(cherry picked from commit e559d90)
Realized that weariness being above 0 at the start could cause the level fluctuations.

(cherry picked from commit 686c1f3)
Intermittent errors in weary tests (see CleverRaven#46256) are hard to debug
without more information. While this information has been expanded
in CleverRaven#46473, this does not give enough examples, nor is it able to
tell what in "normal" builds is causing intermittent weary test
problems.
@actual-nh actual-nh changed the title Expand weary info Expand weary (debugging) info Jan 15, 2021
@BrettDong BrettDong added [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. labels Jan 15, 2021
@ZhilkinSerg ZhilkinSerg merged commit 1582f28 into CleverRaven:master Jan 16, 2021
@actual-nh actual-nh deleted the expand_weary_info branch January 16, 2021 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants