Skip to content

Support crc64nvme checksum #2354

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 2 commits into from
Apr 27, 2025
Merged

Support crc64nvme checksum #2354

merged 2 commits into from
Apr 27, 2025

Conversation

afranken
Copy link
Member

Description

Support crc64nvme checksum, add tests.
Refactor S3Mock and tests to use new checksum related types from AWS SDK v2.

Related Issue

#2334

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

@afranken afranken self-assigned this Apr 25, 2025
@afranken afranken force-pushed the 2334-support-crc64nvme-checksums branch 3 times, most recently from 74c286f to 635347f Compare April 26, 2025 19:30
@afranken afranken requested a review from Copilot April 26, 2025 19:30
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for the new crc64nvme checksum along with corresponding tests and refactors components to use the updated checksum types from AWS SDK v2.

  • Added support for crc64nvme in header parsing and checksum calculations.
  • Updated interfaces and tests to use DefaultChecksumAlgorithm and the new conversion methods.
  • Minor adjustments in changelog and ancillary integrations.

Reviewed Changes

Copilot reviewed 24 out of 26 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
server/src/main/java/com/adobe/testing/s3mock/util/HeaderUtil.java Adds header check for crc64nvme checksum
server/src/main/java/com/adobe/testing/s3mock/util/DigestUtil.java Adapts checksum utility to use updated checksum algorithm types
server/src/main/java/com/adobe/testing/s3mock/store/MultipartStore.java Changes multipart upload checksum conversion to use new method
server/src/main/java/com/adobe/testing/s3mock/service/ServiceBase.java Adds handling for crc64nvme checksum in checksum verification
server/src/main/java/com/adobe/testing/s3mock/dto/ChecksumAlgorithm.java Refactors algorithm enum mapping to new DefaultChecksumAlgorithm
server/src/main/java/com/adobe/testing/s3mock/dto/Checksum.java Adds new crc64nvme field (potential formatting issue in JSON property)
integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/AclIT.kt Removes variable assignment for grantee email leaving a stray literal
Remaining integration tests Refactor checksum tests to use DefaultChecksumAlgorithm consistently
CHANGELOG.md Updates dependency versions and related metadata changes
Files not reviewed (2)
  • pom.xml: Language not supported
  • server/pom.xml: Language not supported
Comments suppressed due to low confidence (1)

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/AclIT.kt:111

  • A stray string literal appears to replace the variable assignment for granteeEmail. Consider restoring the assignment (e.g., 'val granteeEmail = "jane@doe.com"') or removing the unused literal if not required.
    "jane@doe.com"

Also migrate to new ChecksumAlgorithm related types from AWS SDK v2.

Fixes #2334
@afranken afranken force-pushed the 2334-support-crc64nvme-checksums branch from 635347f to dd97462 Compare April 27, 2025 20:03
@afranken afranken merged commit 75fbe14 into main Apr 27, 2025
6 checks passed
@afranken afranken deleted the 2334-support-crc64nvme-checksums branch April 27, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant