fix(server): keep SQLite commits durable except SSH session issuance #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: persistence-tests | |
| # rh-forge: runs the openshell-server persistence test module (the SQLite | |
| # store, including the WAL/synchronous configuration tests) on a hosted | |
| # runner. Dispatch-only plus pushes to forge/** branches. | |
| on: | |
| push: | |
| branches: ["forge/**"] | |
| paths: | |
| - "crates/openshell-server/src/persistence/**" | |
| - "crates/openshell-server/migrations/**" | |
| - ".github/workflows/persistence-tests.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| persistence: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 120 | |
| env: | |
| OPENSHELL_TELEMETRY_ENABLED: "false" | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends cmake clang libclang-dev pkg-config libssl-dev | |
| - name: Install pinned Rust toolchain | |
| run: | | |
| rustup toolchain install "$(grep -E '^channel' rust-toolchain.toml | sed -E 's/.*"([^"]+)".*/\1/')" --profile minimal | |
| rustup show active-toolchain | |
| - name: Run persistence tests | |
| shell: bash | |
| run: | | |
| set -o pipefail | |
| cargo test -p openshell-server --features test-support,bundled-z3 persistence -- --nocapture 2>&1 | tail -n 200 |