[NoQA] Coverage: Fixed Template / Upstream Main / Baseline#67706
Merged
blimpich merged 1 commit intoExpensify:mainfrom Aug 4, 2025
Merged
[NoQA] Coverage: Fixed Template / Upstream Main / Baseline#67706blimpich merged 1 commit intoExpensify:mainfrom
blimpich merged 1 commit intoExpensify:mainfrom
Conversation
Contributor
Author
|
@JS00001 Please ignore this, we're working on coverage testing - Ben will review / merge this. |
blimpich
approved these changes
Aug 4, 2025
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Contributor
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.1.89-1 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.89-21 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
🎯 All Critical Fixes Are In Place:
1.
checkCoverageChanges.sh• ✅ Hardcoded upstream to Expensify/App
• ✅ Improved shallow repository handling
• ✅ Fallback diff range logic
2.
generateBaselineCoverage.sh• ✅ Fixed syntax: git checkout upstream/main -- .
• ✅ Uses upstream instead of origin
• ✅ Preserves changed_files.txt with backup/restore
• ✅ Fetches from correct baseline repo
3.
waitForJestTests.ts• ✅ Unified PR number extraction
• ✅ Single API call for accurate headSha
• ✅ All SHA comparisons use headSha consistently
4.
postTestCoverageComment.ts• ✅ Improved file path matching logic
• ✅ Fixed baseline 0 comparison logic
• ✅ Includes files with 0% coverage
• ✅ Excludes type-only files appropriately
5. ✅ postTestCoverageComment.ts - Template Rendering
• ✅ Fixed table row rendering: Added newline after each table row
• ✅ Proper markdown formatting: Each file displays on separate row
• ✅ Multi-file display: Shows all changed files with coverage data
🚀 Expected Workflow Behavior:
For Both Internal + Fork PRs:
The workflow should now:
• ✅ Work consistently for internal Expensify PRs
• ✅ Work correctly for fork PRs
• ✅ Show multiple files in coverage details
• ✅ Provide accurate baseline comparisons
• ✅ Handle edge cases gracefully
cc @blimpich
Fixed Issues
$
PROPOSAL:
Tests
N/A
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop