Skip to content

Commit 3defbfc

Browse files
authored
make DistributionIntegrationSpec more permissive for releases (#38766)
2 parents b0828da + f176043 commit 3defbfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegrationSpec.groovy‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ abstract class DistributionIntegrationSpec extends AbstractIntegrationSpec {
218218
def actualKB = (int) Math.ceil((double) getZip().size() / 1024)
219219
def expectedKB = getDistributionSizeMiB() * 1024
220220

221-
int margin = buildContext.version.isSnapshot() ? 1024 : 2048 // Allow 1 MiB margin for current dev, 2 MiB for more stable releases (promotion builds)
221+
int margin = buildContext.version.isSnapshot() ? 1024 : 4096 // Allow 1 MiB margin for current dev, 4 MiB for more stable releases (promotion builds)
222222
def message = "content needs to be verified. Current size: ${(int) (actualKB / 1024)} MiB (${actualKB} KiB). Expected size: ${getDistributionSizeMiB()} ± ${margin / 1024} MiB."
223223

224224
assert actualKB <= expectedKB + margin: "Distribution is unexpectedly larger, $message"

0 commit comments

Comments
 (0)