Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
jobs:
Run-Tests:
name: CI
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
contents: read
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ permissions:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
dependency-review:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
contents: read
steps:
Expand Down
28 changes: 25 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:
jobs:
run-integration-tests:
name: "Run integration tests"
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
contents: read
pull-requests: write
Expand Down Expand Up @@ -81,8 +81,28 @@ jobs:
- name: Run tests
run: |
cd ./didcomm-v2-mediator-test-suite
./gradlew test || true
# The upstream suite (pinned above) lists a JetBrains Space mirror before jitpack.io. The mirror answers
# 503 for com.github.multiformats:java-multibase:v1.1.0, which aborts dependency resolution instead of
# falling through to jitpack, where the artifact is served fine. Drop the dead mirror; every other
# dependency comes from mavenCentral().
python3 - <<'PY'
import pathlib, re, sys

path = pathlib.Path("build.gradle.kts")
source = path.read_text()
patched, count = re.subn(
r'\n\s*maven\s*\{\s*url\s*=\s*uri\("https://maven\.pkg\.jetbrains\.space[^"]*"\)\s*\}',
"",
source,
)
if count == 0:
sys.exit("jetbrains.space repository not found; upstream layout changed")
path.write_text(patched)
PY
status=0
./gradlew test || status=$?
./gradlew reports
exit "$status"

- name: Upload artifacts
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
Expand All @@ -98,6 +118,8 @@ jobs:
junit_files: "${{ env.REPORTS_DIR }}/SERENITY-JUNIT-*.xml"
comment_title: "Integration Test Results"
check_name: "Integration Test Results"
# A run that produced no test results must not look green.
action_fail: true

- name: Extract test results
id: analyze_test_results
Expand All @@ -116,7 +138,7 @@ jobs:
IGNORED_TESTS="$(cat ${JSON_RESULTS} | jq '.results.counts.ignored')"
FAILED_TESTS="$(cat ${JSON_RESULTS} | jq '.results.counts.failure')"
TESTS_WITH_ERRORS="$(cat ${JSON_RESULTS} | jq '.results.counts.error')"
if [[ ${FAILED_TESTS} == 0 && ${TESTS_WITH_ERRORS} == 0 ]] ; then
if [[ ${FAILED_TESTS} == 0 && ${TESTS_WITH_ERRORS} == 0 && ${TOTAL_TESTS} != 0 ]] ; then
CONCLUSION=success
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-title-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
jobs:
main:
name: Validate PR Title
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
pull-requests: read
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ permissions:
jobs:
build-binaries:
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
permissions:
contents: read
env:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

build-and-push-docker-images:
name: Build and Push Docker images
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
needs: build-binaries
permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sbt-dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
jobs:
dependency-graph:
name: Update Dependency Graph
runs-on: ubuntu-latest # or windows-latest, or macOS-latest
runs-on: ubuntu-26.04 # or windows-latest, or macOS-latest
permissions:
contents: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Scala Steward

jobs:
scala-steward:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
name: Scala Steward
steps:
- name: Harden the runner (Audit all outbound calls)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
permissions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,29 @@ object EmbeddedMongoDBInstance {
val hostIp = "localhost"
val connectionString = s"mongodb://$hostIp:$port/messages"

private val platformOverrideProperty = "de.flapdoodle.os.override"

/** flapdoodle detects the host platform to pick the mongod package to download, and its OS detection only knows
* Ubuntu releases up to 25.10. On any newer release (for example the ubuntu-26.04 runner image) the lookup fails
* with `could not resolve package for V6_0`. Pin the distribution mongod 6.0 is published for (ubuntu2204) via
* flapdoodle's documented override, unless the caller already provided one.
*/
private def pinMongodPlatform(): Unit = {
val architecture = sys.props.get("os.arch").getOrElse("") match {
case "aarch64" | "arm64" => "ARM_64"
case _ => "X86_64"
}
val isMissingOverride = sys.props.get(platformOverrideProperty).forall(_.isBlank)
if (scala.util.Properties.isLinux && isMissingOverride) {
System.setProperty(platformOverrideProperty, s"Linux|$architecture|Ubuntu|Ubuntu_22_04")
}
}

def layer(
port: Int = 27077,
hostIp: String = "localhost"
): ZLayer[Any, Throwable, TransitionWalker.ReachedState[RunningMongodProcess]] = {
pinMongodPlatform()
ZLayer.scoped(
ZIO.acquireRelease(
ZIO.attemptBlocking {
Expand Down