Skip to content

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Jan 11, 2024

Motivation

We've had issue with the pipeline timing out very frequently for the community tests against Pro.
It seems all test runs timing out had a leftover thread in common, spawned by the httpserver fixture.
This thread was not spawned as daemon, meaning it would prevent the interpreter from shutting down.

Changes

Temporary fix: patch the fixture to spawn the thread as daemon, so that even if it's still running, we can force its removal.

Next up

  • Investigate why this thread is still there, prevent it and remove the patch

@bentsku bentsku added the semver: patch Non-breaking changes which can be included in patch releases label Jan 11, 2024
@bentsku bentsku self-assigned this Jan 11, 2024
@coveralls
Copy link

Coverage Status

coverage: 83.91% (+0.004%) from 83.906%
when pulling 4d8adab on fix-httpserver-daemon-thread
into 1a6dec8 on master.

Copy link

LocalStack Community integration with Pro

    2 files      2 suites   1h 16m 55s ⏱️
2 579 tests 2 346 ✅ 232 💤 1 ❌
2 580 runs  2 346 ✅ 233 💤 1 ❌

For more details on these failures, see this check.

Results for commit 4d8adab.

@dominikschubert dominikschubert self-requested a review January 11, 2024 19:29
Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

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

LGTM, seems to be a sensible solution for now to at least not block the CI action after test execution finished. We'll still need to get to the bottom of why this is leaking but It's not extremely urgent, but let's open a follow-up PR that reverts this immediately after merge so we don't forget about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants