Skip to content

ACC-2780: support zip blueprint artifacts from s3 - #278

Merged
NielsCW merged 9 commits into
mainfrom
ACC-2780
Jun 15, 2026
Merged

ACC-2780: support zip blueprint artifacts from s3#278
NielsCW merged 9 commits into
mainfrom
ACC-2780

Conversation

@NielsCW

@NielsCW NielsCW commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@NielsCW
NielsCW force-pushed the ACC-2780 branch 2 times, most recently from 5ec12fc to 94e18a9 Compare April 21, 2026 11:19
@sonarqubecloud

sonarqubecloud Bot commented May 4, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots
67.3% Coverage on New Code (required ≥ 70%)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@NielsCW
NielsCW force-pushed the ACC-2780 branch 3 times, most recently from fe5cbd3 to 94837e1 Compare June 9, 2026 12:26
@NielsCW
NielsCW marked this pull request as ready for review June 12, 2026 10:52
@NielsCW
NielsCW requested a review from a team as a code owner June 12, 2026 10:52
Files.copy(response, tmpFile, StandardCopyOption.REPLACE_EXISTING);
}

return new ZipBlueprintArtifact(tmpFile);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this need to have its reference overwritten? So that it correctly references the original resource, not the temporary file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is handled in AbstractRemoteBlueprintArtifact, items loaded by load and loadAll are wrapped in a DelegateBlueprintArtifactItem. Since both S3BlueprintArtifact and ZipBlueprintArtifact extend AbstractRemoteBlueprintArtifact, the item will be wrapped twice (maybe not ideal, but it works).

Comment thread contentgrid-appserver-blueprintartifact-impl-s3/gradle.properties Outdated
@sonarqubecloud

Copy link
Copy Markdown

@NielsCW
NielsCW requested a review from vierbergenlars June 15, 2026 07:40
@NielsCW NielsCW changed the title ACC-2780: support zip artifacts from s3 ACC-2780: support zip blueprint artifacts from s3 Jun 15, 2026
@NielsCW
NielsCW merged commit 212b49c into main Jun 15, 2026
3 checks passed
@NielsCW
NielsCW deleted the ACC-2780 branch June 15, 2026 14:28
testImplementation 'org.assertj:assertj-core'
testImplementation testFixtures(project(':contentgrid-appserver-blueprintartifact-impl-utils'))
testImplementation testFixtures(project(':contentgrid-appserver-contentstore-impl-utils'))
testImplementation "org.testcontainers:junit-jupiter"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "org.testcontainers:testcontainers-junit-jupiter"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, doesn't work in spring boot 3

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