debug: strip test.yaml to bare minimum to isolate why the job dies mid-run
Some checks failed
build-and-release / build (catering-services) (push) Successful in 25s
build-and-release / build (cron) (push) Successful in 33s
build-and-release / build (companies) (push) Successful in 39s
build-and-release / build (developers) (push) Successful in 45s
build-and-release / build (fitness-trainers) (push) Successful in 28s
build-and-release / build (gateway) (push) Successful in 26s
build-and-release / build (graphic-designers) (push) Successful in 31s
build-and-release / build (makeup-artists) (push) Successful in 12s
build-and-release / build (jobs) (push) Successful in 24s
build-and-release / build (photographers) (push) Successful in 9s
build-and-release / build (payments) (push) Successful in 19s
build-and-release / build (social-media-managers) (push) Successful in 14s
build-and-release / build (employees) (push) Failing after 1m46s
build-and-release / build (customers) (push) Failing after 1m48s
backend-integration-tests / ai-credits (push) Successful in 5s
build-and-release / build (tutors) (push) Successful in 1m33s
build-and-release / build (video-editors) (push) Successful in 2m26s
build-and-release / build (users) (push) Successful in 2m52s
build-and-release / build (job-seekers) (push) Successful in 6m30s
build-and-release / build (ugc-content-creators) (push) Successful in 7m36s
Some checks failed
build-and-release / build (catering-services) (push) Successful in 25s
build-and-release / build (cron) (push) Successful in 33s
build-and-release / build (companies) (push) Successful in 39s
build-and-release / build (developers) (push) Successful in 45s
build-and-release / build (fitness-trainers) (push) Successful in 28s
build-and-release / build (gateway) (push) Successful in 26s
build-and-release / build (graphic-designers) (push) Successful in 31s
build-and-release / build (makeup-artists) (push) Successful in 12s
build-and-release / build (jobs) (push) Successful in 24s
build-and-release / build (photographers) (push) Successful in 9s
build-and-release / build (payments) (push) Successful in 19s
build-and-release / build (social-media-managers) (push) Successful in 14s
build-and-release / build (employees) (push) Failing after 1m46s
build-and-release / build (customers) (push) Failing after 1m48s
backend-integration-tests / ai-credits (push) Successful in 5s
build-and-release / build (tutors) (push) Successful in 1m33s
build-and-release / build (video-editors) (push) Successful in 2m26s
build-and-release / build (users) (push) Successful in 2m52s
build-and-release / build (job-seekers) (push) Successful in 6m30s
build-and-release / build (ugc-content-creators) (push) Successful in 7m36s
This commit is contained in:
parent
3740bb81c5
commit
e80c58641f
1 changed files with 2 additions and 54 deletions
|
|
@ -13,63 +13,11 @@ concurrency:
|
|||
jobs:
|
||||
ai-credits:
|
||||
runs-on: docker-ready
|
||||
env:
|
||||
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check for relevant changes
|
||||
id: check
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if git rev-parse --verify HEAD^ >/dev/null 2>&1; then
|
||||
BASE="${{ github.event.before }}"
|
||||
if [ -z "$BASE" ] || [ "$BASE" = "0000000000000000000000000000000000000000" ] \
|
||||
|| ! git rev-parse --verify "${BASE}^{commit}" >/dev/null 2>&1; then
|
||||
BASE="HEAD^"
|
||||
fi
|
||||
CHANGED_FILES="$(git diff --name-only "$BASE" HEAD)"
|
||||
else
|
||||
CHANGED_FILES="$(git ls-files)"
|
||||
fi
|
||||
|
||||
run=false
|
||||
if echo "$CHANGED_FILES" | grep -Eq '^(crates/db/|Cargo\.toml|Cargo\.lock|\.forgejo/workflows/test\.yaml)'; then
|
||||
run=true
|
||||
fi
|
||||
echo "run=$run" >> "$GITHUB_OUTPUT"
|
||||
if [ "$run" = "false" ]; then
|
||||
echo "No changes relevant to crates/db - skipping integration tests."
|
||||
fi
|
||||
|
||||
- name: Verify TEST_DATABASE_URL is configured
|
||||
if: steps.check.outputs.run == 'true'
|
||||
run: |
|
||||
test -n "${TEST_DATABASE_URL:-}" || { echo "TEST_DATABASE_URL secret is not set - see docs/LIVE_SERVER_RUNBOOK.md step 6"; exit 1; }
|
||||
|
||||
- name: Install build toolchain
|
||||
if: steps.check.outputs.run == 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# The bare bookworm runner image (unlike build.yaml's Dockerfile-based
|
||||
# builds) has no C toolchain at all - proc-macro2/libc/etc. build
|
||||
# scripts need `cc` to link, which fails immediately without this.
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq build-essential pkg-config
|
||||
|
||||
- name: Install Rust
|
||||
if: steps.check.outputs.run == 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if ! command -v cargo >/dev/null 2>&1; then
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
|
||||
fi
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Run ai_credits integration tests
|
||||
if: steps.check.outputs.run == 'true'
|
||||
run: |
|
||||
cargo test -p db --test ai_credits --test ai_credits_reaper -- --test-threads=1
|
||||
- name: Debug echo
|
||||
run: echo "hello from ai-credits job"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue