Repository navigation
ci: pin runners to ubuntu-26.04 and fix embedded mongod resolution - #745
Merged
Merged
Conversation
`ubuntu-latest` now points at the ubuntu-26.04 image. flapdoodle's OS
detection (os-detection 1.9.x) only knows Ubuntu releases up to 25.10, so
the mongod package lookup fails on that image with
could not resolve package for V6_0:
Platform{operatingSystem=Linux, architecture=X86_64, distribution=Ubuntu}
which breaks every Mongo-backed test regardless of the change under test
(#744, an actions-only bump, reproduces it).
- Pin `runs-on` to `ubuntu-26.04` so the image no longer moves underneath us.
- Pin flapdoodle's platform override to Ubuntu 22.04, the distribution
mongod 6.0 is published for (`mongodb-linux-x86_64-ubuntu2204-6.0.15.tgz`),
on Linux and only when no override was supplied by the caller.
Signed-off-by: Pat Losoponkul <patextreme@hotmail.com>
Contributor
The `Run tests` step ended with `./gradlew test || true`, so a failure to resolve dependencies never failed the job. Gradle has not been able to start the suite since 2026-04-13: the upstream test suite lists a JetBrains Space mirror ahead of jitpack.io, and that mirror answers 503 for `com.github.multiformats:java-multibase:v1.1.0`, which aborts resolution instead of falling through to jitpack, where the artifact resolves. Every run since then published "0 tests, 0 files" and GitHub showed the workflow as green: the publisher goes neutral when it finds no JUnit XML, and the main-branch `Extract test results` step treats 0 tests as success. - Drop the dead jetbrains.space repository from the checked-out suite before running Gradle (the suite is pinned and archived upstream, so the patch lives in this workflow and fails loudly if the layout changes). - Keep the Gradle exit status instead of discarding it, while still generating and uploading reports. - Fail the publishing action when it finds no test results. - Require a non-zero test count before reporting success on main. Signed-off-by: Pat Losoponkul <patextreme@hotmail.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Problem
ubuntu-lateststarted resolving to the ubuntu-26.04 image (ubuntu26/20261025.179). Since then every PR in this repo fails CI, regardless of what it changes:actions/*pins and fails with the same error as everything else.The failure is not in the code under test:
flapdoodle picks the mongod download by detecting the host distribution.
de.flapdoodle.os(latest, 1.9.1) knows Ubuntu only up toUbuntu_25_10, so on 26.04 detection returns a distribution with no version and package resolution fails.Timeline of the image flip: run
40835731040(Oct 29) wasubuntu-24.04and green; run41495188092(Nov 2, #744) wasubuntu-26.04and red.Fix 1 — pin the image, pin the mongod package family
Pin the image —
runs-on: ubuntu-latest→runs-on: ubuntu-26.04in all workflows, so the runner stops moving underneath the build.Pin the mongod package family —
EmbeddedMongoDBInstancenow sets flapdoodle's supported override(only on Linux, only when the caller has not provided one). Ubuntu 22.04 is the distribution mongod 6.0 is published for, and flapdoodle maps it to
mongodb-linux-x86_64-ubuntu2204-6.0.15.tgz.Fix 2 — the e2e suite had been silently skipped since April
Run integration testswas green while running zero tests../gradlew test || truehid that Gradle could not start the suite at all: the pinned upstream suite lists a JetBrains Space mirror ahead of jitpack.io, and that mirror answers 503 forcom.github.multiformats:java-multibase:v1.1.0, aborting resolution instead of falling through to jitpack (where it resolves).The publisher then found no JUnit XML and published
0 tests, 0 filesas a neutral check, and main'sExtract test resultstreatedTOTAL_TESTS=0as success. Last real result: 2026-04-10 (7873d3a3, 17 tests). From 2026-04-13 (2bccd1a7) onward, every run reported zero.Changes:
jetbrains.spacerepository from the checked-out suite before Gradle runs (the suite is pinned and archived upstream, so the patch lives here and fails loudly if its layout changes).action_fail: trueon the publisher, so "found no test results" fails instead of going neutral.Verification
Resolution checked directly against the pinned flapdoodle 4.14.0 / packageresolver 4.13.0, with a platform that has no detected version (what the 26.04 runner looks like):
Linux/X86_64/Ubuntu(no version)could not resolve package for V6_0Linux/X86_64/Ubuntu/Ubuntu_22_04/linux/mongodb-linux-x86_64-ubuntu2204-6.0.15.tgzThis PR is the CI verification, on
Image: ubuntu-26.04:CI— pass, 4m11sRun integration tests— pass, 9m23sIntegration Test Results— pass, "All 17 tests pass in 11s" (5 files, 5 suites, 20 runs) — the first non-zero e2e result since AprilNotes
NoSuchMethodError: scala.Double$.ceil) and build: update sbt to 2.0.12 #743 (project/plugins.sbt:33not found with sbt 2.0.12) are genuine and will still fail.de.flapdoodle.embed.mongoalone would not fix this: 4.20.0 still ships os-detection 1.9.x.