-
Couldn't load subscription status.
- Fork 405
Work around twisted.protocols.amp.TooLong error by reducing logging in some tests.
#18736
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
Conversation
…_too_long Works around: twisted/twisted#12482 (amp.TooLong error)
Signed-off-by: Olivier 'reivilibre <[email protected]>
cbd5cf3 to
f0e934e
Compare
twisted.protocols.amp.TooLong error by disabling SQL logging in ProfileTestCase.test_set_custom_field_profile_too_long test.twisted.protocols.amp.TooLong error by reducing logging in some tests.
| for i in range(100): | ||
| typing._push_update( | ||
| member=RoomMember(ROOM_ID, "@test%s:blue" % i), typing=True | ||
| # A huge RDATA log line is triggered in this test, which breaks trial |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # A huge RDATA log line is triggered in this test, which breaks trial | |
| # Because we emit a huge RDATA log line and trial sometimes crashes on these, | |
| # disable that logger for this test |
| # A huge RDATA log line is triggered in this test, which breaks trial | ||
| # ref: https://github.com/twisted/twisted/issues/12482 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternative to actually call this out as a FIXME.
| # A huge RDATA log line is triggered in this test, which breaks trial | |
| # ref: https://github.com/twisted/twisted/issues/12482 | |
| # FIXME: Because we emit a huge RDATA log line and trial sometimes crashes on | |
| # these, disable that logger for this test. This can be removed once | |
| # https://github.com/twisted/twisted/issues/12482 is solved and we update | |
| # Twisted to version that includes the fix. |
(applies to other spot as well)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
annoyingly, given the olddeps trial run, we actually can't remove this for several years even if we fix Trial :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(guess I should add that caveat to the comment though)
Part of: #18537
Works around: twisted/twisted#12482
Silence SQL logs during ProfileTestCase.test_set_custom_field_profile_too_long
Works around:
trial -j<N>fails withtwisted.protocols.amp.TooLongwhen the application under test emits large log lines twisted/twisted#12482(amp.TooLong error)