This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new d58f83f3131 GH-55679: [CI] Use ubuntu 24.04 for debian i386 jobs and 
force double comparison (#55675)
d58f83f3131 is described below

commit d58f83f3131cb57ede40d99ac4d0978748d1a970
Author: Raúl Cumplido <[email protected]>
AuthorDate: Fri Nov 20 12:26:59 2026 +0100

    GH-55679: [CI] Use ubuntu 24.04 for debian i386 jobs and force double 
comparison (#55675)
    
    ### Rationale for this change
    
    The debian-13 i386 jobs are currently failing on main. It started since the 
ubuntu-latest bumped to 26.04.
    
    ### What changes are included in this PR?
    
    Use ubuntu-24.04 as base for the i386 images instead of 26.04. Also force 
`default_min_savings` comparison to be a double, there seems to be some 
comparison between double and long double otherwise which makes the test fail.
    
    ### Are these changes tested?
    
    Yes via CI.
    
    ### Are there any user-facing changes?
    
    No
    
    ### Was AI used for this PR?
    
    In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
    
    **PR code and description written by:**
    
    - [x] Human
    - [x] AI
    
    **Reviewed before submission by:**
    
    - [x] Human
    - [ ] AI
    - [ ] Not reviewed
    
    * GitHub Issue: #55679
    
    Authored-by: Raúl Cumplido <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 dev/tasks/docker-tests/github.linux.yml | 2 +-
 dev/tasks/tasks.yml                     | 6 ++++++
 python/pyarrow/_parquet.pyx             | 3 ++-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dev/tasks/docker-tests/github.linux.yml 
b/dev/tasks/docker-tests/github.linux.yml
index afb0e1569ee..e424d2a0193 100644
--- a/dev/tasks/docker-tests/github.linux.yml
+++ b/dev/tasks/docker-tests/github.linux.yml
@@ -28,7 +28,7 @@ jobs:
   test:
     name: |
       Docker Test {{ flags|default("") }} {{ image }} {{ command|default("") }}
-    runs-on: ubuntu-latest
+    runs-on: {{ runs_on|default("ubuntu-latest") }}
 {{ macros.github_set_env(env) }}
     timeout-minutes: {{ timeout|default(60) }}
     steps:
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index a5f25ccec7b..fc9b66ab384 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -408,6 +408,9 @@ tasks:
         DEBIAN: "{{ debian_version }}"
       flags: "-e ARROW_AZURE=OFF -e ARROW_S3=OFF -e ARROW_GANDIVA=OFF"
       image: debian-cpp
+      # This can be unpinned to use latest once the following issue is solved:
+      # https://github.com/actions/runner-images/issues/14790
+      runs_on: ubuntu-24.04
 {% endfor %}
 
   test-debian-experimental-cpp-gcc-15:
@@ -526,6 +529,9 @@ tasks:
         DEBIAN: "{{ debian_version }}"
       flags: "-e ARROW_S3=OFF -e ARROW_GANDIVA=OFF"
       image: debian-python
+      # This can be unpinned to use latest once the following issue is solved:
+      # https://github.com/actions/runner-images/issues/14790
+      runs_on: ubuntu-24.04
 {% endfor %}
 
   test-ubuntu-24.04-python-3:
diff --git a/python/pyarrow/_parquet.pyx b/python/pyarrow/_parquet.pyx
index 848e28eef98..2e56c608d91 100644
--- a/python/pyarrow/_parquet.pyx
+++ b/python/pyarrow/_parquet.pyx
@@ -2086,11 +2086,12 @@ cdef shared_ptr[WriterProperties] 
_create_writer_properties(
         WriterProperties.Builder props
         CdcOptions cdc_options
         double savings
+        double default_min_savings = 0.01
 
     savings = min_compression_savings
     if not (0.0 <= savings <= 1.0):
         raise ValueError("min_compression_savings must be in range [0, 1]")
-    if savings > 0.01 and data_page_version == "1.0":
+    if savings > default_min_savings and data_page_version == "1.0":
         raise ValueError("min_compression_savings requires V2 data pages")
     props.min_compression_savings(savings)
 

Reply via email to