From 965c96ea6e5467b3627bdc88a48e32f6ef6aac43 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Fri, 1 May 2026 17:54:35 +0200 Subject: [PATCH] ci: temporary smoke-test workflow to diagnose 2s CI failure Two prior CI runs (cc72db04 and c411916) failed in 2 seconds without producing any visible step output. The Forgejo Actions log API does not expose run logs without a real session, so isolate by replacing the workflow with a single echo-step. If this run succeeds, the issue is in one of the original workflow's steps (likely the second checkout of module-sdk). If this run also fails in 2 seconds, the issue is structural to the workflow header or the runner picking up text-extract. Bumps 0.1.1 -> 0.1.2. Signed-off-by: flemming-it --- .forgejo/workflows/ci.yml | 83 ++++----------------------------------- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 9 insertions(+), 78 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index a5edad4..2873d1f 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -8,85 +8,16 @@ on: env: CARGO_TERM_COLOR: always - RUSTFLAGS: "-D warnings" - RUST_TOOLCHAIN: "1.86" jobs: - ci: + smoke: name: Linux x86_64 (Forgejo) runs-on: ubuntu-latest steps: - # Manual external-URL checkout — see fai/platform CI for - # background. Lays this repo at $GITHUB_WORKSPACE. - - name: Checkout text-extract via external URL + - name: Smoke run: | - set -eu - mkdir -p "$GITHUB_WORKSPACE" - cd "$GITHUB_WORKSPACE" - git init -q - git remote add origin \ - "https://x-access-token:${GITHUB_TOKEN}@git.flemming.ws/${GITHUB_REPOSITORY}.git" - git fetch --depth=1 origin "$GITHUB_SHA" - git checkout -q FETCH_HEAD - - # text-extract depends on fai-module-sdk via a sibling-path - # dependency: ../../module_sdk/crates/fai-module-sdk - # We materialize that layout by cloning module-sdk two - # levels up from $GITHUB_WORKSPACE. This is a transient - # arrangement until the SDK is published as a versioned - # git tag or registry crate. - - name: Checkout fai/module-sdk into sibling layout - run: | - set -eu - parent="$(dirname "$GITHUB_WORKSPACE")" - grandparent="$(dirname "$parent")" - sdk_dir="$grandparent/module_sdk" - mkdir -p "$sdk_dir" - cd "$sdk_dir" - git init -q - # The SDK lives in a different Forgejo org (fai/) and the - # repo-scoped GITHUB_TOKEN cannot read it. The SDK is - # public, so an anonymous clone is sufficient and avoids - # cross-org token-scope friction. - git remote add origin \ - "https://git.flemming.ws/fai/module-sdk.git" - git fetch --depth=1 origin main - git checkout -q FETCH_HEAD - echo "module-sdk checked out at: $sdk_dir" - - - name: Install system dependencies - run: | - apt-get update -qq - apt-get install -y --no-install-recommends \ - curl \ - ca-certificates \ - build-essential \ - pkg-config \ - libssl-dev \ - git - - - name: Install Rust toolchain - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ - | sh -s -- -y \ - --profile minimal \ - --default-toolchain "$RUST_TOOLCHAIN" \ - --target wasm32-wasip2 \ - --component rustfmt \ - --component clippy - echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - - - name: Cargo fmt --check - run: cargo fmt --all -- --check - - - name: Cargo clippy - run: cargo clippy --all-targets -- -D warnings - - - name: Cargo build (host) - run: cargo build --all-targets - - - name: Cargo test (host) - run: cargo test --all-targets - - - name: Cargo build (wasm32-wasip2) - run: cargo build --release --target wasm32-wasip2 + echo "runner alive" + echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" + echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" + echo "GITHUB_SHA=$GITHUB_SHA" + uname -a diff --git a/Cargo.lock b/Cargo.lock index 42ae41c..abc4b72 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -504,7 +504,7 @@ dependencies = [ [[package]] name = "text_extract" -version = "0.1.1" +version = "0.1.2" dependencies = [ "fai-module-sdk", "pdf-extract", diff --git a/Cargo.toml b/Cargo.toml index 3e4f9cc..1c798b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ [package] name = "text_extract" -version = "0.1.1" +version = "0.1.2" edition = "2024" authors = ["Dr. Stefan Flemming "] license = "Apache-2.0"