From d0cabd080ff8c0131e2e37b379ecd93381d06e58 Mon Sep 17 00:00:00 2001 From: shubhamparikh2704 Date: Mon, 1 Sep 2025 15:25:11 +0530 Subject: [PATCH] chore: add debugging steps for coverage generation and artifact handling in GitHub Actions workflow --- .github/workflows/e2e.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d7a966481..fbb628240 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -142,11 +142,26 @@ jobs: SPLIT_INDEX: ${{ strategy.job-index }} SPLIT_FILE: 'cypress/timings.json' VITEST_COVERAGE: true + - name: Debug coverage generation + if: ${{ steps.cypress.conclusion == 'success' }} + run: | + echo "Checking if coverage files were generated:" + ls -la coverage/ || echo "No coverage directory" + ls -la coverage/cypress/ || echo "No coverage/cypress directory" + echo "Looking for any .info files:" + find . -name "*.info" -type f | head -10 || echo "No .info files found" - name: Prepare unique lcov filename if: ${{ steps.cypress.conclusion == 'success' }} run: | mkdir -p coverage/cypress - cp coverage/cypress/lcov.info coverage/cypress/lcov-${{ matrix.containers }}.info + if [ -f coverage/cypress/lcov.info ]; then + cp coverage/cypress/lcov.info coverage/cypress/lcov-${{ matrix.containers }}.info + echo "Created lcov-${{ matrix.containers }}.info" + ls -la coverage/cypress/lcov-${{ matrix.containers }}.info + else + echo "Error: coverage/cypress/lcov.info not found" + exit 1 + fi - name: Upload e2e lcov artifact if: ${{ steps.cypress.conclusion == 'success' }} uses: actions/upload-artifact@v4 @@ -172,6 +187,14 @@ jobs: pattern: e2e-lcov-* path: coverage/e2e-shards merge-multiple: true + - name: Debug downloaded artifacts + run: | + echo "Contents of coverage/e2e-shards:" + find coverage/e2e-shards -type f -name "*.info" | head -20 + echo "All files in coverage/e2e-shards:" + ls -la coverage/e2e-shards/ + echo "Directory structure:" + find coverage/e2e-shards -type f | head -20 - name: Install dependencies for merging run: pnpm install --frozen-lockfile env: