Skip to content

Add sync_writes option to flush every commit to object storage before returning #1197

Add sync_writes option to flush every commit to object storage before returning

Add sync_writes option to flush every commit to object storage before returning #1197

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
defaults:
run:
working-directory: zerofs
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
defaults:
run:
working-directory: zerofs
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy"
- name: Run clippy
run: cargo clippy -- -D warnings
build:
name: Build and Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: zerofs
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run crash tests
run: cargo test --features failpoints --test failpoints --verbose