Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 5, 2026

Bumps org.spockframework:spock-junit4 from 2.4-M6-groovy-4.0 to 2.4-groovy-5.0.

Release notes

Sourced from org.spockframework:spock-junit4's releases.

Spock 2.4

https://spockframework.org/spock/docs/2.4/release_notes.html

Spock 2.4-M7

https://spockframework.org/spock/docs/2.4-M7/index.html

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • Chores
    • Updated testing framework dependency to a newer release, aligning tests with the current platform and improving test stability and compatibility.

✏️ Tip: You can customize this high-level summary in your review settings.

Bumps [org.spockframework:spock-junit4](https://github.com/spockframework/spock) from 2.4-M6-groovy-4.0 to 2.4-groovy-5.0.
- [Release notes](https://github.com/spockframework/spock/releases)
- [Changelog](https://github.com/spockframework/spock/blob/master/docs/release_notes.adoc)
- [Commits](https://github.com/spockframework/spock/commits)

---
updated-dependencies:
- dependency-name: org.spockframework:spock-junit4
  dependency-version: 2.4-groovy-5.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependabot PRs with auto version bumps from dependabot dependencies Pull requests that update a dependency file labels Jan 5, 2026
@dependabot dependabot bot requested a review from a team as a code owner January 5, 2026 13:01
@dependabot dependabot bot added dependencies Pull requests that update a dependency file dependabot PRs with auto version bumps from dependabot labels Jan 5, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 5, 2026

📝 Walkthrough

Walkthrough

Updates Spock framework versions in build configuration and documents the change in the changelog: spock-core and spock-junit4 bumped from 2.4-M6-groovy-4.0 to 2.4-groovy-5.0, preserving the groovy exclusion.

Changes

Cohort / File(s) Summary
Build dependency
buildSrc/build.gradle
Bump org.spockframework:spock-core and org.spockframework:spock-junit4 from 2.4-M6-groovy-4.02.4-groovy-5.0; keep groovy exclusion.
Changelog update
CHANGELOG.md
Add Unreleased entry noting spock-junit4 version bump to 2.4-groovy-5.0.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • cwperks
  • peternied

Poem

🐰 A tiny hop, a versions' cheer,
From M6 to five, the path is clear.
Tests wiggle, builds hum bright,
A rabbit nibbles code tonight,
Dependency garden feeling light. 🥕✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is auto-generated by Dependabot and lacks the required template structure, with no Description, Related Issues, or Check List sections. Add a proper description following the repository template: include what this change achieves, link any related issues, and complete the checklist items.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: bumping the spock-junit4 dependency from one version to another.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings

Comment @coderabbitai help to get the list of available commands and usage tips.

Signed-off-by: dependabot[bot] <[email protected]>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Fix all issues with AI Agents 🤖
In @buildSrc/build.gradle:
- Around line 136-140: Update the inline comment URL to reference the correct
Spock documentation version: change the documentation link in the comment above
the integTestImplementation('org.spockframework:spock-junit4:2.4-groovy-5.0')
dependency so it points to the stable 2.4 docs (replace "2.4-M6" with "2.4") to
reflect the upgraded dependency version.
- Around line 133-135: Update the inline comment referencing Spock docs to point
to the final 2.4 docs: locate the comment near the integTestImplementation block
(the comment that mentions "Integration with JUnit 4 features for Spock 2+ ...")
and change the URL segment from "spock/docs/2.4-M6/modules.html" to
"spock/docs/2.4/modules.html" so it matches the upgraded dependency version.
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ae713e4 and cb36010.

📒 Files selected for processing (1)
  • buildSrc/build.gradle
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: gradle-check
  • GitHub Check: precommit (25, ubuntu-latest)
  • GitHub Check: precommit (21, macos-15)
  • GitHub Check: precommit (21, windows-2025, true)
  • GitHub Check: precommit (21, windows-latest)
  • GitHub Check: precommit (25, macos-15)
  • GitHub Check: precommit (25, macos-15-intel)
  • GitHub Check: precommit (25, ubuntu-24.04-arm)
  • GitHub Check: precommit (21, ubuntu-latest)
  • GitHub Check: precommit (21, ubuntu-24.04-arm)
  • GitHub Check: precommit (21, macos-15-intel)
  • GitHub Check: assemble (21, windows-latest)
  • GitHub Check: precommit (25, windows-latest)
  • GitHub Check: assemble (21, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, windows-latest)
  • GitHub Check: assemble (25, ubuntu-24.04-arm)
  • GitHub Check: assemble (25, ubuntu-latest)
  • GitHub Check: assemble (21, ubuntu-latest)
  • GitHub Check: detect-breaking-change
  • GitHub Check: Analyze (java)
  • GitHub Check: dependabot

Comment on lines +133 to 135
integTestImplementation('org.spockframework:spock-core:2.4-groovy-5.0') {
exclude module: "groovy"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, read the buildSrc/build.gradle file to see the context around lines 133-145
cat -n buildSrc/build.gradle | sed -n '100,145p'

Repository: opensearch-project/OpenSearch

Length of output: 2591


🌐 Web query:

Spock Framework 2.4 final release version compatibility and breaking changes from 2.4-M6

💡 Result:

Short answer: as of the official Spock website, there is no published 2.4 "final" release page yet — only 2.4 milestone/SNAPSHOT documentation and release notes. The 2.4 line (what will become final) adds several compatibilities/features and introduces a few breaking changes compared to 2.4‑M6; the important items are below (sources cited).

Compatibility / notable platform support (2.4 line)

  • Adds support for Groovy 5.0 (planned in the 2.4 work). [1]
  • Continued JDK minimum is Java 8 (Spock 2.x requirement). [2]

New features (added in the 2.4 series after earlier milestones)

  • Support for combining data providers with Cartesian product. [1]
  • New filter block after where to filter iterations. [1]
  • IBlockListener extension point to observe block execution. [1]
  • Implicit-assertion condition blocks via @verify / @VerifyAll in helper methods. [1]
  • Pluggable mock makers (ServiceLoader) and a Mockito-based mock maker (allowing final/static mocking via Mockito integration). [1][3]
  • SpyStatic API for static method spying. [3]

Breaking / behavioral changes (differences to 2.4‑M6)

  • The 2.4‑M6 release specifically lists one breaking change impacting @snapshot: snapshot lookup changed — snapshots are now loaded from a directory named after the bottom (concrete) spec class rather than the class that originally declared the feature. This affects users who used snapshots declared in parent/base specs. Bump opensearch-core from current to 1.2.4 in /buildSrc/src/testKit/opensearch.build #2112. [1]
  • Earlier 2.4 milestone breaking changes that remain relevant for 2.4:
    • Response-calculation closures for interactions (>> { ... }) are no longer executed while synchronizing on the mock controller (affects multithreaded interaction code). This can change behavior in concurrent tests. [1]
    • Pluggable mock-makers require choosing/adding compatible mock-maker implementations (e.g., Mockito mock maker requires a compatible Mockito on classpath). [3]
  • General 2.x-era breaking changes still apply (documented in the migration guide), e.g. unroll/default unroll behavior, renamed tokens, removed spock-report, JUnit4 runner->JUnit Platform migration, etc.—consult the migration guide when upgrading from older 1.x/2.0-era versions. [2]

If you want, I can:

  • Watch the Spock site and notify you when an official 2.4 final release page (2.4.0 release notes) appears, or
  • Produce a short migration checklist tailored to your project (build tool, Groovy version, mocking usage, snapshot usage).

Sources:

  • Spock 2.4 (SNAPSHOT) release notes (highlights + 2.4‑M6 entry). [1]
  • Spock migration guide / breaking changes (general 2.x migration notes). [2]
  • Spock 2.4‑M2 release notes (mock-maker / Mockito integration, SpyStatic). [3]

🌐 Web query:

Spock 2.4-groovy-5.0 Maven Central availability and release notes

💡 Result:

Short answer

  • Yes — the 2.4-groovy-5.0 variants are published to Maven Central (org.spockframework:spock-core and related modules). [1]
  • Release notes: Spock 2.4 adds Groovy 5.0 support plus features like Cartesian product data providers, a post-where filter block, IBlockListener, @Verify/@VerifyAll helper-method assertions, and pluggable mock makers; see the 2.4 release notes and milestone notes (including 2.4-M7). [2]

Useful specifics

  • Maven coordinates (example):
    • org.spockframework:spock-core:2.4-groovy-5.0. (Also available: spock-bom and spock-junit4 2.4-groovy-5.0). See Central listing. [1]
  • Central timestamps (directory listing shows 2.4-groovy-5.0 published in the 2.4 release line — maven metadata updated 2025-12-11). [1]
  • Release notes / highlights (support for Groovy 5.0, feature highlights and bugfixes; milestone changelog entries such as 2.4-M7). [2]

Links

  • Maven Central listing for org.spockframework/spock-core. [1]
  • Spock 2.4 release notes and milestone changelog. [2]

If you want, I can paste the exact dependency snippets (Maven/Gradle) or fetch a direct POM/JAR URL for the 2.4-groovy-5.0 artifact.


Update the documentation URL reference in the comment on line 137.

The version upgrade is correct—spock-core 2.4-groovy-5.0 is available in Maven Central and explicitly supports Groovy 5.0. However, the inline documentation URL on line 137 still references the milestone version and should be updated from 2.4-M6 to 2.4:

Line 137 comment that needs updating
- // Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform -
+ // Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform -
- // part of JUnit 5) - https://spockframework.org/spock/docs/2.4-M6/modules.html
+ // part of JUnit 5) - https://spockframework.org/spock/docs/2.4/modules.html

Note: The Spock 2.4 final release includes breaking changes for @Snapshot snapshot directory naming and response-calculation closures in multithreaded interactions, but these are unlikely to impact this test configuration.

🤖 Prompt for AI Agents
In @buildSrc/build.gradle around lines 133-135, Update the inline comment
referencing Spock docs to point to the final 2.4 docs: locate the comment near
the integTestImplementation block (the comment that mentions "Integration with
JUnit 4 features for Spock 2+ ...") and change the URL segment from
"spock/docs/2.4-M6/modules.html" to "spock/docs/2.4/modules.html" so it matches
the upgraded dependency version.

Comment on lines 136 to 140
// Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform -
// part of JUnit 5) - https://spockframework.org/spock/docs/2.4-M6/modules.html
integTestImplementation('org.spockframework:spock-junit4:2.4-M6-groovy-4.0') {
integTestImplementation('org.spockframework:spock-junit4:2.4-groovy-5.0') {
exclude module: "groovy"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Update the outdated documentation reference.

The comment references the old version 2.4-M6 in the documentation URL. Since the dependency has been upgraded to version 2.4, the documentation link should be updated accordingly.

🔎 Proposed fix
-  // Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform -
-  // part of JUnit 5) - https://spockframework.org/spock/docs/2.4-M6/modules.html
+  // Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform -
+  // part of JUnit 5) - https://spockframework.org/spock/docs/2.4/modules.html
   integTestImplementation('org.spockframework:spock-junit4:2.4-groovy-5.0') {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform -
// part of JUnit 5) - https://spockframework.org/spock/docs/2.4-M6/modules.html
integTestImplementation('org.spockframework:spock-junit4:2.4-M6-groovy-4.0') {
integTestImplementation('org.spockframework:spock-junit4:2.4-groovy-5.0') {
exclude module: "groovy"
}
// Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform -
// part of JUnit 5) - https://spockframework.org/spock/docs/2.4/modules.html
integTestImplementation('org.spockframework:spock-junit4:2.4-groovy-5.0') {
exclude module: "groovy"
}
🤖 Prompt for AI Agents
In @buildSrc/build.gradle around lines 136-140, Update the inline comment URL to
reference the correct Spock documentation version: change the documentation link
in the comment above the
integTestImplementation('org.spockframework:spock-junit4:2.4-groovy-5.0')
dependency so it points to the stable 2.4 docs (replace "2.4-M6" with "2.4") to
reflect the upgraded dependency version.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

❌ Gradle check result for 476425c: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

❌ Gradle check result for 476425c: null

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 6, 2026

Looks like org.spockframework:spock-junit4 is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Jan 6, 2026
@dependabot dependabot bot deleted the dependabot/gradle/org.spockframework-spock-junit4-2.4-groovy-5.0 branch January 6, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependabot PRs with auto version bumps from dependabot dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants