Skip to content

feat: playwright-report/ and test-results/ directories are committed to the repository β€” CI test artifacts should never be in version controlΒ #884

Description

@prince-pokharna

πŸ› Problem Statement

Both playwright-report/ and test-results/ directories are committed to the Debugra repository. These are generated output directories produced by Playwright test runs β€” they contain:

  • HTML test reports with embedded screenshots and video recordings of test runs
  • JSON result files with timestamps and system paths from the CI runner
  • Binary assets (PNG screenshots, WebM videos) that can be megabytes per test run

These artifacts:

  1. Grow with every test run and will accumulate indefinitely
  2. Contain CI runner system paths and environment information that shouldn't be public
  3. Create constant noise in git diff for maintainers
  4. Inflate clone size unnecessarily for every contributor

Playwright generates these automatically β€” they should be in .gitignore and served by CI (e.g., GitHub Actions artifact uploads) rather than committed.

Fix Required

# Remove from tracking
git rm -r --cached playwright-report/ test-results/

# Add to .gitignore (these may already be in .gitignore but were committed before the rule was added)
echo "playwright-report/" >> .gitignore
echo "test-results/" >> .gitignore
echo "test-results/**" >> .gitignore

git commit -m "chore: remove playwright test artifacts from version control"

Update the .github/workflows/ CI file to upload Playwright reports as GitHub Actions artifacts instead:

- name: Upload Playwright Report
  uses: actions/upload-artifact@v4
  if: always()
  with:
    name: playwright-report
    path: playwright-report/
    retention-days: 30

Files to Modify

File Change
playwright-report/ Remove from git tracking
test-results/ Remove from git tracking
.gitignore Confirm/add these patterns
.github/workflows/ Add artifact upload step

Suggested labels: chore, CI/CD, good first issue, level: beginner

I would like to work on this. Could you please assign it to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    gssocOfficial GSSoC '26 issue tagtype:bugVulnerability or logical bug fixestype:designTactile visual design and UI alignmentstype:featureNew functional feature additionstype:testingIntegration and unit test coverage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions