Skip to content

AzureRepositoryProvider readBytes corrupt #6286

Merged
pditommaso merged 4 commits intomasterfrom
azure-read-bytes
Jul 22, 2025
Merged

AzureRepositoryProvider readBytes corrupt #6286
pditommaso merged 4 commits intomasterfrom
azure-read-bytes

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.

Signed-off-by: Nathan Johnson <nathan.johnson@seqera.io>
@netlify
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 <paolo.ditommaso@gmail.com>
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 <noreply@anthropic.com>
…roviderTest.groovy [ci skip]

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@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