Skip to content

GridFS download test reenablement#1991

Open
rozza wants to merge 3 commits into
mongodb:mainfrom
rozza:JAVA-5839
Open

GridFS download test reenablement#1991
rozza wants to merge 3 commits into
mongodb:mainfrom
rozza:JAVA-5839

Conversation

@rozza
Copy link
Copy Markdown
Member

@rozza rozza commented Jun 2, 2026

This PR comes in 3 parts:

  • Removing the skip test
  • Clarifying the naming in UnitedTestModifications
  • Adding transform mechanism for Specification tests

JAVA-5839

vbabanin and others added 2 commits June 2, 2026 10:27
- Remove JAVA-5839 skip entry for "timeoutMS applied to entire download, not individual parts" test so it runs in CI

JAVA-5839
Rename dir/file/test to directory/fileDescription/testDescription
to clarify that 'file' refers to the spec file's description field,
not the filename, and 'test' refers to the individual test description.

JAVA-5839
@rozza rozza requested a review from Copilot June 2, 2026 11:18
@rozza rozza marked this pull request as ready for review June 2, 2026 11:18
@rozza rozza requested a review from a team as a code owner June 2, 2026 11:18
@rozza rozza requested a review from nhachicha June 2, 2026 11:18
@rozza rozza marked this pull request as draft June 2, 2026 11:19
Copy link
Copy Markdown
Contributor

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

Re-enables the unified spec test covering CSOT behavior for GridFS downloads (JAVA-5839) by replacing a hard skip with a targeted test-data transformation, and clarifies naming in the unified test modification helpers.

Changes:

  • Removed the JAVA-5839 skip for the GridFS download CSOT spec test and replaced it with a transformation that relaxes timeouts to reduce CI flakiness.
  • Renamed dir/file/test identifiers in UnifiedTestModifications to directory/fileDescription/testDescription for clarity and consistency with spec terminology.
  • Added a transformation mechanism (TestTransformer) and integrated it into the unified test runner setup.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTestModifications.java Adds test-data transformation support, renames identifiers for clarity, and applies a transformation for the GridFS CSOT test.
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTest.java Applies registered transformations during test setup before entity initialization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTest.java Outdated
…ation

Add TestTransformer functional interface and transform() method to TestDef,
allowing spec test data (entities and definition) to be mutated before
execution. Transformations are logged with a mandatory reason string.

Apply transform for JAVA-5839: bump timeoutMS from 75 to 250 and
blockTimeMS from 50 to 200 for the GridFS download timeout test to
avoid CI latency failures. The 150ms margin (6x the original 25ms)
should be reliable across CI environments.

JAVA-5839
@rozza rozza marked this pull request as ready for review June 2, 2026 12:47
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