Skip to content

Fix docker errors in test#3924

Merged
mashehu merged 2 commits intonf-core:devfrom
rrahn:fix/docker-test-other-error
Dec 2, 2025
Merged

Fix docker errors in test#3924
mashehu merged 2 commits intonf-core:devfrom
rrahn:fix/docker-test-other-error

Conversation

@rrahn
Copy link
Copy Markdown
Contributor

@rrahn rrahn commented Nov 24, 2025

When running on our infrastructure I get different error messages for the invalid docker pulls.
For example in the test test_docker_save_image the error for the image this-image-cannot-possibly-be-pulled-to-this-machine:latest is
Error response from daemon: No such image: this-image-cannot-possibly-be-pulled-to-this-machine:latest\n and thus does not match any of the patterns in the DockerError class.
Or in test_docker_pull_image_docker_installed for the container ghcr.io/not-a-real-registry/this-container-does-not-exist the actual error message is Using default tag: latest\n', 'Error response from daemon: error from registry: denied\n', 'denied\n'.
Thus, it will return OtherError which causes the test cases to fail. I am not really sure, what is expected here, so I added OtherError as possible assert.

Blocked by #3920

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

@mashehu
Copy link
Copy Markdown
Contributor

mashehu commented Nov 25, 2025

@nf-core-bot changelog

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.65%. Comparing base (3ebc945) to head (f2e58c2).

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rrahn rrahn force-pushed the fix/docker-test-other-error branch from 780780e to 5bb2354 Compare November 26, 2025 16:14
@rrahn rrahn force-pushed the fix/docker-test-other-error branch from b09d324 to 02e07e3 Compare December 2, 2025 09:33
@rrahn
Copy link
Copy Markdown
Contributor Author

rrahn commented Dec 2, 2025

@mashehu can this be merged? The errors seem not related. They are already present in dev.

@mashehu mashehu merged commit b6081d5 into nf-core:dev Dec 2, 2025
111 of 113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants