Skip to content

host: Remove Monaco Percy snapshots and add lint rule#3961

Open
backspace wants to merge 7 commits intomainfrom
host/no-percy-monaco
Open

host: Remove Monaco Percy snapshots and add lint rule#3961
backspace wants to merge 7 commits intomainfrom
host/no-percy-monaco

Conversation

@backspace
Copy link
Contributor

@backspace backspace commented Feb 6, 2026

This removes snapshots that cause common false negatives, like here. We haven’t been able to find a way to stabilise these and they’re a constant noise. Other snapshots may qualify, we can remove them as we see them.

This also adds a custom lint rule that enforces the use of the overridden percySnapshot. You can see it warning here about the incorrect import, which is now fixed.

@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Preview deployments

@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Host Test Results

    1 files  ±0      1 suites  ±0   1h 47m 28s ⏱️ ±0s
1 944 tests ±0  1 927 ✅ ±0  17 💤 ±0  0 ❌ ±0 
1 959 runs  ±0  1 942 ✅ ±0  17 💤 ±0  0 ❌ ±0 

Results for commit 233b4d5. ± Comparison against base commit e2a43a0.

♻️ This comment has been updated with latest results.

@backspace backspace changed the title host: Remove Monaco Percy snapshots host: Remove Monaco Percy snapshots and add lint rule Feb 7, 2026
@backspace backspace marked this pull request as ready for review February 7, 2026 00:57
@backspace backspace requested a review from a team February 7, 2026 00:58
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 233b4d5713

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +32 to +35
fix(fixer) {
return fixer.replaceText(
node,
"import { percySnapshot } from '@cardstack/host/tests/helpers';",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make the autofix safe for non-percySnapshot imports

The rule applies to any ImportDeclaration from @percy/ember, but the autofix always replaces the entire import with import { percySnapshot } .... If a file imports other exports (e.g., import { foo } from '@percy/ember' or import * as percy ...), running eslint --fix will silently drop those imports and change the binding, leading to runtime errors where the original symbols are used. Consider limiting the fixer to cases that actually import percySnapshot (default or named), or remove the autofix and only report.

Useful? React with 👍 / 👎.

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.

1 participant