-
Notifications
You must be signed in to change notification settings - Fork 108
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(ci): prevent truncating the upgrade proposal with tee #2453
Conversation
WalkthroughThis update modifies a script in the local network setup of the project, specifically Changes
Sequence Diagram(s)No sequence diagrams necessary as the change pertains to a minor adjustment in script logic. 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 Configration 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.
Actionable comments posted: 1
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- contrib/localnet/scripts/start-upgrade-orchestrator.sh (1 hunks)
Additional context used
Path-based instructions (1)
contrib/localnet/scripts/start-upgrade-orchestrator.sh (1)
Pattern
**/*.sh
: Review the shell scripts, point out issues relative to security, performance, and maintainability.
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)
- contrib/localnet/scripts/start-upgrade-orchestrator.sh (1 hunks)
Additional context used
Path-based instructions (1)
contrib/localnet/scripts/start-upgrade-orchestrator.sh (1)
Pattern
**/*.sh
: Review the shell scripts, point out issues relative to security, performance, and maintainability.
Additional comments not posted (2)
contrib/localnet/scripts/start-upgrade-orchestrator.sh (2)
26-26
: Update the echo statement to reflect the new height value.The echo statement still references the old height value of 1. Update it to reflect the new height value of 2.
- echo "current height is ${CURRENT_HEIGHT}, waiting for 1" + echo "current height is ${CURRENT_HEIGHT}, waiting for 2"
29-29
: Update the echo statement to reflect the new height value.The echo statement still references the old height value of 1. Update it to reflect the new height value of 2.
- echo "current height is ${CURRENT_HEIGHT}, waiting for 1" + echo "current height is ${CURRENT_HEIGHT}, waiting for 2"
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)
- contrib/localnet/scripts/start-upgrade-orchestrator.sh (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- contrib/localnet/scripts/start-upgrade-orchestrator.sh
311c1dd
to
611ea80
Compare
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)
- contrib/localnet/scripts/start-upgrade-orchestrator.sh (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- contrib/localnet/scripts/start-upgrade-orchestrator.sh
611ea80
to
f53b239
Compare
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)
- contrib/localnet/scripts/start-upgrade-orchestrator.sh (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- contrib/localnet/scripts/start-upgrade-orchestrator.sh
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.
This is a safer approach
Description
It seem the tee command sometimes opens and truncates
upgrade.json
beforecat upgrade.json
finishes reading it. Write it to a separate file to ensure this doesn't happen.Old Description
Try to fix the upgrade tests by waiting a bit longer before submitting the proposal. I have no idea why this was stable for a long time but is now unstable.
Closes #2449
Update: this is not working:
How Has This Been Tested?
Summary by CodeRabbit