Skip to content

ci(percy): only run snapshot comparison on initial push and manually after#16397

Open
petesfrench wants to merge 3 commits into
mainfrom
WD-36846
Open

ci(percy): only run snapshot comparison on initial push and manually after#16397
petesfrench wants to merge 3 commits into
mainfrom
WD-36846

Conversation

@petesfrench
Copy link
Copy Markdown
Contributor

@petesfrench petesfrench commented May 28, 2026

Done

  • only run snapshot comparison on initial push and manually after with the addition of the run-percy label
  • add a list of paths that have to be touched for the action to trigger
  • blocked from running on renovate or dependabot PRs

QA

Please review the list of paths to see I have reasonably covered everything.

  • See percy has run not run on this PR as it doesn't contain one of the validated paths
  • Create a fork of this PR again main. make a html change
  • See that the percy action runs
  • Push another change, see it doesn't run again
  • Add the label run-percy, see that it runs

Issue / Card

Fixes WD-36846

Copilot AI review requested due to automatic review settings May 28, 2026 14:32
@webteam-app
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts Percy CI workflows so visual snapshot comparisons run on initial PR events and can be manually retriggered via labeling, instead of running on every PR push.

Changes:

  • Removes automatic Percy runs on synchronize events.
  • Adds labeled triggers intended for manual run-percy execution.
  • Adds path filters for template, Sass, frontend JS, navigation, and snapshot config changes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/percy.yml Updates Percy workflow triggers and job gating for same-repository PRs.
.github/workflows/percy-fork-pr.yml Updates Percy workflow triggers and job gating for fork PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/percy.yml Outdated
if: github.event.pull_request.head.repo.full_name == github.repository
if: >
github.event.pull_request.head.repo.full_name == github.repository &&
(github.event_name != 'labeled' || github.event.label.name == 'run-percy')
Comment thread .github/workflows/percy-fork-pr.yml Outdated
if: github.event.pull_request.head.repo.full_name != github.repository
if: >
github.event.pull_request.head.repo.full_name != github.repository &&
(github.event_name != 'labeled' || github.event.label.name == 'run-percy')
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.36%. Comparing base (7cb4338) to head (e439c95).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16397      +/-   ##
==========================================
+ Coverage   48.33%   48.36%   +0.03%     
==========================================
  Files          37       37              
  Lines        5905     5905              
==========================================
+ Hits         2854     2856       +2     
+ Misses       3051     3049       -2     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@petesfrench petesfrench requested a review from Onibenjo June 1, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants