#!/usr/bin/env bash # Focused fixtures for the Tangled Rust-impact classifier. set -euo pipefail cd "$(dirname "$0")/.." fail=0 # The corpus workflow runs this suite for pull requests too. Pin the ordinary # path fixtures to their own context so the workflow's ambient pipeline kind # cannot turn the wiki-only case into a deliberately full safety run. if TANGLED_PIPELINE_KIND=local \ bash tools/ci-rust-changed.sh wiki/process/meta.md >/dev/null 2>&1; then echo "FAIL: wiki-only path requested the Rust gate" fail=1 else echo " ok skips: wiki-only path" fi if ! TANGLED_PIPELINE_KIND=local \ bash tools/ci-rust-changed.sh src/lib.rs >/dev/null 2>&1; then echo "FAIL: source path skipped the Rust gate" fail=1 else echo " ok runs: source path" fi if ! TANGLED_PIPELINE_KIND=manual \ bash tools/ci-rust-changed.sh wiki/process/meta.md >/dev/null 2>&1; then echo "FAIL: manual safety run skipped the Rust gate" fail=1 else echo " ok runs: manual safety gate" fi if ! TANGLED_PIPELINE_KIND=pull_request \ bash tools/ci-rust-changed.sh README.md >/dev/null 2>&1; then echo "FAIL: pull-request safety run skipped the Rust gate" fail=1 else echo " ok runs: pull-request safety gate" fi [ "$fail" -eq 0 ] || exit 1 echo "CI Rust classifier fixtures: OK"