Show doctl's error when the Deploy workflow's update fails
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read .github/workflows/deploy.yml around lines 211–213 and the existing comment about pinning the live spec. Then inspect config/tests/test_deploy_workflows.py for the workflow checks and extend them to cover failed update and redeploy output. Done means failures show only doctl's error, successful commands print nothing, and tests ensure the app spec and encrypted secrets never appear in logs.
Written by the indexing model from the issue text.
Description
Problem: When the Deploy workflow's "Start the deployment" step fails, the log shows only Process completed with exit code 1. and no reason.
The step runs doctl apps update ... -o json > /dev/null (.github/workflows/deploy.yml:211), or doctl apps create-deployment ... -o json > /dev/null (line 213) for a redeploy. With -o json, doctl writes its error to stdout as JSON, so the redirect discards it along with the success output.
This happened on the first v0.1.0 deploy (run 47436954868). The token lacked a scope the update needed, and the only way to find out was to rebuild the pinned spec by hand and test it with a different token.
The redirect is there for a reason: the success output holds the app spec, with its encrypted secret values, and the workflow never prints the spec (see the comment above "Pin the live spec to the image"). The fix must keep that.
Scope:
- On failure of
doctl apps updateordoctl apps create-deployment, print doctl's error message (for example theerrors[].detailfield of its JSON output), and nothing else from the output - On success, print nothing from the output, as today
- Keep the output file, if one is used, under
RUNNER_TEMPwith the step'sumask 077 - Extend
config/tests/test_deploy_workflows.pyso it checks that the step surfaces the error and never prints the spec
Acceptance criteria:
- A failed update or redeploy shows doctl's error message in the run log
- No run log ever contains the app spec or an encrypted secret value
Related: #63 (Deploy workflow), #103
Size: S
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 206
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openpickleball/backend
-
area:infra documentation priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#472 ·
Maintainers usually reply within 1 day
-
area:infra documentation type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openpickleball/backend#196 ·
Maintainers usually reply within 1 day
-
area:infra type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#195 ·
Maintainers usually reply within 1 day
-
area:api enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
openpickleball/backend#470 ·
Maintainers usually reply within 1 day
-
area:infra bug priority:p1 size:S
Difficulty 3/5 1-2 days Newbie friendliness 75/100
openpickleball/backend#468 ·
Maintainers usually reply within 1 day
All issues in openpickleball/backend
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day