Skip to content

Improve tests that watch for subprocess logs#6461

Merged
mrocklin merged 1 commit intodask:mainfrom
gjoseph92:improve-popen-logging
May 27, 2022
Merged

Improve tests that watch for subprocess logs#6461
mrocklin merged 1 commit intodask:mainfrom
gjoseph92:improve-popen-logging

Conversation

@gjoseph92
Copy link
Copy Markdown
Collaborator

Tests like #6395 will fail (timeout) because a log statement doesn't get printed, but since you never get to see what was printed, CI failuers are hard to debug.

Adds a wait_for_log_line helper that tees the output to stdout, so you can at least see what happened.

  • Passes pre-commit run --all-files

Tests like dask#6395 will fail (timeout) because a log statement doesn't get printed, but since you never get to see what _was_ printed, CI failuers are hard to debug.

Adds a `wait_for_log_line` helper that tees the output to stdout, so you can at least see what happened.
@github-actions
Copy link
Copy Markdown
Contributor

Unit Test Results

       15 files  +       3         15 suites  +3   6h 34m 35s ⏱️ + 1h 35m 4s
  2 813 tests ±       0    2 730 ✔️ +     12    80 💤  -   14  2 +1  1 🔥 +1 
20 855 runs  +4 003  19 911 ✔️ +3 895  941 💤 +106  2 +1  1 🔥 +1 

For more details on these failures and errors, see this check.

Results for commit 65185c8. ± Comparison against base commit 0cd45ef.

@gjoseph92 gjoseph92 marked this pull request as ready for review May 27, 2022 00:33
@gjoseph92
Copy link
Copy Markdown
Collaborator Author

This doesn't fix #6395, but hopefully makes it easier to see what's going on when it fails.

cc @mrocklin

@mrocklin mrocklin merged commit 34a9409 into dask:main May 27, 2022
@mrocklin
Copy link
Copy Markdown
Member

Yup. Looks good to me. Thanks @gjoseph92

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.

2 participants