Skip to content

AzureRepositoryProvider readBytes corrupt #6286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 22, 2025
Merged

Conversation

swingingsimian
Copy link
Collaborator

@swingingsimian swingingsimian commented Jul 18, 2025

The AzureRepositoryProvider readBytes method appears to corrupt data for image files.

This PR contains 2 identical tests for a Gitea and Azure repo, both of which simple readBytes for an image in each and check whether the bytes returned are a valid image. The Gitea test passes whilst the Azure test fails.

The tests are currently set up with a public Gitea repo, so the existing auth should work for that. The azure repo is private, so will need changing to a repo which the current CI env has access to.

Copy link

netlify bot commented Jul 18, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 590da0c
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/687fb8a3f1a9a90009037f9d

pditommaso and others added 2 commits July 22, 2025 16:53
Signed-off-by: Paolo Di Tommaso <[email protected]>
Changed Azure API call from JSON-embedded content to direct binary download
using 'download: true' parameter. This prevents binary data corruption that
occurred when converting JSON-escaped strings back to bytes.

The test now passes with correct file size (22,915 bytes) and SHA256 hash.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
…roviderTest.groovy [ci skip]

Signed-off-by: Paolo Di Tommaso <[email protected]>
@pditommaso pditommaso merged commit f6eb2f7 into master Jul 22, 2025
5 checks passed
@pditommaso pditommaso deleted the azure-read-bytes branch July 22, 2025 16:30
@pditommaso
Copy link
Member

Still some aws infra tests issue tho :/

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.

AzureRepositoryProvider readBytes corrupt image files
2 participants