Skip to content

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Aug 1, 2025

Evaluating the Snap bundle in watch mode was previously disabled because it could result in, for example, permissions being removed from the manifest immediately, because of some validator rules. In this PR, I've updated the logic so only manifest errors are fixed immediately in watch mode. Warnings are not fixed in watch mode, but are still fixed in build or when running mm-snap manifest --fix.

Closes #3536.

@codecov
Copy link

codecov bot commented Aug 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.27%. Comparing base (554d5d0) to head (9ed0943).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3553      +/-   ##
==========================================
- Coverage   98.28%   98.27%   -0.01%     
==========================================
  Files         417      417              
  Lines       11765    11758       -7     
  Branches     1827     1827              
==========================================
- Hits        11563    11555       -8     
- Misses        202      203       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@Mrtenz Mrtenz marked this pull request as ready for review August 1, 2025 11:55
@Mrtenz Mrtenz requested a review from a team as a code owner August 1, 2025 11:55
writeFileFn = fs.writeFile,
exports,
handlerEndowments,
watchMode = false,
Copy link
Member

@FrederikBolding FrederikBolding Aug 1, 2025

Choose a reason for hiding this comment

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

Would it be a lot more complicated to implement minimumSeverity or something instead of coupling this to watchMode?

Copy link
Member Author

Choose a reason for hiding this comment

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

Depends on if you think minimumSeverity === 'warning' is enough or if you want me to implement a proper algorithm ranking severities

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I was hoping it would be easy if our severities were already tied to numbers, but I guess they may not be. If they were it would be as simple as >= minimumSeverity

Copy link
Member Author

Choose a reason for hiding this comment

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

They are not, it's just 'warning' | 'error' at the moment.

Copy link
Member Author

Choose a reason for hiding this comment

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

Refactoring that feels out of scope

@Mrtenz Mrtenz requested a review from FrederikBolding August 1, 2025 13:29
@Mrtenz Mrtenz added this pull request to the merge queue Aug 1, 2025
Merged via the queue into main with commit 53180b4 Aug 1, 2025
119 of 120 checks passed
@Mrtenz Mrtenz deleted the mrtenz/cli-watch-eval branch August 1, 2025 13:56
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.

Enable eval in watch mode

3 participants