Skip to content
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
485c53a
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
c70786c
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
493f69e
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
1bc887e
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
3ccbef2
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
a8054e4
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
56efd85
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
e6c227f
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
17d195b
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
259e1f6
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
3d9168f
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
6d7020e
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
df9c106
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
87a390b
RI-0000-fixing test coverage path mismatch
Jul 9, 2025
3fcbaa1
RI-0000-fixing test coverage path mismatch - testing nyc params
Jul 9, 2025
2422a7a
Merge branch 'release/2.70.1' into RI-0000-fixing-coverage-paths
Jul 9, 2025
17e95ff
RI-0000-fixing test coverage path mismatch - testing nyc params
Jul 9, 2025
96a18b2
RI-0000-fixing test coverage path mismatch - testing nyc params
Jul 9, 2025
881c61d
RI-0000-fixing test coverage path mismatch - testing nyc params
Jul 9, 2025
5d5723d
RI-0000-fixing test coverage path mismatch - testing nyc handling in …
Jul 9, 2025
c550b2b
RI-0000-fixing test coverage path mismatch - testing nyc handling in …
Jul 9, 2025
39360de
RI-0000-fixing test coverage path mismatch - testing nyc handling in …
Jul 9, 2025
2ba7995
RI-0000-fixing test coverage path mismatch - removing logs and debug
Jul 9, 2025
25940d9
RI-0000-fixing test coverage path mismatch - removing logs and debug
Jul 9, 2025
6bb5027
Merge branch 'release/2.70.1' into RI-0000-fixing-coverage-paths
Jul 9, 2025
01016ea
RI-0000 - fixing path issues - itest to ./itest
KIvanow Jul 10, 2025
d0f5c83
RI-0000 - fixing path issues - itest to ./itest
KIvanow Jul 10, 2025
c8c2eaa
RI-0000 reverting to the main branch config
KIvanow Jul 10, 2025
c39b058
Merge branch 'release/2.70.1' into RI-0000-fixing-coverage-paths
Jul 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 5 additions & 100 deletions .github/workflows/tests-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,103 +128,9 @@ jobs:
./redisinsight/api/test/test-runs/start-test-run.sh -r ${{ matrix.rte }} -t ${{ inputs.build }}
mkdir -p itest/coverages && mkdir -p itest/results

- name: Verify coverage files generation
if: always()
run: |
echo "🎉 SUCCESS! Coverage files are being generated correctly!"
echo ""
echo "=== Final coverage directory contents ==="
ls -la ./redisinsight/api/test/test-runs/coverage/ || echo "Coverage directory does not exist!"
echo ""
echo "=== Nyc coverage directory contents ==="
ls -la ./redisinsight/api/test/test-runs/coverage/.nyc_output || echo "Nyc directory does not exist!"
echo ""
echo "=== File verification ==="
if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-result.json" ]; then
echo "✅ Test results file exists! File size:"
ls -lh ./redisinsight/api/test/test-runs/coverage/test-run-result.json
else
echo "❌ Test results file missing!"
fi

if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-coverage.json" ]; then
echo "✅ Coverage file exists! File size:"
ls -lh ./redisinsight/api/test/test-runs/coverage/test-run-coverage.json
else
echo "❌ Coverage file missing!"
fi

if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-result.xml" ]; then
echo "✅ JUnit XML file exists! File size:"
ls -lh ./redisinsight/api/test/test-runs/coverage/test-run-result.xml
else
echo "❌ JUnit XML file missing!"
fi

- name: Debug NYC coverage generation
if: always()
run: |
echo "=== Checking coverage generation results ==="
echo "Working directory: $(pwd)"
echo ""
echo "=== Docker container debug log ==="
cd ./redisinsight/api/test/test-runs
if [ -f "coverage/debug.log" ]; then
echo "📋 Debug log from Docker container:"
cat coverage/debug.log
else
echo "❌ No debug log found from Docker container"
fi
echo ""
echo "=== Coverage files status ==="
if [ -d "coverage/.nyc_output" ] && [ "$(find coverage/.nyc_output -name "*.json" | wc -l)" -gt 0 ]; then
echo "✅ .nyc_output directory found with $(find coverage/.nyc_output -name "*.json" | wc -l) files"
echo "✅ NYC raw coverage data generated successfully"
if [ -f "coverage/test-run-coverage.json" ]; then
echo "✅ test-run-coverage.json file exists!"
ls -lh coverage/test-run-coverage.json
else
echo "❌ test-run-coverage.json file missing - NYC merge failed in Docker container"
fi
else
echo "❌ No coverage data files found in coverage/.nyc_output"
fi

- name: Copy test results to artifacts
run: |
echo "=== COPYING TEST RESULTS ==="
echo "Current working directory: $(pwd)"
echo ""
echo "=== Files in expected coverage directory ==="
ls -la ./redisinsight/api/test/test-runs/coverage/ || echo "Coverage directory does not exist!"
echo ""

echo "=== Copying files with error handling ==="

# Copy JSON result file (should exist)
if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-result.json" ]; then
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.json ./itest/results/${{ matrix.rte }}.result.json
echo "✅ Copied test-run-result.json"
else
echo "❌ test-run-result.json not found"
fi

# Copy XML result file (should exist)
if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-result.xml" ]; then
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.xml ./itest/results/${{ matrix.rte }}.result.xml
echo "✅ Copied test-run-result.xml"
else
echo "❌ test-run-result.xml not found"
fi

# Copy coverage file (may be missing)
if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-coverage.json" ]; then
cp ./redisinsight/api/test/test-runs/coverage/test-run-coverage.json ./itest/coverages/${{ matrix.rte }}.coverage.json
echo "✅ Copied test-run-coverage.json"
else
echo "❌ test-run-coverage.json not found - creating empty file"
echo "{}" > ./itest/coverages/${{ matrix.rte }}.coverage.json
fi
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.json ./itest/results/${{ matrix.rte }}.result.json
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.xml ./itest/results/${{ matrix.rte }}.result.xml
cp ./redisinsight/api/test/test-runs/coverage/test-run-coverage.json ./itest/coverages/${{ matrix.rte }}.coverage.json

- name: Upload coverage files as artifact
if: always()
Expand All @@ -239,8 +145,7 @@ jobs:
if: always()
with:
name: 'Test results: IT (${{ matrix.rte }}) tests'
path: ./redisinsight/api/test/test-runs/coverage/*.result.xml
# path: itest/results/*.result.xml
path: itest/results/*.result.xml
reporter: jest-junit
list-tests: 'failed'
list-suites: 'failed'
Expand Down Expand Up @@ -297,4 +202,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: ${{ steps.merge-artifacts.outputs.artifact-id }}
});
});