CleanEveryN hook sometimes leaves the fixture in a bad state

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Correctness
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Original slack thread: https://mongodb.slack.com/archives/C0V79S1PY/p1738005463796689

       

      The following code runs in CleanEveryN https://github.com/10gen/mongo/blob/8b9389489d909a4dfa6bea64a7e8109782542e6f/buildscripts/resmokelib/testing/hooks/cleanup.py#L86-L90

       

      If an error occurs during fixture.teardown than it is possible the fixture never gets setup after. We should do two things.

      1. Ensure fixure.teardown sends every fixture process a SIGTERM (and the processes eventually exit) before raising an error or returning false.
      2. Make CleanEveryN try to setup the fixture even if teardown/the hook fails.

            Assignee:
            Unassigned
            Reporter:
            Trevor Guidry
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: