Docker image pull errors are treated as success
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start at lib/DeployActions/DockerActions.php around lines 715–717 and read how the Docker image pull response is handled. Compare the JSON stream with the Docker message format linked in the issue to identify how failures are represented. Done when a pull that reports an error is treated as a failure; the issue does not name a test, so locate or add coverage for that behavior.
Written by the indexing model from the issue text.
Description
Describe the bug
To be fair, the docker API to pull images is also not quite nice.
Even when the pull fails, it retuns code 200.
In the json stream of responses it has the actual error messages.
Format: https://github.com/moby/moby/blob/master/api/types/jsonstream/message.go
related line of code: https://github.com/nextcloud/app_api/blob/634729d75dbca75a76dada69962e5bf99154a149/lib/DeployActions/DockerActions.php#L715-L717
Steps/Code to Reproduce
/
Expected Results
/
Actual Results
/
Setup configuration
app_api = 36.0.0-dev.0
nextcloud = 36.0.0
- Dominant language
- PHP
- Stars
- 202
- Forks
- 30
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 24
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 nextcloud/app_api
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
deploy discussion
Difficulty 5/5 Over a week Newbie friendliness 20/100
nextcloud/app_api#1236 · 1 reaction ·
Maintainers usually reply within 1 day
-
deploy docker enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
bug deploy docker
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 62/100
nextcloud/app_api#1212 · 1 comment ·
Maintainers usually reply within 1 day
All issues in nextcloud/app_api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Adyen/adyen-magento2#3453 ·
Maintainers usually reply within 8 days
-
component/media domain/discovery
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
simplesamlphp/simplesamlphp#2695 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day