Skip to content

Commit cb100b2

Browse files
authored
GH-48594: [C++][FlightRPC] Fix ODBC CI Long Build Time Issue (#48595)
### Rationale for this change #48594 ### What changes are included in this PR? - Resolve caching issue inside ODBC CI, so build time is generally less than 1hr - Removed environment variables that are not necessary for ODBC building to keep workflow simple - Changed ODBC workflow to be triggered when ODBC files are changed - Add `CI: Extra: C++` label when ODBC files pr C++ Extra workflow is changed ### Are these changes tested? - Tested in CI ### Are there any user-facing changes? N/A * GitHub Issue: #48594 Authored-by: Alina (Xi) Li <alina.li@improving.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent 4e4026c commit cb100b2

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/cpp_extra.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ jobs:
343343
contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra') ||
344344
contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra: C++')
345345
timeout-minutes: 240
346+
permissions:
347+
packages: write
346348
env:
347349
ARROW_BUILD_SHARED: ON
348350
ARROW_BUILD_STATIC: OFF
@@ -351,10 +353,10 @@ jobs:
351353
ARROW_DEPENDENCY_SOURCE: VCPKG
352354
ARROW_FLIGHT_SQL_ODBC: ON
353355
ARROW_FLIGHT_SQL_ODBC_INSTALLER: ON
354-
ARROW_SIMD_LEVEL: AVX2
356+
ARROW_HOME: /usr
355357
CMAKE_GENERATOR: Ninja
356358
CMAKE_INSTALL_PREFIX: /usr
357-
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
359+
VCPKG_BINARY_SOURCES: 'clear;nugettimeout,600;nuget,GitHub,readwrite'
358360
VCPKG_DEFAULT_TRIPLET: x64-windows
359361
steps:
360362
- name: Disable Crash Dialogs
@@ -373,10 +375,6 @@ jobs:
373375
- name: Download Timezone Database
374376
shell: bash
375377
run: ci/scripts/download_tz_database.sh
376-
- name: Install cmake
377-
shell: bash
378-
run: |
379-
ci/scripts/install_cmake.sh 4.1.2 /usr
380378
- name: Install ccache
381379
shell: bash
382380
run: |

.github/workflows/dev_pr/labeler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@
7373
- any-glob-to-any-file:
7474
- docs/**/*
7575
- "**/*.{md, rst, Rmd, Rd}"
76+
77+
"CI: Extra: C++":
78+
- changed-files:
79+
- any-glob-to-any-file:
80+
- .github/workflows/cpp_extra.yml
81+
- cpp/src/arrow/flight/sql/odbc/**/*

0 commit comments

Comments
 (0)