← Back to Pull requests

GH-55316: [CI][FlightRPC][ODBC] Apply ports.patch in Windows build #55317

Merged
amoeba merged 1 files (34 lines) on Oct 30, 2026 07:14 UTC
View on GitHub
amoeba amoeba commented on Oct 29, 2026 16:30 UTC
Author

Rationale for this change

The ODBC Windows build uses a composite action that bootstraps vcpkg in a way that doesn't pick up ports.patch (or the pinned vcpkg version). This set up a scenario where https://github.com/apache/arrow/pull/55167 broke the build and the ODBC upload step failed during the 26.0.0.1 release process.

As an aside, this didn't get caught by CI because the ODBC Windows job only runs on a daily schedule or at release time and https://github.com/apache/arrow/pull/55167 hadn't been on main for long enough. This is something to keep an eye out and possibly improve in the future.

What changes are included in this PR?

Replace the way the job bootstraps vcpkg so it uses the normal ci/scripts/install.sh and directly overlays the port patches.

Are these changes tested?

Yes, in CI.

Are there any user-facing changes?

No.

Was AI used for this PR?

In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

PR code and description written by:

  • [X] Human

  • AI
  • Reviewed before submission by:

  • [X] Human

  • [X] AI

  • Not reviewed
  • GitHub Issue: #55316
  • Diff: 34 lines (+19 / -15) across 1 files Reviewer: kou Review duration: 883m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.24) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.24 · 34 lines diff across 1 files
    0.24
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.86 · 5 substantive comment(s)
    0.86
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    88%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.213
    Real PR Conversation Timeline
    12 items
    github-actions[bot] github-actions[bot] commented on Oct 29, 2026 16:31 UTC
    Bot

    :warning: GitHub issue #55316 has been automatically assigned in GitHub to PR creator.

    amoeba amoeba commented on Oct 29, 2026 17:22 UTC
    Author

    I think the "AMD64 Debian SIMD Level None" failure is a real issue but unrelated to this PR. Maybe related to https://github.com/apache/arrow/pull/54905.

    tadeja tadeja commented on Oct 29, 2026 19:18 UTC
    Contributor

    I think the "AMD64 Debian SIMD Level None" failure is a real issue but unrelated to this PR. Maybe related to #54905.

    Right! The scheduled C++ Extra on main started failing for AMD64 Debian SIMD Level NONE 2 days ago. All C++ Extra jobs were green 3 days ago.

    (Here's a hypothetical draft PR #55319 as exploratory static linking fix post-#54905. fyi @raulcd)

    But failing JNI ubuntu-24.04-arm arm64/v8 is new!

    alinaliBQ alinaliBQ commented on code on Oct 29, 2026 19:21 UTC
    Code Review
    .github/actions/odbc-windows/action.yml:1
    @@ -54,22 +54,26 @@ runs:
             path: ${{ steps.ccache-info.outputs.cache-dir }}
             key: cpp-odbc-ccache-windows-x64-${{ hashFiles('cpp/**') }}
             restore-keys: cpp-odbc-ccache-windows-x64-
    -    - name: Checkout vcpkg
    -      uses: actions/checkout@v6
    -      with:
    -        persist-credentials: false
    -        fetch-depth: 0
    -        path: vcpkg
    -        repository: microsoft/vcpkg
    -    - name: Bootstrap vcpkg
    -      shell: pwsh
    +    - name: Install vcpkg
    +      shell: bash

    diff --git a/.github/workflows/package_odbc.yml b/.github/workflows/package_odbc.yml
    index 121402810b..74ec031b37 100644
    --- a/.github/workflows/package_odbc.yml
    +++ b/.github/workflows/package_odbc.yml
    @@ -66,7 +66,7 @@ jobs:
           ARROW_USE_STATIC_CRT: OFF
           CMAKE_GENERATOR: Ninja
           CMAKE_INSTALL_PREFIX: /usr
    -      VCPKG_BINARY_SOURCES: 'clear;nugettimeout,600;nuget,GitHub,readwrite'
    +      VCPKG_BINARY_SOURCES: 'clear;nugettimeout,1800;nuget,GitHub,readwrite'
           VCPKG_DEFAULT_TRIPLET: x64-windows-static-md
         steps:
           - name: Checkout Arrow
      

    gRPC build can take very long to upload to nuget. To make upload of gRPC successful, I tested that the timeout increase fixed the issue.
    A run on my fork:
    https://github.com/Bit-Quill/arrow/actions/runs/40787074489/job/123162825045#step:3:6

    amoeba amoeba commented on Oct 29, 2026 20:09 UTC
    Author

    The upload job I triggered on my fork succeeded with this patch: https://github.com/amoeba/arrow/actions/runs/40915269876/job/123593711269 and the regular ODBC Windows job also succeeded: https://github.com/apache/arrow/actions/runs/40912388714/job/123586185486?pr=55317.

    amoeba amoeba commented on code on Oct 29, 2026 20:17 UTC
    Code Review
    .github/actions/odbc-windows/action.yml:1
    @@ -54,22 +54,26 @@ runs:
             path: ${{ steps.ccache-info.outputs.cache-dir }}
             key: cpp-odbc-ccache-windows-x64-${{ hashFiles('cpp/**') }}
             restore-keys: cpp-odbc-ccache-windows-x64-
    -    - name: Checkout vcpkg
    -      uses: actions/checkout@v6
    -      with:
    -        persist-credentials: false
    -        fetch-depth: 0
    -        path: vcpkg
    -        repository: microsoft/vcpkg
    -    - name: Bootstrap vcpkg
    -      shell: pwsh
    +    - name: Install vcpkg
    +      shell: bash

    Thanks for noticing that. Can you file that as a separate (MINOR) PR?

    amoeba amoeba commented on Oct 29, 2026 20:24 UTC
    Author

    @raulcd I think this proves the fix so I've marked the PR ready for review and I think you can cherry pick when you're ready.

    alinaliBQ alinaliBQ commented on code on Oct 29, 2026 22:09 UTC
    Code Review
    .github/actions/odbc-windows/action.yml:1
    @@ -54,22 +54,26 @@ runs:
             path: ${{ steps.ccache-info.outputs.cache-dir }}
             key: cpp-odbc-ccache-windows-x64-${{ hashFiles('cpp/**') }}
             restore-keys: cpp-odbc-ccache-windows-x64-
    -    - name: Checkout vcpkg
    -      uses: actions/checkout@v6
    -      with:
    -        persist-credentials: false
    -        fetch-depth: 0
    -        path: vcpkg
    -        repository: microsoft/vcpkg
    -    - name: Bootstrap vcpkg
    -      shell: pwsh
    +    - name: Install vcpkg
    +      shell: bash

    yup

    kou kou approved these changes on Oct 29, 2026 22:10 UTC
    Approved Reviewer

    +1 for 26.0.1.

    It may be better to use the same approach as our wheel builds in the ODBC build, but we can work on it as a follow-up.

    alinaliBQ alinaliBQ commented on code on Oct 29, 2026 22:42 UTC
    Code Review
    .github/actions/odbc-windows/action.yml:1
    @@ -54,22 +54,26 @@ runs:
             path: ${{ steps.ccache-info.outputs.cache-dir }}
             key: cpp-odbc-ccache-windows-x64-${{ hashFiles('cpp/**') }}
             restore-keys: cpp-odbc-ccache-windows-x64-
    -    - name: Checkout vcpkg
    -      uses: actions/checkout@v6
    -      with:
    -        persist-credentials: false
    -        fetch-depth: 0
    -        path: vcpkg
    -        repository: microsoft/vcpkg
    -    - name: Bootstrap vcpkg
    -      shell: pwsh
    +    - name: Install vcpkg
    +      shell: bash
    raulcd raulcd approved these changes on Oct 30, 2026 07:12 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    amoeba amoeba
    Labels
    risk: low confidence: 88.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 24.3% (LOW) · Higher = larger blast radius
    24.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 88.6% · Lower = rushed or shallow review
    88.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 2.8% · Safe to merge
    2.8%
    Repository