Skip to content

[server] Normalize legacy remote log manifest ranges #5

[server] Normalize legacy remote log manifest ranges

[server] Normalize legacy remote log manifest ranges #5

# 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 License and Formatting Check
on:
push:
branches:
- main
paths:
- 'fluss-rust/crates/**'
- 'fluss-rust/bindings/**'
- 'fluss-rust/Cargo.toml'
- 'fluss-rust/Cargo.lock'
- 'fluss-rust/DEPENDENCIES.rust.tsv'
- 'fluss-rust/LICENSE'
- 'fluss-rust/NOTICE'
- 'fluss-rust/scripts/**'
- 'fluss-rust/deny.toml'
- 'fluss-rust/.licenserc.yaml'
- 'fluss-rust/rustfmt.toml'
- 'fluss-rust/rust-toolchain.toml'
- 'fluss-rpc/src/main/proto/**'
- '.github/workflows/rust-license-and-format.yml'
pull_request:
branches:
- main
paths:
- 'fluss-rust/crates/**'
- 'fluss-rust/bindings/**'
- 'fluss-rust/Cargo.toml'
- 'fluss-rust/Cargo.lock'
- 'fluss-rust/DEPENDENCIES.rust.tsv'
- 'fluss-rust/LICENSE'
- 'fluss-rust/NOTICE'
- 'fluss-rust/scripts/**'
- 'fluss-rust/deny.toml'
- 'fluss-rust/.licenserc.yaml'
- 'fluss-rust/rustfmt.toml'
- 'fluss-rust/rust-toolchain.toml'
- 'fluss-rpc/src/main/proto/**'
- '.github/workflows/rust-license-and-format.yml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
defaults:
run:
working-directory: fluss-rust
jobs:
check-license-and-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Check License Header
uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0
with:
config: fluss-rust/.licenserc.yaml
- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny@0.20.2
- name: Check dependency licenses (Apache-compatible)
run: cargo deny check licenses
# The inventory ships with the source release, so a stale one is worse than none.
- name: Dependency inventory drift check
run: |
cargo fetch --locked
python3 scripts/dependencies.py verify
# release.sh archives this subtree and nothing else inspects the result;
# the crate is covered by rust-release.yml before it publishes.
- name: Source release contents
run: |
git archive --prefix=t/ HEAD | tar -t > "${RUNNER_TEMP}/tarball.txt"
for f in LICENSE NOTICE DEPENDENCIES.rust.tsv; do
grep -qxF "t/$f" "${RUNNER_TEMP}/tarball.txt" || {
echo "::error::source release is missing $f"
exit 1
}
done
- name: Rust Cache
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: fluss-rust
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --workspace -- -D warnings
- name: Rustdoc
# fluss_python is excluded: its [lib] name = "fluss" collides with fluss-rs
run: cargo doc --workspace --no-deps --exclude fluss_python
env:
RUSTDOCFLAGS: -D warnings