Compare commits
No commits in common. "b8ad91bbda9569390629db879f8dfd702bb3f65a" and "75dd4ee6dcac7d7bcacc46f5ce4fea2916ceda82" have entirely different histories.
b8ad91bbda
...
75dd4ee6dc
@ -14,6 +14,5 @@
|
|||||||
},
|
},
|
||||||
"notify_on_pass": true,
|
"notify_on_pass": true,
|
||||||
"notify_on_fail": true,
|
"notify_on_fail": true,
|
||||||
"tag_users_on_fail": ["mostfunguy", "A31S15"],
|
"tag_users_on_fail": ["mostfunguy", "A31S15"]
|
||||||
"test_count_baseline": 1279
|
|
||||||
}
|
}
|
||||||
|
|||||||
40
ci-runner.sh
40
ci-runner.sh
@ -114,13 +114,6 @@ if [ "$ERROR_COUNT" != "0" ] && [ "$ERROR_COUNT" != "" ]; then
|
|||||||
echo "TEST COLLECTION ERRORS"
|
echo "TEST COLLECTION ERRORS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ─── Test Count Baseline Check ───
|
|
||||||
BASELINE=$(python3 -c "import json; print(json.load(open('$CONFIG')).get('test_count_baseline', 0))")
|
|
||||||
if [ "$BASELINE" -gt 0 ] && [ "$PASS_COUNT" -lt "$BASELINE" ]; then
|
|
||||||
OVERALL="fail"
|
|
||||||
echo "TEST COUNT REGRESSION: expected >= $BASELINE passed, got $PASS_COUNT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ─── Step 3: Package Check ───
|
# ─── Step 3: Package Check ───
|
||||||
echo ""
|
echo ""
|
||||||
echo "--- Package Check ---"
|
echo "--- Package Check ---"
|
||||||
@ -273,39 +266,6 @@ print(f'Report written to $REPORT_FILE')
|
|||||||
echo "Failure report: $REPORT_FILE"
|
echo "Failure report: $REPORT_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ─── Write Pipeline Result JSON ───
|
|
||||||
RESULTS_DIR="$SCRIPT_DIR/pipeline-results"
|
|
||||||
RESULT_TIMESTAMP=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
||||||
RESULT_FILENAME=$(date -u +%Y-%m-%d_%H%M%S)_${BRANCH}.json
|
|
||||||
RESULT_FILE="$RESULTS_DIR/$RESULT_FILENAME"
|
|
||||||
mkdir -p "$RESULTS_DIR"
|
|
||||||
python3 -c "
|
|
||||||
import json, sys
|
|
||||||
|
|
||||||
result = {
|
|
||||||
'branch': '$BRANCH',
|
|
||||||
'commit': '$COMMIT',
|
|
||||||
'actor': '$ACTOR',
|
|
||||||
'timestamp': '$RESULT_TIMESTAMP',
|
|
||||||
'result': '$OVERALL',
|
|
||||||
'tests': {
|
|
||||||
'passed': int('$PASS_COUNT' or 0),
|
|
||||||
'failed': int('$FAIL_COUNT' or 0),
|
|
||||||
'skipped': int('$SKIP_COUNT' or 0),
|
|
||||||
'deselected': int('$DESELECTED_COUNT' or 0),
|
|
||||||
'errors': int('$ERROR_COUNT' or 0),
|
|
||||||
},
|
|
||||||
'features': '$FEATURES_RESULT',
|
|
||||||
'duration_seconds': int('$DURATION' or 0),
|
|
||||||
'tags_tested': '$TAGS_USED',
|
|
||||||
'trigger_source': '$ACTOR',
|
|
||||||
}
|
|
||||||
|
|
||||||
with open('$RESULT_FILE', 'w') as f:
|
|
||||||
json.dump(result, f, indent=2)
|
|
||||||
print(f'Pipeline result written: $RESULT_FILE')
|
|
||||||
" 2>&1
|
|
||||||
|
|
||||||
# ─── Send Notification ───
|
# ─── Send Notification ───
|
||||||
bash "$SCRIPT_DIR/ci-notify.sh" \
|
bash "$SCRIPT_DIR/ci-notify.sh" \
|
||||||
"$BRANCH" "$COMMIT" "$OVERALL" "$SUMMARY" "$FEATURES_RESULT" "${DURATION}s" "$ACTOR" "$REPORT_FILE" "$SUITE_INFO"
|
"$BRANCH" "$COMMIT" "$OVERALL" "$SUMMARY" "$FEATURES_RESULT" "${DURATION}s" "$ACTOR" "$REPORT_FILE" "$SUITE_INFO"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user