#4126 assigned defect

Tests time out on CircleCI, subsequent 'unclean reactor' errors

Reported by: hacklschorsch Owned by: hacklschorsch
Priority: normal Milestone: undecided
Component: unknown Version: n/a
Keywords: Cc:
Launchpad Bug:

Description (last modified by hacklschorsch)

In https://github.com/tahoe-lafs/tahoe-lafs/pull/1381#issuecomment-2476885548 meejah writes:

The unclean-reactor errors may be simply a downstream symptom of the real errors that also happen in that run (e.g. several tests time out).

My own tests suggest that indeed, raising the SystemTests? timeout make a couple of flaky tests much more stable:

Failure count Test name
1 allmydata.test.test_system.HTTPSystemTest.test_mutable_mdmf
3 allmydata.test.test_system.HTTPSystemTest.test_mutable_sdmf
30 allmydata.test.test_system.HTTPSystemTest.test_upload_and_download_convergent
11 allmydata.test.test_system.HTTPSystemTest.test_upload_and_download_random_key

This ticket is similar but not equal to ticket:4085, ticket:4022, ticket:2994 .

Change History (5)

comment:1 Changed at 2024-11-15T15:22:05Z by hacklschorsch

  • Description modified (diff)
  • Owner set to hacklschorsch

comment:2 Changed at 2024-11-15T15:22:44Z by hacklschorsch

  • Summary changed from Tests time out on CircleCI to Tests time out on CircleCI, subsequent 'unclean reactor' errors

comment:3 Changed at 2024-11-15T15:23:06Z by hacklschorsch

  • Status changed from new to assigned

comment:4 Changed at 2024-11-15T15:40:38Z by hacklschorsch

A better fix to the dirty reactors might be to clean them up - and indeed, SystemTests does some reactor-cleanup dance in tearDown(), which *should* also be called if a test fails - but it seems that does not always happen or always help.

This is called even if the test method raised an exception [...] This method will only be called if the setUp() succeeds

Also see the discussion in https://stackoverflow.com/questions/39883058/teardown-not-called-after-timeout-in-twisted-trial

Note: See TracTickets for help on using tickets.