Skip to content

fix: avoid map_from_entries error on empty array(unknown) #2688

fix: avoid map_from_entries error on empty array(unknown)

fix: avoid map_from_entries error on empty array(unknown) #2688

Workflow file for this run

# Copyright (c) ByteDance Ltd. and/or its affiliates.
#
# 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.
name: Build and Test
on:
pull_request:
branches: [ main ]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CCACHE_DIR: /data/ccache-data
CCACHE_MAX_SIZE: '100G'
CI_NUM_THREADS: "16"
IN_CI: '1'
jobs:
changes:
runs-on: [ self-hosted, small ]
outputs:
source_code: ${{ steps.filter.outputs.source_code }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
source_code:
- 'bolt/**'
- '!bolt/**/*.md'
- 'Makefile'
- 'conanfile.py'
- 'CMakeLists.txt'
- 'bolt/**/CMakeLists.txt'
- 'scripts/**'
- '.github/workflows/**'
build-test:
needs: changes
if: ${{ needs.changes.outputs.source_code == 'true' }}
runs-on: [ self-hosted, medium ]
container:
image: bolt-registry:5000/bolt-ci:20260114
options: --user root --init
volumes:
- /data/ccache-data:/data/ccache-data
services:
conanserver:
image: bolt-registry:5000/conan-server:latest
volumes:
- /data/conan-server-data:/var/conan/data
strategy:
matrix:
build_type: [ release, release_spark ]
steps:
- name: Checkout code
uses: actions/checkout@v6
- id: env-setup
uses: ./.github/actions/bolt-build-base
- name: Bolt build
run: |
make ${{ matrix.build_type }}_with_test
- name: Run tests
run: |
make unittest_${{ matrix.build_type }}
build-only:
needs: changes
if: ${{ needs.changes.outputs.source_code == 'true' }}
runs-on: [ self-hosted, medium ]
container:
image: bolt-registry:5000/bolt-ci:20260114
volumes:
- /data/ccache-data:/data/ccache-data
options: --user root --init
services:
conanserver:
image: bolt-registry:5000/conan-server:latest
volumes:
- /data/conan-server-data:/var/conan/data
strategy:
matrix:
build_target: [ benchmarks-build, debug_spark_with_test ]
steps:
- name: Checkout code
uses: actions/checkout@v6
- id: env-setup
uses: ./.github/actions/bolt-build-base
- name: Bolt build
run: |
echo 'tools.cmake.cmaketoolchain:extra_variables={"CMAKE_CXX_FLAGS_DEBUG": ""}' >> $(conan profile path default)
make ${{ matrix.build_target }}