diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0e70c3e0..aa126388 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -37,11 +37,20 @@ jobs: working-directory: frontend - name: Run unit and component tests with coverage - run: npm run test:coverage + run: npm run test:coverage 2>&1 | tee /tmp/coverage-test.log; exit ${PIPESTATUS[0]} working-directory: frontend env: TZ: Europe/Berlin + - name: Assert no birpc teardown race in coverage run + if: always() + run: | + if grep -q "rpc is closed" /tmp/coverage-test.log 2>/dev/null; then + echo "FAIL: [birpc] rpc is closed teardown race detected in coverage run" + grep "rpc is closed" /tmp/coverage-test.log + exit 1 + fi + - name: Upload coverage reports if: always() uses: actions/upload-artifact@v4