-
Notifications
You must be signed in to change notification settings - Fork 33
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(solidity-devops): correctly save new deployments when script entry function is not run()
#2883
Conversation
WalkthroughThe updates introduce a Changes
Poem
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 Configuration File (
|
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.
PR Summary
- Updated
packages/solidity-devops/js/forgeScriptRun.js
to includecurrentTimestamp
ingetNewDeploymentReceipts
call. - Modified
packages/solidity-devops/js/utils/deployments.js
to addtimestamp
parameter ingetNewDeploymentReceipts
. - Ensured accurate tracking and saving of deployment receipts based on script execution time.
2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
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 (2)
- packages/solidity-devops/js/forgeScriptRun.js (1 hunks)
- packages/solidity-devops/js/utils/deployments.js (1 hunks)
Additional comments not posted (2)
packages/solidity-devops/js/forgeScriptRun.js (1)
61-65
: Ensure correct parameter passing togetNewDeploymentReceipts
.The addition of
currentTimestamp
togetNewDeploymentReceipts
is correctly implemented. This change aligns with the PR's objective to handle deployments irrespective of the entry function's name, ensuring that deployment receipts are fetched based on the current timestamp.packages/solidity-devops/js/utils/deployments.js (1)
180-196
: Review the updatedgetNewDeploymentReceipts
function.The addition of the
timestamp
parameter togetNewDeploymentReceipts
is correctly implemented. The function now filters files based on the timestamp, ensuring that only recent deployment receipts are processed. This is a crucial update for handling deployments dynamically based on when they were created, which supports the PR's goal of improving the robustness of deployment tracking.
Deploying sanguine-fe with
|
Latest commit: |
9e5e96d
|
Status: | ✅ Deploy successful! |
Preview URL: | https://81d45574.sanguine-fe.pages.dev |
Branch Preview URL: | https://fix-solidity-devops-new-depl.sanguine-fe.pages.dev |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2883 +/- ##
====================================================
+ Coverage 27.04966% 90.47619% +63.42653%
====================================================
Files 116 54 -62
Lines 5135 1008 -4127
Branches 80 80
====================================================
- Hits 1389 912 -477
+ Misses 3701 93 -3608
+ Partials 45 3 -42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View 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.
PR Summary
(updates since last review)
- Added check for broadcast directory existence in
/packages/solidity-devops/js/utils/deployments.js
- Logged error if broadcast directory does not exist to prevent runtime errors
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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)
- packages/solidity-devops/js/utils/deployments.js (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/solidity-devops/js/utils/deployments.js
run()
run()
Description
See title.
Summary by CodeRabbit