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

booktest: explicitly destroy mongodb db and client #3963

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

benlorenz
Copy link
Member

@benlorenz benlorenz commented Jul 23, 2024

Maybe this helps for #3961

Note: this PR targets: #3939

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.20%. Comparing base (a913f80) to head (545b3be).
Report is 1 commits behind head on sb/fix_bookchapter.

Additional details and impacted files
@@                  Coverage Diff                   @@
##           sb/fix_bookchapter    #3963      +/-   ##
======================================================
+ Coverage               83.71%   84.20%   +0.48%     
======================================================
  Files                     592      591       -1     
  Lines                   81572    81375     -197     
======================================================
+ Hits                    68289    68521     +232     
+ Misses                  13283    12854     -429     

see 50 files with indirect coverage changes

@benlorenz
Copy link
Member Author

benlorenz commented Jul 23, 2024

With the explicit destroy the tests went through (including vinberg2): https://github.com/oscar-system/Oscar.jl/actions/runs/10062115932/job/27813830951?pr=3963

Now trying with a less hacky way by just reassigning the variables.

The reason why this did no appear earlier is that the new tests cause the db connection to timeout which causes an issue with atexit hooks (for the global mongoc_cleanup) running before the finalizer of the connection object.

@benlorenz benlorenz marked this pull request as ready for review July 23, 2024 18:18
@benlorenz benlorenz merged commit 5f00b70 into sb/fix_bookchapter Jul 23, 2024
29 of 30 checks passed
@benlorenz benlorenz deleted the bl/booktest_polydb_destroy branch July 23, 2024 18:20
@benlorenz benlorenz mentioned this pull request Jul 23, 2024
fingolfin pushed a commit that referenced this pull request Jul 24, 2024
* fix booktests for vinberg_3.jlcon and move it to vinberg_2.jlcon

* remove vinberg from ordered_examples.json

* fix tests

* suppress printing of unstable outputs

* booktest: explicitly destroy mongodb db and client (#3963)

* booktest: explicitly destroy mongodb db and client

* booktest-polydb-cleanup: try nicer cleanup

---------

Co-authored-by: Benjamin Lorenz <[email protected]>
ooinaruhugh pushed a commit to ooinaruhugh/Oscar.jl that referenced this pull request Jul 31, 2024
* fix booktests for vinberg_3.jlcon and move it to vinberg_2.jlcon

* remove vinberg from ordered_examples.json

* fix tests

* suppress printing of unstable outputs

* booktest: explicitly destroy mongodb db and client (oscar-system#3963)

* booktest: explicitly destroy mongodb db and client

* booktest-polydb-cleanup: try nicer cleanup

---------

Co-authored-by: Benjamin Lorenz <[email protected]>
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.

1 participant