Skip to content

fix(ci): untrack playwright-report artifact and close gitignore/CI guard gaps#285

Open
MehtabSandhu11 wants to merge 1 commit into
utksh1:mainfrom
MehtabSandhu11:fix/playwright-report-gitignore-and-ci-guard
Open

fix(ci): untrack playwright-report artifact and close gitignore/CI guard gaps#285
MehtabSandhu11 wants to merge 1 commit into
utksh1:mainfrom
MehtabSandhu11:fix/playwright-report-gitignore-and-ci-guard

Conversation

@MehtabSandhu11
Copy link
Copy Markdown

Problem

Closes #264

frontend/playwright-report/index.html (518 KB) was committed to main in
violation of CONTRIBUTING.md. The existing CI guard (check-artifacts.sh) did
not catch it because it only diffs files changed in a PR — it cannot see
artifacts already sitting in the base branch.

Additionally, frontend/playwright-report/ was missing from .gitignore,
meaning nothing blocked contributors from staging the file locally before
opening a PR.

Changes

File Change
frontend/playwright-report/index.html Untracked via git rm --cached
.gitignore Added frontend/playwright-report/, frontend/test-results/, frontend/.vite/
scripts/check-artifacts.sh Added git ls-files check (Check 1) to catch already-tracked artifacts, kept existing diff check (Check 2) for new additions

How Check 1 Works

The new block runs git ls-files <pattern> for every blocked path. Unlike the
diff check, git ls-files reports files that are tracked right now — regardless
of which branch introduced them. This closes the blind spot permanently.

Tests Run

  • bash scripts/check-artifacts.sh → "All clear!" ✅
  • git ls-files frontend/playwright-report/ → empty ✅
  • git check-ignore frontend/playwright-report/test.html → path echoed back ✅

…s- Remove committed frontend/playwright-report/index.html (518 KB)- Remove committed frontend/test-results/.last-run.json- Add frontend/playwright-report/, frontend/test-results/, frontend/.vite/ to .gitignore so git add rejects them locally before any PR- Fix scripts/check-artifacts.sh to scan already-tracked files via git ls-files, not only PR diffs -- the diff-only check cannot catch artifacts on main- Add .gitattributes with eol=lf for shell scripts to prevent CRLF corruption on Windows checkoutsCloses utksh1#264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DevOps][Advanced] Generated playwright-report/index.html (529 KB) is committed to the repo — gitignore and CI artifact guard missing

1 participant