Skip to content
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

Update pytest configuration to include the --forced-gc option #7849

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Jan 24, 2024

This PR fixes #7753 by disabling forced garbage collections for tunnel tests and for GUI tests.

There is a possibility that GUI tests may become less stable. If this happens, we should consider reinstating the ensure_gc for them. It is uncertain because ensure_gc was an experimental feature added when our test suite was quite unstable. Now that it is stable, we can gradually disable experimental features that were implemented to stabilize the test suite.

Ref:

The code changes in this commit update the pytest configuration to include a new command-line option `--forced-gc`. This option enables forced garbage collection after each test. The `ensure_gc` fixture has been modified to check if the `--forced-gc` option is enabled before triggering garbage collection. This change ensures that all destructors are called and improves test stability, especially when using Libtorrent.
@drew2a drew2a marked this pull request as ready for review January 24, 2024 07:09
@drew2a drew2a requested review from a team and kozlovsky and removed request for a team January 24, 2024 07:09
@drew2a drew2a merged commit 60d66f3 into Tribler:main Jan 24, 2024
34 checks passed
@drew2a drew2a deleted the fix/7753 branch January 24, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Frozen test: test_anon_download
2 participants