fix(deploy-candidate): Show app name in fetch error notification#6622
Conversation
When the fetch error fires from send_build_instructions_and_add_build_steps (outside the "apps" stage), the else branch showed a generic message with no app name. The GithubFetchError already carries the app name in args[1], so extract it and include it in the notification message.
|
| Filename | Overview |
|---|---|
| press/press/doctype/deploy_candidate/deploy_notifications.py | Extracts app_name from exc.args[1] in the else branch so the notification message names the failing app; falls back to 'App' when args[1] is absent. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[update_with_app_not_fetchable called] --> B{stage_slug == apps?}
B -- Yes --> C[app_name = failed_step.step]
B -- No --> D{exc.args has 2+ items?}
D -- Yes --> E[app_name = exc.args 1]
D -- No --> F[app_name = empty string]
C --> G[Message: bold app_name could not be fetched]
E --> H{app_name truthy?}
F --> H
H -- Yes --> I[app_str = bold app_name]
H -- No --> J[app_str = App]
I --> K[Message: app_str could not be fetched from GitHub]
J --> K
K --> L[Set details message and assistance_url]
G --> L
Reviews (1): Last reviewed commit: "fix(deploy-candidate): Show app name in ..." | Re-trigger Greptile
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #6622 +/- ##
===========================================
- Coverage 50.18% 50.17% -0.01%
===========================================
Files 990 990
Lines 82967 82969 +2
Branches 523 523
===========================================
Hits 41633 41633
- Misses 41302 41304 +2
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@mergify backport master |
✅ Backports have been createdDetails
|
fix(deploy-candidate): Show app name in fetch error notification (backport #6622)
When the fetch error fires from send_build_instructions_and_add_build_steps (outside the "apps" stage), the else branch showed a generic message with no app name. The GithubFetchError already carries the app name in args[1], so extract it and include it in the notification message.