Skip to content

Conversation

@reivilibre
Copy link
Contributor

Part of: #18537

Works around: twisted/twisted#12482

  1. Silence SQL logs during ProfileTestCase.test_set_custom_field_profile_too_long
    Works around: trial -j<N> fails with twisted.protocols.amp.TooLong when the application under test emits large log lines twisted/twisted#12482
    (amp.TooLong error)

@reivilibre reivilibre force-pushed the rei/trial_profile_too_long branch from cbd5cf3 to f0e934e Compare July 25, 2025 13:55
@reivilibre reivilibre changed the title Work around twisted.protocols.amp.TooLong error by disabling SQL logging in ProfileTestCase.test_set_custom_field_profile_too_long test. Work around twisted.protocols.amp.TooLong error by reducing logging in some tests. Jul 25, 2025
@reivilibre reivilibre marked this pull request as ready for review July 25, 2025 14:00
@reivilibre reivilibre requested a review from a team as a code owner July 25, 2025 14:00
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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# 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

Comment on lines 103 to 104
# A huge RDATA log line is triggered in this test, which breaks trial
# ref: https://github.com/twisted/twisted/issues/12482
Copy link
Contributor

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.

Suggested change
# 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)

Copy link
Contributor Author

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

Copy link
Contributor Author

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)

@reivilibre reivilibre enabled auto-merge (squash) July 30, 2025 11:39
@reivilibre reivilibre merged commit ea87853 into develop Jul 30, 2025
38 checks passed
@reivilibre reivilibre deleted the rei/trial_profile_too_long branch July 30, 2025 12:03
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.

3 participants