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

src/sage/parallel/map_reduce.py: fixup start_workers() test case #38873

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

orlitzky
Copy link
Contributor

In commit a181883 I made this test wait a bit longer (to be more robust under load) and added a "long time" to the corresponding start_workers() line. But, further down, there's another test that calls finish(), which needs the workers to be started. Without a "long time" on the finish(), it can fail sans --long.

To fix it, we combine the two tests that call start_workers() and finish(), and then mark the whole thing "long time". The finish() is supposed to delete the workers created in setup_workers() as well, so there's not much point in trying to make the "long time" more fine-grained than that.

In commit a181883 I made this test wait a bit longer (to be more
robust under load) and added a "long time" to the corresponding
start_workers() line. But, further down, there's another test that
calls finish(), which needs the workers to be started.  Without a
"long time" on the finish(), it can fail sans --long.

To fix it, we combine the two tests that call start_workers() and
finish(), and then mark the whole thing "long time". The finish() is
supposed to delete the workers created in setup_workers() as well, so
there's not much point in trying to make the "long time" more
fine-grained than that.
Copy link

Documentation preview for this PR (built with commit 94949db; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@tornaria
Copy link
Contributor

Lgtm, I will test later.

@tobiasdiez
Copy link
Contributor

Let's mark it as CI fix so that it gets applied to the other PRs (where the meson workflow fails due to this problem).

@tobiasdiez tobiasdiez added the p: CI Fix merged before running CI tests label Oct 29, 2024
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 2, 2024
…s() test case

    
In commit a181883 I made this test wait a bit longer (to be more robust
under load) and added a "long time" to the corresponding start_workers()
line. But, further down, there's another test that calls finish(), which
needs the workers to be started.  Without a "long time" on the finish(),
it can fail sans --long.

To fix it, we combine the two tests that call start_workers() and
finish(), and then mark the whole thing "long time". The finish() is
supposed to delete the workers created in setup_workers() as well, so
there's not much point in trying to make the "long time" more fine-
grained than that.
    
URL: sagemath#38873
Reported by: Michael Orlitzky
Reviewer(s):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: CI Fix merged before running CI tests s: positive review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants