-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix(engine): improve operation phase messages #25668
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(engine): improve operation phase messages #25668
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #25668 +/- ##
==========================================
+ Coverage 62.56% 62.57% +0.01%
==========================================
Files 353 353
Lines 50087 50087
==========================================
+ Hits 31336 31343 +7
+ Misses 15736 15731 -5
+ Partials 3015 3013 -2 ☔ View full report in Codecov by Sentry. |
| hooks, resources := tasks.Split(func(task *syncTask) bool { return task.isHook() }) | ||
|
|
||
| waitingFor := "completion of hook" | ||
| andMore := "resources" |
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.
nit: can you please rename these variables to something more meaningful? andMore and moreTasks are very confusing names to reason about.
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.
updated
Signed-off-by: Patroklos Papapetrou <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: reggie-k <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]>
… resources Refactor setRunningPhase to: - Split tasks into hooks and resources for clearer messaging - Prioritize hooks in the 'waiting for' message - Add 'hook' suffix when pending deletion of hooks - Handle empty task list gracefully This provides more accurate status messages during sync operations. Signed-off-by: Alexandre Gaudreault <[email protected]>
Add table-driven tests covering all message generation scenarios: - Empty tasks - Single/multiple resources waiting for healthy state - Single/multiple hooks waiting for completion - Mixed hooks and resources (prioritizes hooks) - Pending deletion for resources and hooks Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Mathieu Parent <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]>
…5660) Signed-off-by: Omar Nasser <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]>
873994c to
9bf4e93
Compare
leoluz
left a comment
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
Checklist: