Skip to content

Restrict tiledb-py version to avoid CI failures - #9569

Merged
jrbourbeau merged 4 commits into
dask:mainfrom
jrbourbeau:test-ci-23
Oct 13, 2022
Merged

jrbourbeau merged 4 commits into
dask:mainfrom
jrbourbeau:test-ci-23

Conversation

@jrbourbeau

Copy link
Copy Markdown
Member

I'm seeing some failures in other PRs I think is unrelated to the changes in those PRs. Let's see if they also pop up on main + an empty commit

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So we were consistently encountering some seg faults in our doctest and Python 3.10 linux builds. For example, in this CI build we see:

Fatal Python error: Segmentation fault

Current thread 0x00007f823c42a740 (most recent call first):
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/multiprocessing/popen_fork.py", line 66 in _launch
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/home/runner/work/dask/dask/dask/diagnostics/profile.py", line 160 in _start_collect
  File "/home/runner/work/dask/dask/dask/diagnostics/profile.py", line 171 in __enter__
  File "<doctest dask.diagnostics.profile.ResourceProfiler[3]>", line 1 in <module>
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/doctest.py", line 1334 in __run
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/doctest.py", line 1481 in run
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/doctest.py", line 1842 in run
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/doctest.py", line 294 in runtest
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/runner.py", line 166 in pytest_runtest_call
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/runner.py", line 259 in <lambda>
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/runner.py", line 338 in from_call
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/runner.py", line 258 in call_runtest_hook
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/runner.py", line 219 in call_and_report
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/runner.py", line 130 in runtestprotocol
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/runner.py", line 111 in pytest_runtest_protocol
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/main.py", line 347 in pytest_runtestloop
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/main.py", line 322 in _main
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/main.py", line 268 in wrap_session
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/main.py", line 315 in pytest_cmdline_main
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/config/__init__.py", line 164 in main
  File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/_pytest/config/__init__.py", line 187 in console_main
  File "/usr/share/miniconda3/envs/test-environment/bin/pytest", line 11 in <module>
Error: The operation was canceled.

I wasn't able to make much sense of that traceback, so I compared the conda packages installed in a "bad" doctest build with the seg fault and a recent "good" build which passes and got the following diff

62c62
<   - cryptography=38.0.1=py39hd97740a_0
---
>   - cryptography=38.0.2=py39hd97740a_0
294c294
<   - tifffile=2022.8.12=pyhd8ed1ab_0
---
>   - tifffile=2022.10.10=pyhd8ed1ab_0
296c296
<   - tiledb-py=0.17.4=py39hc25295c_1
---
>   - tiledb-py=0.17.5=py39hc25295c_0
305c305
<   - tzdata=2022d=h191b570_0
---
>   - tzdata=2022e=h191b570_0
341c341
<     - distributed==2022.9.2+20.g37fd8b50
\ No newline at end of file
---
>     - distributed==2022.9.2+21.g470f42c4
\ No newline at end of file

This helped narrow things down to a handful of packages, though none of these packages stuck out as clearly linked to the failing tests. I tried pinning tiledb-py to the last known "good" version and now CI is passing 🤷

cc @ihnorton in case you've seen anything remotely similar to this over in tiledb-py
cc @jakirkham in case you've seen anything remotely similar in conda-forge generally -- it's not clear to me whether or not this is a tiledb-py thing, or a packaging thing

@jrbourbeau jrbourbeau changed the title Test CI Restrict tiledb-py version to avoid CI failures Oct 13, 2022
@jrbourbeau jrbourbeau self-assigned this Oct 13, 2022
@ihnorton

ihnorton commented Oct 13, 2022 •

Copy link
Copy Markdown
Contributor

Hi @jrbourbeau, thanks for the ping - this doesn't sound familiar, but I can reproduce it locally (including the resolution by pinning tiledb-py 0.17.4). Digging in now...

@jrbourbeau

Copy link
Copy Markdown
Member Author

Great, thanks @ihnorton for investigating. I'm going to merge this PR as a temporary workaround to get CI passing again for the time being 👍

@jrbourbeau
jrbourbeau merged commit 3952693 into dask:main Oct 13, 2022
@jrbourbeau
jrbourbeau deleted the test-ci-23 branch October 13, 2022 15:04
@charlesbluca charlesbluca mentioned this pull request Dec 1, 2022
graingert added a commit to graingert/dask that referenced this pull request Dec 7, 2022
tiledb-py 0.18 is needed for python 3.11 support, so this pin would
prevent the upgrade
see also dask#9569
graingert added a commit to graingert/dask that referenced this pull request Dec 7, 2022
tiledb-py 0.18 is needed for python 3.11 support, so this pin would
prevent the upgrade
see also dask#9569
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