Skip to content

diagnostics

diagnostics #8796

Workflow file for this run

# name: Continuous integration
# run-name: "CI run '${{ github.head_ref || github.ref_name }}'"
# on:
# workflow_dispatch:
# push:
# branches:
# - main
# pull_request:
# merge_group:
# defaults:
# run:
# shell: bash
# jobs:
# format:
# name: Check format
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# components: rustfmt
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Check format
# run: cargo make ci-format
# check:
# name: Check workspace
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install dependencies
# run: |
# sudo apt-get -y update
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Check workspace
# run: cargo make ci-check
# check-dependencies:
# name: Check dependencies
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# components: rustfmt
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Install cargo-deny
# run: cargo install --debug --locked cargo-deny@0.14.11
# - name: Install cargo-vet
# run: cargo install --debug --locked cargo-vet
# - name: Install cargo-acl
# run: |
# cargo install --debug --locked cargo-acl
# sudo apt-get install -y bubblewrap
# - name: Check dependencies for known issues
# run: cargo deny check
# - name: Check dependencies for untrusted sources
# run: cargo vet
# - name: Check dependencies for unauthorized access
# env:
# RUSTFLAGS: "--cfg surrealdb_unstable"
# run: cargo acl -n
# - name: Dependency check failure
# if: failure()
# run: |
# echo "## :warning: Dependency check failed" >> $GITHUB_STEP_SUMMARY
# echo "See instructions in the [supply chain security process](https://github.com/surrealdb/surrealdb/blob/main/supply-chain/README.md#Process)." >> $GITHUB_STEP_SUMMARY
# check-fuzzing:
# name: Check fuzzing
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# components: rustfmt
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Check fuzzers
# run: cargo build --manifest-path lib/fuzz/Cargo.toml
# - name: Check OSS-Fuzz
# uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
# with:
# oss-fuzz-project-name: surrealdb
# language: rust
# # Temporarily allow this step to fail
# continue-on-error: true
# clippy:
# name: Check clippy
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# components: clippy
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install dependencies
# run: |
# sudo apt-get -y update
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Run clippy
# run: cargo make ci-clippy
# cli:
# name: CLI integration tests
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install dependencies
# run: |
# sudo apt-get -y update
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Run CLI integration tests
# run: cargo make ci-cli-integration
# - name: Debug info
# if: always()
# run: |
# set -x
# free -m
# df -h
# ps auxf
# cat /tmp/surrealdb.log || true
# http-server:
# name: HTTP integration tests
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install dependencies
# run: |
# sudo apt-get -y update
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Run HTTP integration tests
# run: cargo make ci-http-integration
# ws-server:
# name: WebSocket integration tests
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install dependencies
# run: |
# sudo apt-get -y update
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Run WS integration tests
# run: cargo make ci-ws-integration
# test:
# name: Test workspace
# runs-on: ["self-hosted", "arm64", "builder"]
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install dependencies
# run: |
# sudo apt-get -y update
# - name: Install cargo-llvm-cov
# uses: taiki-e/install-action@cargo-llvm-cov
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Test workspace + coverage
# run: cargo make ci-workspace-coverage
# - name: Upload coverage report
# uses: actions/upload-artifact@v4
# timeout-minutes: 1
# continue-on-error: true
# with:
# name: code-coverage-report
# path: target/llvm-cov/html/
# retention-days: 5
# ws-engine:
# name: WebSocket engine
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install dependencies
# run: |
# sudo apt-get -y update
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Test ws engine
# run: cargo make ci-api-integration-ws
# - name: Debug info
# if: always()
# run: |
# set -x
# free -m
# df -h
# ps auxf
# cat /tmp/surrealdb.log || true
# http-engine:
# name: HTTP engine
# runs-on: ubuntu-latest
# steps:
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# - name: Checkout sources
# uses: actions/checkout@v4
# - name: Setup cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref == 'refs/heads/main' }}
# - name: Install dependencies
# run: |
# sudo apt-get -y update
# - name: Install cargo-make
# run: cargo install --debug --locked cargo-make
# - name: Test http engine
# run: cargo make ci-api-integration-http
# - name: Debug info
# if: always()
# run: |
# set -x
# free -m
# df -h
# ps auxf
# cat /tmp/surrealdb.log || true
# # rocksdb-engine:
# # name: RocksDB engine
# # runs-on: ubuntu-latest
# # steps:
# # - name: Install stable toolchain
# # uses: dtolnay/rust-toolchain@stable
# # with:
# # toolchain: stable
# # - name: Checkout sources
# # uses: actions/checkout@v4
# # - name: Setup cache
# # uses: Swatinem/rust-cache@v2
# # with:
# # save-if: ${{ github.ref == 'refs/heads/main' }}
# # - name: Install cargo-make
# # run: cargo install --debug --locked cargo-make
# # - name: Test Rocksdb Cloud engine
# # run: cargo make ci-api-integration-rocksdb-cloud