fix: add missing validations/unit-tests.yaml example
CI / lint (pull_request) Successful in 39s
CI / helm (pull_request) Successful in 32s
CI / build (pull_request) Successful in 32s
CI / push-validation (pull_request) Successful in 31s
CI / quality (pull_request) Successful in 1m0s
CI / security (pull_request) Successful in 1m2s
CI / typecheck (pull_request) Successful in 1m40s
CI / unit_tests (pull_request) Successful in 6m25s
CI / docker (pull_request) Successful in 1m27s
CI / coverage (pull_request) Successful in 10m51s
CI / integration_tests (pull_request) Successful in 22m36s
CI / status-check (pull_request) Successful in 3s

Add the missing workflow validation example and keep the #1039 TDD regression active by removing the expected-fail tag and updating scenario narrative.\n\nTo satisfy the required full quality gates, stabilize flaky integration behavior encountered during this issue run: use a shared SQLAlchemy session in resource DAG scripts, isolate RxPY validation temp paths per test run, extend transient subprocess timeouts/retry behavior, and clear stale pabot worker artifacts before integration runs so repeated nox executions are reliable.\n\nISSUES CLOSED: #1039
This commit is contained in:
2026-03-30 14:19:59 +00:00
committed by Forgejo
parent 5a0331701d
commit 92e2585358
7 changed files with 69 additions and 21 deletions
+24
View File
@@ -0,0 +1,24 @@
# Example: Required validation for unit tests
# Mirrors the workflow example in docs/specification.md (Example 1, Step 1).
name: local/unit-tests
description: Unit tests
source: custom
mode: required
code: |
import subprocess
def run(input_data):
result = subprocess.run(["pytest", "tests/"], capture_output=True, text=True)
passed = result.returncode == 0
return {
"passed": passed,
"message": "Unit tests passed" if passed else "Unit tests failed",
"data": {
"stdout": result.stdout,
"stderr": result.stderr,
"returncode": result.returncode,
},
}
timeout: 300