Skip to content

chore: untrack cypress downloads run artifact - #3475

Merged
chuckcarpenter merged 1 commit into
mainfrom
claude/loving-tesla-66d070
Aug 13, 2026
Merged

chore: untrack cypress downloads run artifact#3475
chuckcarpenter merged 1 commit into
mainfrom
claude/loving-tesla-66d070

Conversation

@chuckcarpenter

Copy link
Copy Markdown
Member

Problem

shepherd.js/cypress/downloads/downloads.html is a 2.7MB run artifact that was committed by accident in #3342 ("Drop support for node 18, move tests"). Despite the .html name it isn't HTML at all — it's a Chrome extension (Cr24 magic bytes) that landed in Cypress' default downloadsFolder during someone's local run.

Cypress clears cypress/downloads/ at the start of every run, so pnpm -F shepherd.js test:cy:ci deletes the file and leaves a spurious D entry in git status that has to be restored with git checkout -- after every local test run.

Change

git rm --cached on the file. That's the whole diff.

No ignore rule was needed. shepherd.js/.gitignore line 8 already ignores /cypress/, which covers downloads/, screenshots/, and videos/ alike — this is the existing convention (the root .gitignore uses the same blanket /cypress/ rule). The file was tracked only because it got force-added past that rule. Adding a narrower cypress/downloads/ entry would be redundant and would wrongly imply the sibling artifact dirs aren't already covered.

Nothing references it

  • git grep downloads across all tracked files (excluding the blob, lockfile, and changelog) returns zero hits
  • test/cypress/cypress.config.js sets no downloadsFolder
  • No spec asserts on downloads; the only download string in the repo is an unrelated URL in a prism.js banner comment
  • No CI workflow references the path

Verification

Committed the change, then ran the suite on a clean tree:

pnpm -F shepherd.js test:cy:ci

All 44 tests passed across 6 specs, and git status --porcelain came back empty afterward. Cypress emptied cypress/downloads/ as expected, and the directory now produces no status noise because the pre-existing ignore rule finally applies.

🤖 Generated with Claude Code

`shepherd.js/cypress/downloads/downloads.html` is a 2.7MB Cypress run
artifact that was committed by accident in #3342. Despite the name it
isn't HTML at all -- it's a Chrome extension (`Cr24` magic bytes) that
landed in Cypress' default `downloadsFolder` during a local run.

Cypress clears `cypress/downloads/` at the start of every run, so
`pnpm -F shepherd.js test:cy:ci` deleted the file and left a spurious
`D` entry in `git status` that had to be restored with `git checkout --`.

Nothing references it: `git grep downloads` across all tracked files
returns no hits, the Cypress config sets no `downloadsFolder`, and no
spec asserts on downloads.

No ignore rule is needed -- `shepherd.js/.gitignore` already ignores
`/cypress/`, which covers `downloads/`, `screenshots/`, and `videos/`.
The file was tracked only because it was force-added past that rule.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shepherd-docs Ready Ready Preview Aug 12, 2026 1:25pm
shepherd-landing Ready Ready Preview Aug 12, 2026 1:25pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

💤 Files selected but had no reviewable changes (1)
  • shepherd.js/cypress/downloads/downloads.html
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bacac8a7-011f-4a1e-91d4-6cffad9f2c85

📥 Commits

Reviewing files that changed from the base of the PR and between 4b101e1 and e686f9d.

📒 Files selected for processing (1)
  • shepherd.js/cypress/downloads/downloads.html

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qltysh

qltysh Bot commented Aug 12, 2026

Copy link
Copy Markdown

Qlty


Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@chuckcarpenter
chuckcarpenter merged commit 1d9c664 into main Aug 13, 2026
10 checks passed
@chuckcarpenter
chuckcarpenter deleted the claude/loving-tesla-66d070 branch August 13, 2026 07:25
@github-actions github-actions Bot mentioned this pull request Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant