Skip to content

ci: pin runners to ubuntu-26.04 and fix embedded mongod resolution - #745

Merged
patextreme merged 2 commits into
mainfrom
fix/ci-pin-ubuntu-26-04
Nov 4, 2026
Merged

patextreme merged 2 commits into
mainfrom
fix/ci-pin-ubuntu-26-04

Conversation

@patextreme

@patextreme patextreme commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Problem

ubuntu-latest started resolving to the ubuntu-26.04 image (ubuntu26/20261025.179). Since then every PR in this repo fails CI, regardless of what it changes:

The failure is not in the code under test:

java.lang.IllegalArgumentException: could not resolve package for V6_0:
  Platform{operatingSystem=Linux, architecture=X86_64, distribution=Ubuntu}
    at de.flapdoodle.embed.mongo.transitions.Mongod.start(Mongod.java:93)
    at org.hyperledger.identus.mediator.db.EmbeddedMongoDBInstance$.layer(EmbeddedMongoDBInstance.scala:28)

flapdoodle picks the mongod download by detecting the host distribution. de.flapdoodle.os (latest, 1.9.1) knows Ubuntu only up to Ubuntu_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) was ubuntu-24.04 and green; run 41495188092 (Nov 2, #744) was ubuntu-26.04 and red.

Fix 1 — pin the image, pin the mongod package family

  1. Pin the image — runs-on: ubuntu-latest → runs-on: ubuntu-26.04 in all workflows, so the runner stops moving underneath the build.

  2. Pin the mongod package family — EmbeddedMongoDBInstance now sets flapdoodle's supported override

    -Dde.flapdoodle.os.override=Linux|X86_64|Ubuntu|Ubuntu_22_04
    

    (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 tests was green while running zero tests. ./gradlew test || true hid 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 for com.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 files as a neutral check, and main's Extract test results treated TOTAL_TESTS=0 as success. Last real result: 2026-04-10 (7873d3a3, 17 tests). From 2026-04-13 (2bccd1a7) onward, every run reported zero.

Changes:

  • Drop the dead jetbrains.space repository 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).
  • Keep Gradle's exit status instead of discarding it, while still generating and uploading reports.
  • action_fail: true on the publisher, so "found no test results" fails instead of going neutral.
  • Require a non-zero test count before reporting success on main.

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):

platform resolved package
Linux/X86_64/Ubuntu (no version) could not resolve package for V6_0
Linux/X86_64/Ubuntu/Ubuntu_22_04 /linux/mongodb-linux-x86_64-ubuntu2204-6.0.15.tgz

This PR is the CI verification, on Image: ubuntu-26.04:

  • CI — pass, 4m11s
  • Run integration tests — pass, 9m23s
  • Integration Test Results — pass, "All 17 tests pass in 11s" (5 files, 5 suites, 20 runs) — the first non-zero e2e result since April

Notes

`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>
@patextreme
patextreme requested a review from a team as a code owner November 4, 2026 13:33
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Integration Test Results

 5 files  + 5   5 suites  +5   11s ⏱️ +11s
17 tests +17  17 ✅ +17  0 💤 ±0  0 ❌ ±0 
20 runs  +20  20 ✅ +20  0 💤 ±0  0 ❌ ±0 

Results for commit 8ab30cc. ± Comparison against base commit 66950a9.

♻️ This comment has been updated with latest results.

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>
@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@patextreme
patextreme merged commit 99f5d87 into main Nov 4, 2026
@patextreme
patextreme deleted the fix/ci-pin-ubuntu-26-04 branch November 4, 2026 14:06
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.

1 participant