-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(native-app): Add typecheck to native app into our pipeline #14607
Conversation
WalkthroughThe updates primarily focus on enhancing the caching mechanism for NodeJS dependencies in GitHub workflows. This includes modifying paths for node_modules caching, renaming cache keys, and introducing composite actions for cache preparation and key calculation. Additionally, a build command in the project configuration has been updated to ensure proper type checking. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
18497f8
to
8736bc5
Compare
Datadog ReportAll test runs ✅ 5 Total Test Services: 0 Failed, 5 Passed Test Services
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14607 +/- ##
========================================
Coverage 36.91% 36.91%
========================================
Files 6327 6327
Lines 128886 128886
Branches 36776 36643 -133
========================================
Hits 47574 47574
Misses 81312 81312
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
Out of diff range and nitpick comments (1)
.github/actions/prepare-cache/action.yml (1)
1-2
: Ensure the description is detailed enough to understand the action's purpose.Consider enhancing the description to provide more specific details about what dependencies are cached and how the environment is set up. This will help future developers understand the action's purpose more clearly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- .github/actions/prepare-cache/action.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/actions/prepare-cache/action.yml
…and.is into native-app-ci-cd-typecheck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- .github/actions/prepare-cache/action.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/actions/prepare-cache/action.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- .github/actions/calculate-cache-keys/action.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/actions/calculate-cache-keys/action.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Out of diff range and nitpick comments (1)
.github/workflows/push.yml (1)
278-298
: The introduction of thecalculate-cache-keys
action and its usage in the caching steps is a significant improvement. It centralizes the cache key generation, which can help avoid discrepancies and errors in key generation across different jobs or steps.Consider documenting the specific hash functions or methods used in the
calculate-cache-keys
action to ensure clarity and maintainability.
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/push.yml (6 hunks)
Additional comments not posted (4)
.github/workflows/push.yml (4)
165-167
: Ensure the new cache keys are correctly utilized in subsequent steps.
336-348
: The separation of cache preparation for Docker layers is a good practice as it allows for more granular control and optimization of the caching process specific to Docker builds.
421-437
: The repetition of cache preparation steps in different jobs (liketests
anddocker-build
) is necessary due to the scope of job outputs in GitHub Actions. However, ensure that the cache keys are consistently applied across all instances to prevent any cache miss due to key mismatches.
484-513
: The handling of cache in thedocker-build
job, especially with the conditional checks (if: steps.gather.outcome == 'success'
), ensures that caching operations are only performed when the preliminary steps are successful, thus avoiding unnecessary operations on failed builds.
…and.is into native-app-ci-cd-typecheck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Out of diff range and nitpick comments (1)
.github/actions/prepare-cache/action.yml (1)
49-77
: Consider increasing the threshold for cache validity checks.The current threshold of 1000 bytes might be too low for
node_modules
andgenerated_files.tar.gz
. Consider setting a more realistic size threshold to ensure meaningful cache validation.
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- .github/actions/prepare-cache/action.yml (1 hunks)
Additional comments not posted (3)
.github/actions/prepare-cache/action.yml (3)
20-47
: Cache preparation and checking steps are correctly implemented.
101-113
: Building dependencies and running code generation steps are well-implemented.
122-139
: Output gathering step is correctly implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/push.yml (6 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/push.yml
@coderabbitai resolve |
Actions PerformedComments resolved and changes approved. |
Add typecheck to native app into our pipeline
Checklist:
Summary by CodeRabbit
@coderabbitai ignore