Skip to content

test: retry the TestKit Gradle distribution download in gradle-plugin tests (#6014) (CP: 24.10) - #6018

Open
vaadin-bot wants to merge 3 commits into
24.10from
cherry-pick-6014-to-24.10-1786613274949
Open

test: retry the TestKit Gradle distribution download in gradle-plugin tests (#6014) (CP: 24.10)#6018
vaadin-bot wants to merge 3 commits into
24.10from
cherry-pick-6014-to-24.10-1786613274949

Conversation

@vaadin-bot

Copy link
Copy Markdown
Collaborator

No description provided.

… tests (#6014)

The functional tests run the build under test with a pinned Gradle version,
which TestKit downloads from services.gradle.org. A network hiccup during
that download fails the test before the build even starts, which took out
four tests on the Windows runner with "Could not install Gradle distribution
from ... Unexpected end of file from server".

Retry the build up to three times when it fails while installing or
connecting to the distribution. Failures of the build under test are
rethrown as before.
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.62%. Comparing base (8361e4d) to head (9910f4d).
⚠️ Report is 1 commits behind head on 24.10.

Additional details and impacted files
@@           Coverage Diff           @@
##            24.10    #6018   +/-   ##
=======================================
  Coverage   86.62%   86.62%           
=======================================
  Files         123      123           
  Lines        8489     8489           
  Branches     1307     1307           
=======================================
  Hits         7354     7354           
  Misses       1116     1116           
  Partials       19       19           
Flag Coverage Δ
unittests 86.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Artur- added 2 commits August 14, 2026 08:13
The distribution-download retry logs the Gradle version being downloaded,
but on this branch the version was hardcoded inside createGradleRunner, so
the reference did not compile. Expose it as a constructor property, as on
main.
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants