Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions .github/workflows/build_and_test_cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# 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: C++ Build and Tests

on:
push:
branches:
- main
paths-ignore:
- 'website/**'
- '**/*.md'
pull_request:
branches:
- main
paths-ignore:
- 'website/**'
- '**/*.md'
- 'bindings/python/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
build-and-test-cpp:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Install Apache Arrow C++
run: |
sudo apt-get install -y -V ca-certificates lsb-release wget
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt-get install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt-get update
sudo apt-get install -y -V libarrow-dev

- name: Rust Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cpp-test-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}

- name: Build C++ bindings and tests
working-directory: bindings/cpp
run: |
cmake -B build -DFLUSS_ENABLE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build build --parallel

- name: Run C++ integration tests
working-directory: bindings/cpp
run: cd build && ctest --output-on-failure --timeout 300
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: full
81 changes: 81 additions & 0 deletions .github/workflows/build_and_test_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# 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: Python Build and Tests

on:
push:
branches:
- main
paths-ignore:
- 'website/**'
- '**/*.md'
pull_request:
branches:
- main
paths-ignore:
- 'website/**'
- '**/*.md'
- 'bindings/cpp/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
build-and-test-python:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Rust Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: python-test-${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('**/Cargo.lock') }}

- name: Build Python bindings
working-directory: bindings/python
run: |
uv sync --extra dev
uv run maturin develop

- name: Run Python integration tests
working-directory: bindings/python
run: uv run pytest test/ -v
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: full
85 changes: 85 additions & 0 deletions .github/workflows/build_and_test_rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# 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: Rust Build and Tests

on:
push:
branches:
- main
paths-ignore:
- 'website/**'
- '**/*.md'
pull_request:
branches:
- main
paths-ignore:
- 'website/**'
- '**/*.md'
- 'bindings/python/**'
- 'bindings/cpp/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
build-and-test-rust:
timeout-minutes: 60
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v4

- name: Install protoc
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
sudo apt-get update && sudo apt-get install -y protobuf-compiler
elif [ "$RUNNER_OS" = "macOS" ]; then
brew install protobuf
fi

- name: Rust Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}

- name: Build
run: cargo build --workspace --all-targets --exclude fluss_python --exclude fluss-cpp

- name: Unit Test
run: cargo test --all-targets --workspace --exclude fluss_python --exclude fluss-cpp
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: full

- name: Integration Test (Linux only)
if: runner.os == 'Linux'
run: |
RUST_TEST_THREADS=1 cargo test --features integration_tests --all-targets --workspace --exclude fluss_python --exclude fluss-cpp -- --nocapture
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: full
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
################################################################################

# This workflow is meant for checking broken links in the documentation.
name: Check Documentation
name: Documentation Check
permissions:
contents: read
on:
Expand All @@ -31,7 +31,7 @@ on:
- 'website/**'

jobs:
test-deploy:
check-documentation:
runs-on: ubuntu-latest
defaults:
run:
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/check_license_and_formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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: License and Formatting Check

on:
push:
branches:
- main
paths-ignore:
- 'website/**'
- '**/*.md'
pull_request:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
check-license-and-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check License Header
uses: apache/skywalking-eyes/header@v0.6.0

- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny@0.14.22

- name: Check dependency licenses (Apache-compatible)
run: cargo deny check licenses

- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Format
run: cargo fmt --all -- --check

- name: Clippy
run: cargo clippy --all-targets --workspace -- -D warnings
Loading
Loading