forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-43559: [Python][CI] Add a Crossbow job with a debug CPython …
…interpreter (apache#43565) ### Rationale for this change Debug builds of CPython help catch low-level errors when using the Python C API. This is illustrated in apacheGH-43487: a debug build of CPython detected that we were incref'ing a Python object without holding the GIL (which is a race condition otherwise). ### What changes are included in this PR? 1. Add a Docker build with a conda-installed debug interpreter. 2. Add a Crossbow job to run said Docker build with Python 3.12. ### Are these changes tested? Yes, by the adding Crossbow job. The job now fails with a crash in `test_udf.py`, because of apacheGH-43487. ### Are there any user-facing changes? No. * GitHub Issue: apache#43559 Authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
ARG repo | ||
ARG arch | ||
ARG python=3.8 | ||
FROM ${repo}:${arch}-conda-python-${python} | ||
|
||
# (Docker oddity: ARG needs to be repeated after FROM) | ||
ARG python=3.8 | ||
RUN mamba install -y "conda-forge/label/python_debug::python=${python}[build=*_cpython]" && \ | ||
mamba clean --all | ||
# Quick check that we do have a debug mode CPython | ||
RUN python -c "import sys; sys.gettotalrefcount()" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters