Skip to content
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

[BREAKING IN 2.20] Added assert for compression ON grouping OFF #23608

Merged
merged 10 commits into from
Jan 21, 2025

Conversation

MarioJGMsoft
Copy link
Contributor

@MarioJGMsoft MarioJGMsoft commented Jan 17, 2025

Description

We no longer want to make it possible to create a container that has grouping off and compression on, so we will throw an error if we detect that it has been created that way.

Acceptance Criteria

A container throws an error when it is configured with compression on and grouping off.

Execution Plan

Add code to container runtime
Update related tests to make sure that they expect an error to be thrown.

Reviewer Guidance

Please let me know if there's something that I'm missing or that I should know about. Thanks!

Fixes: AB#28625

@github-actions github-actions bot added base: main PRs targeted against main branch area: runtime Runtime related issues area: tests Tests to add, test infrastructure improvements, etc labels Jan 17, 2025
@MarioJGMsoft MarioJGMsoft changed the title fix: added assert for compression ON grouping OFF Added assert for compression ON grouping OFF Jan 17, 2025
Some places tried to use undefined to disable.
This does not work, it gets replaced with default values.
@markfields markfields marked this pull request as ready for review January 20, 2025 17:38
@markfields markfields requested a review from a team as a code owner January 20, 2025 17:38
@markfields markfields added the release-blocking Must be addressed before we cut and publish the next release label Jan 20, 2025
@markfields
Copy link
Member

markfields commented Jan 20, 2025

@dannimad -- Marking this as release-blocking. The removal of this deprecated option was reverted, but we still need to make this breaking behavior change in 2.20. (cc @jason-ha as FYI)

cc @jzaffiro for docs review. Thanks!

@markfields markfields changed the title Added assert for compression ON grouping OFF BREAKING IN 2.20] Added assert for compression ON grouping OFF Jan 20, 2025
minimumBatchSizeInBytes: 614400,
compressionAlgorithm: CompressionAlgorithms.lz4,
},
compressionOptions: disabledCompressionConfig,
Copy link
Member

Choose a reason for hiding this comment

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

expand down to see enableGroupedBatching: false

@@ -231,7 +231,7 @@ describeCompat("blobs", "FullCompat", (getTestObjectProvider, apis) => {
]);
});

[false, true].forEach((enableGroupedBatching) => {
[true].forEach((enableGroupedBatching) => {
Copy link
Member

@markfields markfields Jan 20, 2025

Choose a reason for hiding this comment

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

We should revisit the test matrix here after this merges - may want to ensure coverage with grouping and compression both disabled?

@@ -257,7 +255,7 @@ describeCompat("Message size", "NoCompat", (getTestObjectProvider, apis) => {

const chunkingBatchesTimeoutMs = 200000;

[false, true].forEach((enableGroupedBatching) => {
[true].forEach((enableGroupedBatching) => {
Copy link
Member

Choose a reason for hiding this comment

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

Same as above, for future - what about both disabled?

@MarioJGMsoft MarioJGMsoft changed the title BREAKING IN 2.20] Added assert for compression ON grouping OFF [BREAKING IN 2.20] Added assert for compression ON grouping OFF Jan 21, 2025
Copy link
Contributor

@jzaffiro jzaffiro left a comment

Choose a reason for hiding this comment

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

Approved for docs!

@@ -120,6 +120,7 @@ describeCompat(
minimumBatchSizeInBytes: compression ? 1000 : Infinity,
compressionAlgorithm: CompressionAlgorithms.lz4,
},
enableGroupedBatching: compression, // Compression w/o grouping is not supported
Copy link
Member

Choose a reason for hiding this comment

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

@MarioJGMsoft I think we need to revisit this too - I think there's an existing gap in test coverage where "Grouping Disabled" isn't covered

@jason-ha
Copy link
Contributor

@dannimad -- Marking this as release-blocking. The removal of this deprecated option was reverted, but we still need to make this breaking behavior change in 2.20. (cc @jason-ha as FYI)

cc @jzaffiro for docs review. Thanks!

@MarioJGMsoft / @markfields, since the API change was moved out to 2.30, can you backfill with a replacement breaking change issue under 2.20 list?

@anthony-murphy, I think you spotted the Word incompatibility. Are you able to confirm that this doesn't similarly impact Word (as the API change did)?

@MarioJGMsoft MarioJGMsoft linked an issue Jan 21, 2025 that may be closed by this pull request
@MarioJGMsoft
Copy link
Contributor Author

@dannimad -- Marking this as release-blocking. The removal of this deprecated option was reverted, but we still need to make this breaking behavior change in 2.20. (cc @jason-ha as FYI)
cc @jzaffiro for docs review. Thanks!

@MarioJGMsoft / @markfields, since the API change was moved out to 2.30, can you backfill with a replacement breaking change issue under 2.20 list?

@anthony-murphy, I think you spotted the Word incompatibility. Are you able to confirm that this doesn't similarly impact Word (as the API change did)?

I added an issue to the breaking change list, let me know what you think about it.

@MarioJGMsoft MarioJGMsoft merged commit 92b695a into microsoft:main Jan 21, 2025
28 checks passed
@MarioJGMsoft MarioJGMsoft deleted the removeBatchGroupingChangeset branch January 22, 2025 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: runtime Runtime related issues area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch changeset-present release-blocking Must be addressed before we cut and publish the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removal of op compression without op grouping in v2.20
5 participants