Show doctl's error when the Deploy workflow's update fails

Open Beginner friendly
#471 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@GeoBradDev is already working on this.

Since Dec 4, 2026.

  • #473 by @GeoBradDev — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, python
Domain
ci-cd, devops

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

area:infra bug priority:p2 size:S

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 update or doctl apps create-deployment, print doctl's error message (for example the errors[].detail field 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_TEMP with the step's umask 077
  • Extend config/tests/test_deploy_workflows.py so 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openpickleball/backend

All issues in openpickleball/backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.