Skip to content

Apache DataFusion SQL Query Engine

ARROW-7535: [C++] Fix ASAN failures in Array::Validate()

Antoine Pitrou58bb51cf7214
diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index 1e6b5e0ec0..420c5885d0 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -58,13 +58,13 @@ jobs:
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push conda-cpp
- ubuntu:
- name: AMD64 Ubuntu ${{ matrix.ubuntu }} C++
+ ubuntu-sanitizer:
+ name: AMD64 Ubuntu ${{ matrix.ubuntu }} C++ ASAN UBSAN
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
- ubuntu: [16.04, 18.04]
+ ubuntu: [18.04]
env:
UBUNTU: ${{ matrix.ubuntu }}
steps:
@@ -74,13 +74,13 @@ jobs:
submodules: true
- name: Docker Pull
shell: bash
- run: docker-compose pull --ignore-pull-failures ubuntu-cpp
+ run: docker-compose pull --ignore-pull-failures ubuntu-cpp-sanitizer
- name: Docker Build
shell: bash
- run: docker-compose build ubuntu-cpp
+ run: docker-compose build ubuntu-cpp-sanitizer
- name: Docker Run
shell: bash
- run: docker-compose run ubuntu-cpp
+ run: docker-compose run ubuntu-cpp-sanitizer
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
continue-on-error: true
diff --git a/.github/workflows/cpp_cron.yml b/.github/workflows/cpp_cron.yml
index 58b346d2a4..c92f7ec8f5 100644
--- a/.github/workflows/cpp_cron.yml
+++ b/.github/workflows/cpp_cron.yml
@@ -95,14 +95,13 @@ jobs:
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push fedora-cpp
- ubuntu-cmake32:
- name: AMD64 Ubuntu 18.04 C++ CMake 3.2
+ ubuntu:
+ name: AMD64 Ubuntu ${{ matrix.ubuntu }} C++
runs-on: ubuntu-latest
- if: github.event_name == 'push'
strategy:
fail-fast: false
matrix:
- ubuntu: [18.04]
+ ubuntu: [16.04, 18.04]
env:
UBUNTU: ${{ matrix.ubuntu }}
steps:
@@ -112,29 +111,19 @@ jobs:
submodules: true
- name: Docker Pull
shell: bash
- run: |
- docker-compose pull --ignore-pull-failures ubuntu-cpp
- docker-compose pull --ignore-pull-failures ubuntu-cpp-cmake32
+ run: docker-compose pull --ignore-pull-failures ubuntu-cpp
- name: Docker Build
shell: bash
- run: |
- docker-compose build ubuntu-cpp
- docker-compose build ubuntu-cpp-cmake32
+ run: docker-compose build ubuntu-cpp
- name: Docker Run
shell: bash
- run: docker-compose run ubuntu-cpp-cmake32
- - name: Docker Push
- if: success() && github.repository == 'apache/arrow'
- continue-on-error: true
- shell: bash
- run: |
- docker login -u ${{ secrets.DOCKERHUB_USER }} \
- -p ${{ secrets.DOCKERHUB_TOKEN }}
- docker-compose push ubuntu-cpp-cmake32
+ run: docker-compose run ubuntu-cpp
+ # No push step, it's the same image as ubuntu-cpp-sanitizer
- ubuntu-sanitizer:
- name: AMD64 Ubuntu ${{ matrix.ubuntu }} C++ ASAN UBSAN
+ ubuntu-cmake32:
+ name: AMD64 Ubuntu 18.04 C++ CMake 3.2
runs-on: ubuntu-latest
+ if: github.event_name == 'push'
strategy:
fail-fast: false
matrix:
@@ -148,11 +137,22 @@ jobs:
submodules: true
- name: Docker Pull
shell: bash
- run: docker-compose pull --ignore-pull-failures ubuntu-cpp-sanitizer
+ run: |
+ docker-compose pull --ignore-pull-failures ubuntu-cpp
+ docker-compose pull --ignore-pull-failures ubuntu-cpp-cmake32
- name: Docker Build
shell: bash
- run: docker-compose build ubuntu-cpp-sanitizer
+ run: |
+ docker-compose build ubuntu-cpp
+ docker-compose build ubuntu-cpp-cmake32
- name: Docker Run
shell: bash
- run: docker-compose run ubuntu-cpp-sanitizer
- # No push step, it's the same image as ubuntu-cpp
+ run: docker-compose run ubuntu-cpp-cmake32
+ - name: Docker Push
+ if: success() && github.repository == 'apache/arrow'
+ continue-on-error: true
+ shell: bash
+ run: |
+ docker login -u ${{ secrets.DOCKERHUB_USER }} \
+ -p ${{ secrets.DOCKERHUB_TOKEN }}
+ docker-compose push ubuntu-cpp-cmake32