Skip to content

CI: pin libprotobuf to allow nightly pyarrow in the upstream CI build - #9465

Merged
jrbourbeau merged 5 commits into
dask:mainfrom
jorisvandenbossche:upstream-nightly-arrow
Sep 6, 2022
Merged

jrbourbeau merged 5 commits into
dask:mainfrom
jorisvandenbossche:upstream-nightly-arrow

Conversation

@jorisvandenbossche

Copy link
Copy Markdown
Member

See #9449, #9452

@jorisvandenbossche

Copy link
Copy Markdown
Member Author

So this seems to be working to set up the build, just a lot of actual test failures now :)

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for working on this @jorisvandenbossche!

Is there an upstream issue in pyarrow somewhere that we can track? It'd be good to know when we can remove this pin

@jorisvandenbossche

Copy link
Copy Markdown
Member Author

I think the failures are mostly related to three changes in pandas:

@jorisvandenbossche

Copy link
Copy Markdown
Member Author

Is there an upstream issue in pyarrow somewhere that we can track? It'd be good to know when we can remove this pin

I am not fully sure if we have a JIRA about this, will check. There is conda-forge/arrow-cpp-feedstock#815 that might be related upstream in conda-forge, but so those nightly packages are built in Arrow itself, so we might need to update our local recipe / conda build.

@ncclementi

Copy link
Copy Markdown
Member

@jorisvandenbossche Yes, you are right, the failures are related to mainly upstream pandas compatibility. We will be working on that. But those are out of the scope of this PR.

I'd be happy to merge this as is, unless @jrbourbeau you have any comments.

@jorisvandenbossche

Copy link
Copy Markdown
Member Author

Yes, certainly, I wasn't planning on tackling them here. I just wanted to give some context for the failures (as I am involved in some of those changes in pandas)

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@jorisvandenbossche would you mind moving the libprotobuf pin to where we install the pyarrow nightly build in the upstream build? That way the libprotobuf pin is colocated with the relevant section of code and the pin only happens in the upstream build where it's (temporarily) needed. Other than that this looks good to go.

I think the failures are mostly related to three changes in pandas:

Thank you for the nice summary and pointing to corresponding upstream threads @jorisvandenbossche -- that's useful

@jorisvandenbossche

jorisvandenbossche commented Sep 6, 2022 •

Copy link
Copy Markdown
Member Author

@jrbourbeau that would indeed be cleaner. I already pushed it, however from testing locally, this will probably fail. The problem is that if the environment is first created with a newer abseil-cpp (which now depends on libabseil with an exact pin), doing a mamba install abseil-cpp= .. with an older version fails, because libabseil is pinned with it, and we can't remove libabseil first, as that would remove a whole lot of packages ...

@jrbourbeau

Copy link
Copy Markdown
Member

Ah, I see -- thanks for the additional context. Well in that case, if the current state of this PR works (not expected) then we can merge this in. If not, then let's go back to what was here before and then merge that.

On a possibly related note, we've started seeing pyarrow related failures on main on our macOS Python 3.9 build. See, for example, this build. We're getting strange linking errors like

 E   ImportError: dlopen(/Users/runner/miniconda3/envs/test-environment/lib/python3.9/site-packages/pyarrow/lib.cpython-39-darwin.so, 2): Library not loaded: @rpath/libprotobuf.31.dylib
E     Referenced from: /Users/runner/miniconda3/envs/test-environment/lib/liborc.dylib
E     Reason: Incompatible library version: liborc.dylib requires version 32.0.0 or later, but libprotobuf.31.dylib provides version 31.0.0

I say this might be related as the traceback mentions libprotobuf and libprotobuf just had a new build issued a few hours ago

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @jorisvandenbossche! I'll merge this after CI finishes

FWIW it looks like this has the unintended consequence of fixing the libprotobuf linking issue (though it's already been reported upstream in the conda-forge feedstock conda-forge/libprotobuf-feedstock#128 (comment))

@jrbourbeau
jrbourbeau merged commit 37fbef7 into dask:main Sep 6, 2022
@jorisvandenbossche
jorisvandenbossche deleted the upstream-nightly-arrow branch September 7, 2022 06:49
@jorisvandenbossche

Copy link
Copy Markdown
Member Author

I suppose https://issues.apache.org/jira/browse/ARROW-17635 is relevant issue on the Arrow side to update our conda recipe (and thus nightly packages)

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.

3 participants