Skip to content

Commit 199f75a

Browse files
committed
Improve PostgreSQL test results reporting with status indicators and test counts
1 parent 7435ea9 commit 199f75a

1 file changed

Lines changed: 25 additions & 7 deletions

File tree

.github/workflows/postgresql-test.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -638,13 +638,31 @@ jobs:
638638

639639
- name: Generate PR Comment
640640
run: |
641-
echo "## 🐘 PostgreSQL Module Tests - Complete Results" > comment.md
641+
echo "## 🐘 PostgreSQL Module Tests - Results" > comment.md
642642
echo "" >> comment.md
643643
echo "**Test Date:** $(date -u '+%Y-%m-%d %H:%M:%S UTC')" >> comment.md
644+
645+
# Determine overall test status
646+
TEST_STATUS="${{ needs.test-postgresql.result }}"
647+
if [ "$TEST_STATUS" = "success" ]; then
648+
echo "**Status:** ✅ All tests passed" >> comment.md
649+
elif [ "$TEST_STATUS" = "failure" ]; then
650+
echo "**Status:** ❌ Some tests failed" >> comment.md
651+
else
652+
echo "**Status:** ⚠️ Tests completed with issues" >> comment.md
653+
fi
654+
644655
echo "" >> comment.md
645656
646657
# Check if artifacts exist
647658
if [ -d "all-results" ]; then
659+
# Count expected vs actual results
660+
EXPECTED_COUNT=$(echo '${{ needs.detect-versions.outputs.versions }}' | jq '. | length')
661+
ACTUAL_COUNT=$(find all-results -name "summary.md" 2>/dev/null | wc -l)
662+
663+
echo "**Results:** $ACTUAL_COUNT of $EXPECTED_COUNT versions tested" >> comment.md
664+
echo "" >> comment.md
665+
648666
for version_dir in all-results/test-results-postgresql-*; do
649667
if [ -d "$version_dir" ]; then
650668
for summary_file in "$version_dir"/summary.md; do
@@ -664,13 +682,13 @@ jobs:
664682
echo "" >> comment.md
665683
echo "### 📋 Test Phases" >> comment.md
666684
echo "" >> comment.md
667-
echo "✅ **Completed:**" >> comment.md
668-
echo "- Phase 1: Installation Validation (Download, Extract, Verify)" >> comment.md
669-
echo "- Phase 2: Server Initialization (Init Cluster, Start Server)" >> comment.md
670-
echo "- Phase 3: Database Operations (Connect, Create DB, Delete DB)" >> comment.md
671-
echo "- Phase 4: Cleanup (Stop Server)" >> comment.md
685+
echo "Each version is tested through the following phases:" >> comment.md
686+
echo "- **Phase 1:** Installation Validation (Download, Extract, Verify)" >> comment.md
687+
echo "- **Phase 2:** Server Initialization (Init Cluster, Start Server)" >> comment.md
688+
echo "- **Phase 3:** Database Operations (Connect, Create DB, Delete DB)" >> comment.md
689+
echo "- **Phase 4:** Cleanup (Stop Server)" >> comment.md
672690
echo "" >> comment.md
673-
echo "_All phases of PostgreSQL testing are complete! Check artifacts for detailed logs._" >> comment.md
691+
echo "_Check artifacts for detailed logs and server output._" >> comment.md
674692
675693
cat comment.md
676694

0 commit comments

Comments
 (0)