-
Notifications
You must be signed in to change notification settings - Fork 39
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
Reorder Deploy L2 jobs, loadbalancer must follow check-obscuro-is-healthy #1758
Reorder Deploy L2 jobs, loadbalancer must follow check-obscuro-is-healthy #1758
Conversation
WalkthroughThe changes in the workflow files indicate an improvement in the deployment process by integrating a health check mechanism. Before updating the load balancer in the testnet environment, both workflows now require a successful pass of the 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 (
|
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.
Review Status
Actionable comments generated: 2
Configuration used: CodeRabbit UI
Files selected for processing (2)
- .github/workflows/manual-deploy-testnet-l2.yml (2 hunks)
- .github/workflows/manual-deploy-testnet-validator.yml (1 hunks)
Additional comments: 1
.github/workflows/manual-deploy-testnet-l2.yml (1)
- 310-314: The
update-loadbalancer
job now correctly depends oncheck-obscuro-is-healthy
. This change aligns with the PR objectives to ensure the load balancer is updated only after the node health check is successful.
@@ -196,6 +196,7 @@ jobs: | |||
# needs: | |||
# - build | |||
# - deploy | |||
# - check-obscuro-is-healthy |
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.
The job update-loadbalancer
has been commented out. If this is intentional and the job is no longer needed, it should be removed to avoid confusion.
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.
@otherview this particular workflow segment was commented out before (this not the primary workflow we are running generally), so I put in the constraint but left as is... is this correct that we're not using this part of this workflow for now?
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.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
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 correct - Load Balancer can't be updated until the L1 and L2 is bootstrapped
so no point of updating the balancer to a node that isn't up to date
# needs: | ||
# - build | ||
# - deploy | ||
# - check-obscuro-is-healthy | ||
# runs-on: ubuntu-latest | ||
# environment: | ||
# name: ${{ github.event.inputs.testnet_type }} |
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.
📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [199-338]
The dependency on check-obscuro-is-healthy
for the update-loadbalancer
job is commented out. To ensure the load balancer is not updated until the node is healthy, uncomment these lines.
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.
lgtm - probably can reduce the need
since they are chained ?
- build | ||
- deploy | ||
- check-obscuro-is-healthy |
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.
Does it need these three or just check-obscuro-is-healthy
?
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.
I had come across some opinionated view, whether to minimize or be explicit on these and leave it in and had usually done latter, (but perhaps that only makes sense in LARGE workflows to not need to trace job dependencies), you have motivated me to remove for the cleaner style. ⚡ 👍
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- .github/workflows/manual-deploy-testnet-l2.yml (2 hunks)
- .github/workflows/manual-deploy-testnet-validator.yml (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- .github/workflows/manual-deploy-testnet-l2.yml
- .github/workflows/manual-deploy-testnet-validator.yml
Why this change is needed
L2 deployment workflows currently parallelize jobs for load balancer update with osbscuro-node-healthcheck. In cases where requests are processed via the LB prior to the node-persistence init, calls such as
getTransactionCount
thrownil
exception.On the deployment side, correct ordering should be be maintained.
ten-protocol/ten-internal/issues/2828
What changes were made as part of this PR
update-loadbalancer
in workflows given "needs: check-obscuro-is-healthy` to enforce ordering.PR checks pre-merging
Please indicate below by ticking the checkbox that you have read and performed the required
PR checks