diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 587d5aba5..f0ef6a97b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -333,12 +333,12 @@ jobs: - name: Connect to PostgreSQL run: | timeout 5s ./target/debug/site 'postgresql://postgres:postgres@localhost:5432/postgres' 2>&1 | tee -a log || true - grep -Fxq "Loading complete but no data identified; exiting." log + grep -Fxq "Warning: loading complete but no data identified." log - name: Connect to SQLite run: | timeout 5s ./target/debug/site 2>&1 | tee -a log || true - grep -Fxq "Loading complete but no data identified; exiting." log + grep -Fxq "Warning: loading complete but no data identified." log - name: Build Postgres to SQLite exporter run: cargo build --bin postgres-to-sqlite diff --git a/site/src/main.rs b/site/src/main.rs index 919925be7..0f507ff6a 100644 --- a/site/src/main.rs +++ b/site/src/main.rs @@ -42,8 +42,7 @@ async fn main() { let commits = res.index.load().commits().len(); let artifacts = res.index.load().artifacts().count(); if commits + artifacts == 0 { - eprintln!("Loading complete but no data identified; exiting."); - std::process::exit(1); + eprintln!("Warning: loading complete but no data identified."); } eprintln!("Loading complete; found {} artifacts", commits + artifacts); eprintln!(