From a17544762e2b36e17ebe7429330f12fceb65c77f Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 10:11:46 +0100 Subject: [PATCH 01/41] #561: Add requirements & design for native image --- doc/spec/design.md | 37 ++++++++++++++++++++++++++ doc/spec/system_requirements.md | 11 ++++++++ doc/user_guide/installation/linux.md | 11 ++++++++ doc/user_guide/installation/macos.md | 11 ++++++++ doc/user_guide/installation/windows.md | 10 +++++++ 5 files changed, 80 insertions(+) diff --git a/doc/spec/design.md b/doc/spec/design.md index 1d12466f..3392943c 100644 --- a/doc/spec/design.md +++ b/doc/spec/design.md @@ -1472,6 +1472,30 @@ Covers: Needs: impl +### Native Command Line Executables +`dsn~cli.native-executable~1` + +The product module builds native command line executables from the shaded product JAR with GraalVM Native Image. Each executable is built and tested on a runner matching its target operating system and architecture. Native Image reachability metadata preserves the CLI's reflective argument setters. + +Native executables support built-in providers only. + +Covers: + +* [`req~cli.native-executable~1`](system_requirements.md#native-command-line-executables) + +Needs: impl, itest + +#### Native Binaries Include Plugins +`dsn~cli.native-executable.support-built-in-plugins~1` + +Native Binaries preserves the service-provider metadata to support all built-in importers, exporters, and reporters. + +Covers: + +* [`req~cli.native-executable~1`](system_requirements.md#native-command-line-executables) + +Needs: impl, itest + # Quality Requirements See [Quality Requirements](design/quality_requirements.md). @@ -1523,6 +1547,19 @@ Authors of importers need to be able to rely on these cleanups being done centra Cleanup in every importer individually. That was the case up to and including OFT 3.7.1, which turned out to make the importer more complex than necessary. +## Should Native Binaries Load Plugins at Runtime? +`dsn~cli.native-executable.does-not-support-loading-plugins-at-runtime~1` + +OFT allows loading third party plugins from JAR files in `~/.oft/plugins`. + +### Decision + +No. This would require a separate JVM or native plugins. This is out-of-scope for now. + +Comment: + +This is a negative requirement that does not need to be tested and we terminate it here. + # Bibliography The following documents or are referenced in this specification. diff --git a/doc/spec/system_requirements.md b/doc/spec/system_requirements.md index b7217cc8..f6445c69 100644 --- a/doc/spec/system_requirements.md +++ b/doc/spec/system_requirements.md @@ -1135,6 +1135,17 @@ Covers: Needs: dsn +#### Native Command Line Executables +`req~cli.native-executable~1` + +OpenFastTrace provides native command line executables for supported Linux, macOS, and Windows architectures. Native executables shall include all built-in importers, exporters, and reporters. + +Covers: + +* [feat~command-line-interface~1](#command-line-interface) + +Needs: dsn + ### Third Party Plugins #### Loading Plugins diff --git a/doc/user_guide/installation/linux.md b/doc/user_guide/installation/linux.md index 88cf8a1c..532e8aa5 100644 --- a/doc/user_guide/installation/linux.md +++ b/doc/user_guide/installation/linux.md @@ -10,6 +10,17 @@ nav_order: 1 There are several ways to install OpenFastTrace on Linux, depending on your distribution and preference. +### Native Executable + +Download `openfasttrace-linux-x64` or `openfasttrace-linux-arm64` from the [GitHub Releases](https://github.com/itsallcode/openfasttrace/releases) page. The native executable does not require Java. Make it executable and run it: + +```bash +chmod +x openfasttrace-linux-x64 +./openfasttrace-linux-x64 --help +``` + +Use the executable JAR below when you need third-party Java plugin JARs. + ### Package Manager (APT - Debian, Ubuntu, etc.) For Debian-based systems, we provide an APT repository. This is the recommended way to keep OFT up to date. diff --git a/doc/user_guide/installation/macos.md b/doc/user_guide/installation/macos.md index 7cb9a939..ed4c5623 100644 --- a/doc/user_guide/installation/macos.md +++ b/doc/user_guide/installation/macos.md @@ -10,6 +10,17 @@ nav_order: 2 OpenFastTrace can be installed on macOS using Homebrew, JBang or manually via a JAR file. +### Native Executable + +Download the matching executable, `openfasttrace-macos-arm64` for Apple Silicon from the [GitHub Releases](https://github.com/itsallcode/openfasttrace/releases) page. The native executable does not require Java. Run it from Terminal: + +```bash +chmod +x openfasttrace-macos-arm64 +./openfasttrace-macos-arm64 --help +``` + +Use the executable JAR below when you need third-party Java plugin JARs. + ### Homebrew If you use Homebrew, you can install OpenFastTrace directly: diff --git a/doc/user_guide/installation/windows.md b/doc/user_guide/installation/windows.md index 4e57cde6..cf968f90 100644 --- a/doc/user_guide/installation/windows.md +++ b/doc/user_guide/installation/windows.md @@ -10,6 +10,16 @@ nav_order: 3 On Windows, OpenFastTrace can be run via JBang or manually via the JAR file. +### Native Executable + +Download `openfasttrace-windows-x64.exe` from the [GitHub Releases](https://github.com/itsallcode/openfasttrace/releases) page and run it from PowerShell: + +```powershell +.\openfasttrace-windows-x64.exe --help +``` + +The native executable does not require Java. Use the executable JAR below when you need third-party Java plugin JARs. + ### JBang [JBang](https://www.jbang.dev/) runs OpenFastTrace straight from Maven Central and downloads a suitable Java runtime if none is installed. From 091dbc476d54cda8982c52f7db17234ed6398f57 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 10:55:42 +0100 Subject: [PATCH 02/41] #561: Build native image --- .github/workflows/build.yml | 62 +++++++ .github/workflows/github_release.sh | 16 +- .github/workflows/release.yml | 81 +++++++++ doc/developer_guide/developer_guide.md | 13 ++ doc/spec/design.md | 2 +- native-image/pom.xml | 79 ++++++++ .../openfasttrace/reachability-metadata.json | 16 ++ .../nativeimage/NativeImageIT.java | 171 ++++++++++++++++++ .../native-image/sample-tag-requirement.md | 7 + .../resources/native-image/sample.feature | 7 + .../test/resources/native-image/sample.java | 2 + .../src/test/resources/native-image/sample.md | 5 + .../test/resources/native-image/sample.oreqm | 9 + .../test/resources/native-image/sample.rst | 6 + oft-self-trace.sh | 3 + pom.xml | 1 + 16 files changed, 478 insertions(+), 2 deletions(-) create mode 100644 native-image/pom.xml create mode 100644 native-image/src/main/resources/META-INF/native-image/org.itsallcode.openfasttrace/openfasttrace/reachability-metadata.json create mode 100644 native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java create mode 100644 native-image/src/test/resources/native-image/sample-tag-requirement.md create mode 100644 native-image/src/test/resources/native-image/sample.feature create mode 100644 native-image/src/test/resources/native-image/sample.java create mode 100644 native-image/src/test/resources/native-image/sample.md create mode 100644 native-image/src/test/resources/native-image/sample.oreqm create mode 100644 native-image/src/test/resources/native-image/sample.rst diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c3e81be..11e47ed3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -139,12 +139,74 @@ jobs: OSSINDEX_USERNAME: ${{ secrets.OSSINDEX_USERNAME }} OSSINDEX_TOKEN: ${{ secrets.OSSINDEX_TOKEN }} + native-image: + # [impl->dsn~cli.native-executable~1] + # [impl->dsn~cli.native-executable.support-built-in-plugins~1] + permissions: + contents: read + strategy: + fail-fast: false + matrix: + include: + - target: linux-x64 + runner: ubuntu-24.04 + output: openfasttrace-linux-x64 + - target: linux-arm64 + runner: ubuntu-24.04-arm + output: openfasttrace-linux-arm64 + - target: macos-arm64 + runner: macos-15 + output: openfasttrace-macos-arm64 + - target: windows-x64 + runner: windows-2025 + output: openfasttrace-windows-x64 + runs-on: ${{ matrix.runner }} + defaults: + run: + shell: bash + name: Native image ${{ matrix.target }} + steps: + - uses: actions/checkout@v7 + with: + fetch-depth: 0 + persist-credentials: false + + - uses: actions/setup-java@v6 + name: Set up Maven toolchain + with: + distribution: temurin + java-version: 17 + cache: maven + + - uses: graalvm/setup-graalvm@v1 + name: Set up GraalVM 25 + with: + version: '25.0' + distribution: graalvm + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build product dependencies + run: mvn --batch-mode -T 1C -pl product -am install -Dmaven.test.skip=true -Dossindex.skip=true + + - name: Build and test native image with Maven + run: >- + mvn --batch-mode -Pnative-image -pl native-image verify + -Dnative.image.name=${{ matrix.output }} + + - name: Upload native image + uses: actions/upload-artifact@v7 + with: + name: openfasttrace-native-${{ matrix.target }} + path: native-image/target/${{ matrix.output }}* + if-no-files-found: error + build: permissions: contents: read needs: - matrix-build - ossindex + - native-image runs-on: ubuntu-slim steps: - run: echo "Build successful" diff --git a/.github/workflows/github_release.sh b/.github/workflows/github_release.sh index 3a700c07..fb15e253 100755 --- a/.github/workflows/github_release.sh +++ b/.github/workflows/github_release.sh @@ -29,6 +29,18 @@ readonly artifact_checksum_path="${artifact_path}.sha256" calculate_checksum "$sbom_path" readonly sbom_checksum_path="${sbom_path}.sha256" +shopt -s nullglob +native_assets=("$base_dir"/native-image/target/openfasttrace-*) +if [[ "${#native_assets[@]}" -ne 4 ]]; then + echo "Expected 4 native images in native-image/target, found ${#native_assets[@]}" >&2 + exit 1 +fi +native_release_assets=() +for native_asset in "${native_assets[@]}"; do + calculate_checksum "$native_asset" + native_release_assets+=("$native_asset" "${native_asset}.sha256") +done + # Create GitHub release readonly changes_file="$base_dir/doc/changes/changes_${project_version}.md" @@ -45,8 +57,10 @@ echo "Artifact file: $artifact_path" echo "Artifact checksum: $artifact_checksum_path" echo "SBOM file : $sbom_path" echo "SBOM checksum: $sbom_checksum_path" +printf 'Native asset : %s\n' "${native_assets[@]}" release_url=$(gh release create --latest --title "$title" --notes "$notes" --target main "$tag" \ - "$artifact_path" "$artifact_checksum_path" "$sbom_path" "$sbom_checksum_path") + "$artifact_path" "$artifact_checksum_path" "$sbom_path" "$sbom_checksum_path" \ + "${native_release_assets[@]}") readonly release_url echo "Release URL: $release_url" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efd32129..cb27713d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,81 @@ on: default: true jobs: + release-preflight: + runs-on: ubuntu-slim + steps: + - name: Fail if not running on main branch + if: ${{ github.ref != 'refs/heads/main' }} + run: | + echo "Not running on main branch, github.ref is ${GITHUB_REF}. Please start this workflow only on main." + exit 1 + env: + GITHUB_REF: ${{ github.ref }} + + native-images: + needs: release-preflight + permissions: + contents: read + strategy: + fail-fast: false + matrix: + include: + - target: linux-x64 + runner: ubuntu-24.04 + output: openfasttrace-linux-x64 + - target: linux-arm64 + runner: ubuntu-24.04-arm + output: openfasttrace-linux-arm64 + - target: macos-arm64 + runner: macos-15 + output: openfasttrace-macos-arm64 + - target: windows-x64 + runner: windows-2025 + output: openfasttrace-windows-x64 + runs-on: ${{ matrix.runner }} + defaults: + run: + shell: bash + name: Native image ${{ matrix.target }} + steps: + - uses: actions/checkout@v7 + with: + fetch-depth: 0 + persist-credentials: false + + - uses: actions/setup-java@v6 + name: Set up Maven toolchain + with: + distribution: temurin + java-version: 17 + cache: maven + + - uses: graalvm/setup-graalvm@v1 + name: Set up GraalVM 25 + with: + version: '25.0' + distribution: graalvm + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build product dependencies + run: mvn --batch-mode -T 1C -pl product -am install -Dmaven.test.skip=true -Dossindex.skip=true + + - name: Build and test native image with Maven + run: >- + mvn --batch-mode -Pnative-image -pl native-image verify + -Dnative.image.name=${{ matrix.output }} + + - name: Upload native image + uses: actions/upload-artifact@v7 + with: + name: openfasttrace-native-${{ matrix.target }} + path: native-image/target/${{ matrix.output }}* + if-no-files-found: error + release: + needs: + - release-preflight + - native-images runs-on: ubuntu-latest defaults: run: @@ -54,6 +128,13 @@ jobs: - name: Build run: mvn --batch-mode -T 1C clean install -Dossindex.skip=true + - name: Download native images + uses: actions/download-artifact@v7 + with: + pattern: openfasttrace-native-* + path: native-image/target + merge-multiple: true + - name: List secret GPG keys run: gpg --list-secret-keys diff --git a/doc/developer_guide/developer_guide.md b/doc/developer_guide/developer_guide.md index 24339e80..5b2e441f 100644 --- a/doc/developer_guide/developer_guide.md +++ b/doc/developer_guide/developer_guide.md @@ -155,6 +155,19 @@ Specify test class via system property `it.test` and module via command line opt mvn -Dit.test=CliStarterIT failsafe:integration-test -projects product ``` +### Build and Test a Native Executable + +Native builds use GraalVM Native Image 25. Keep the project's Java 17 toolchain configured, and set `GRAALVM_HOME` to a GraalVM 25 installation that includes `native-image`: + +```sh +export GRAALVM_HOME=/path/to/graalvm-jdk-25 +export PATH="$GRAALVM_HOME/bin:$PATH" +mvn --batch-mode -T 1C -pl product -am install -Dmaven.test.skip=true +mvn --batch-mode -Pnative-image -pl native-image verify +``` + +The root Maven build selects the `native-image` module and builds the executable in `native-image/target/openfasttrace`, then runs JUnit integration tests against it. To set a platform-specific name, pass `-Dnative.image.name=openfasttrace-linux-x64` to the second command. Build and test on the target operating system and architecture. Native executables include built-in plugins; use the executable JAR distribution when third-party Java plugin JARs are required. + ### Check for Dependency Updates ```sh diff --git a/doc/spec/design.md b/doc/spec/design.md index 3392943c..cb633a70 100644 --- a/doc/spec/design.md +++ b/doc/spec/design.md @@ -1475,7 +1475,7 @@ Needs: impl ### Native Command Line Executables `dsn~cli.native-executable~1` -The product module builds native command line executables from the shaded product JAR with GraalVM Native Image. Each executable is built and tested on a runner matching its target operating system and architecture. Native Image reachability metadata preserves the CLI's reflective argument setters. +The dedicated `native-image` Maven module builds native command line executables from the product JAR with GraalVM Native Image 25 using the GraalVM Native Build Tools Maven plugin. The `native-image` Maven profile enables native compilation and integration tests; the default Maven build does not require GraalVM. Each executable is built and tested on a runner matching its target operating system and architecture. Native Image reachability metadata preserves the CLI's reflective argument setters. Native executables support built-in providers only. diff --git a/native-image/pom.xml b/native-image/pom.xml new file mode 100644 index 00000000..3f93735b --- /dev/null +++ b/native-image/pom.xml @@ -0,0 +1,79 @@ + + 4.0.0 + openfasttrace-native-image + OpenFastTrace Native Image + jar + + ../parent/pom.xml + org.itsallcode.openfasttrace + openfasttrace-parent + ${revision} + + + openfasttrace + + + + org.itsallcode.openfasttrace + openfasttrace + ${revision} + + + org.itsallcode.openfasttrace + * + + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + true + + ${project.build.directory}/${native.image.name} + + + + + + + + native-image + + + + org.apache.maven.plugins + maven-failsafe-plugin + + false + + + + org.graalvm.buildtools + native-maven-plugin + 1.1.19 + + + build-native-image + package + + compile-no-fork + + + + + org.itsallcode.openfasttrace.core.cli.CliStarter + ${native.image.name} + false + + + + + + + diff --git a/native-image/src/main/resources/META-INF/native-image/org.itsallcode.openfasttrace/openfasttrace/reachability-metadata.json b/native-image/src/main/resources/META-INF/native-image/org.itsallcode.openfasttrace/openfasttrace/reachability-metadata.json new file mode 100644 index 00000000..61d04808 --- /dev/null +++ b/native-image/src/main/resources/META-INF/native-image/org.itsallcode.openfasttrace/openfasttrace/reachability-metadata.json @@ -0,0 +1,16 @@ +{ + "reflection": [ + { + "type": "org.itsallcode.openfasttrace.core.cli.CliArguments", + "allPublicMethods": true + } + ], + "resources": [ + { "glob": "usage.txt" }, + { "glob": "version.properties" }, + { "glob": "css/report.css" }, + { "glob": "META-INF/services/org.itsallcode.openfasttrace.api.importer.ImporterFactory" }, + { "glob": "META-INF/services/org.itsallcode.openfasttrace.api.exporter.ExporterFactory" }, + { "glob": "META-INF/services/org.itsallcode.openfasttrace.api.report.ReporterFactory" } + ] +} diff --git a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java new file mode 100644 index 00000000..188520ee --- /dev/null +++ b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java @@ -0,0 +1,171 @@ +package org.itsallcode.openfasttrace.nativeimage; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.containsString; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.is; +import static org.junit.jupiter.api.Assertions.fail; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Files; +import java.nio.file.Path; +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +import java.util.stream.Stream; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.io.TempDir; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; +import org.junit.jupiter.params.provider.ValueSource; + +class NativeImageIT +{ + private static final String RESOURCE_DIRECTORY = "/native-image/"; + private static final Duration PROCESS_TIMEOUT = Duration.ofSeconds(60); + private static final String NATIVE_IMAGE_PATH_PROPERTY = "native.image.path"; + + // [itest->dsn~cli.native-executable~1] + @ParameterizedTest + @MethodSource("builtInImporterFixtures") + void testBuiltInImporterReadsItsFormat(final String fixtureName, final String expectedId, + @TempDir final Path temporaryDirectory) throws IOException, InterruptedException + { + final Path fixture = copyFixture(fixtureName, temporaryDirectory); + final List additionalInputs = fixtureName.equals("sample.java") + ? List.of(copyFixture("sample-tag-requirement.md", temporaryDirectory).toString()) + : List.of(); + final List arguments = new ArrayList<>(List.of("trace", "--report-verbosity", "all", + fixture.toString())); + arguments.addAll(additionalInputs); + + final String output = runNativeImage(temporaryDirectory, arguments.toArray(String[]::new)); + + assertThat("imported item", output, containsString(expectedId)); + } + + static Stream builtInImporterFixtures() + { + return Stream.of( + Arguments.of("sample.md", "req~native-image-markdown~1"), + Arguments.of("sample.rst", "req~native-image-rst~1"), + Arguments.of("sample.oreqm", "req~native-image-specobject~1"), + Arguments.of("sample.feature", "scn~native-image-gherkin~1"), + Arguments.of("sample.java", "impl~native-image-tag~1")); + } + + // [itest->dsn~cli.native-executable~1] + @Test + void testBuiltInZipImporterReadsMarkdownEntry(@TempDir final Path temporaryDirectory) + throws IOException, InterruptedException + { + final Path markdown = copyFixture("sample.md", temporaryDirectory); + final Path archive = temporaryDirectory.resolve("sample.zip"); + createZipArchive(markdown, archive); + + final String output = runNativeImage(temporaryDirectory, "trace", "--report-verbosity", "all", + archive.toString()); + + assertThat("item imported from archive", output, containsString("req~native-image-markdown~1")); + } + + // [itest->dsn~cli.native-executable.support-built-in-plugins~1] + @ParameterizedTest + @ValueSource(strings = { "plain", "html", "aspec" }) + void testBuiltInReporterProducesItsOutput(final String format, @TempDir final Path temporaryDirectory) + throws IOException, InterruptedException + { + final Path fixture = copyFixture("sample.md", temporaryDirectory); + + final String output = runNativeImage(temporaryDirectory, "trace", "--report-verbosity", "all", + "--output-format", format, fixture.toString()); + + assertThat("report contains imported item", output, containsString("native-image-markdown")); + if (format.equals("html")) + { + assertThat("HTML report", output, containsString("")); + } + else if (format.equals("aspec")) + { + assertThat("SpecObject report", output, containsString("dsn~cli.native-executable.support-built-in-plugins~1] + @Test + void testBuiltInSpecObjectExporterProducesDocument(@TempDir final Path temporaryDirectory) + throws IOException, InterruptedException + { + final Path fixture = copyFixture("sample.md", temporaryDirectory); + + final String output = runNativeImage(temporaryDirectory, "convert", "--output-format", "specobject", + fixture.toString()); + + assertThat("SpecObject output", output, containsString(" command = new ArrayList<>(); + command.add(executable.toAbsolutePath().toString()); + command.addAll(List.of(arguments)); + final Path outputFile = temporaryDirectory.resolve("native-image-output.txt"); + final Process process = new ProcessBuilder(command) + .redirectErrorStream(true) + .redirectOutput(outputFile.toFile()) + .start(); + + if (!process.waitFor(PROCESS_TIMEOUT.toSeconds(), TimeUnit.SECONDS)) + { + process.destroyForcibly(); + fail("Native executable did not finish within " + PROCESS_TIMEOUT); + } + final String output = Files.readString(outputFile); + assertThat("native executable output: " + output, process.exitValue(), equalTo(0)); + return output; + } + + private static Path nativeExecutablePath() + { + final String configuredPath = System.getProperty(NATIVE_IMAGE_PATH_PROPERTY, "target/openfasttrace"); + final Path executable = Path.of(configuredPath); + if (System.getProperty("os.name", "").toLowerCase().contains("windows") + && !configuredPath.toLowerCase().endsWith(".exe")) + { + return Path.of(configuredPath + ".exe"); + } + return executable; + } + + private static Path copyFixture(final String fixtureName, final Path targetDirectory) throws IOException + { + final Path target = targetDirectory.resolve(fixtureName); + try (InputStream fixture = Objects.requireNonNull( + NativeImageIT.class.getResourceAsStream(RESOURCE_DIRECTORY + fixtureName))) + { + Files.copy(fixture, target); + } + return target; + } + + private static void createZipArchive(final Path fileToArchive, final Path archive) throws IOException + { + try (ZipOutputStream zipOutput = new ZipOutputStream(Files.newOutputStream(archive))) + { + zipOutput.putNextEntry(new ZipEntry(fileToArchive.getFileName().toString())); + Files.copy(fileToArchive, zipOutput); + zipOutput.closeEntry(); + } + } +} diff --git a/native-image/src/test/resources/native-image/sample-tag-requirement.md b/native-image/src/test/resources/native-image/sample-tag-requirement.md new file mode 100644 index 00000000..b6f79853 --- /dev/null +++ b/native-image/src/test/resources/native-image/sample-tag-requirement.md @@ -0,0 +1,7 @@ +# Native Image Requirement + +`req~native-image-markdown~1` + +Description. + +Needs: impl diff --git a/native-image/src/test/resources/native-image/sample.feature b/native-image/src/test/resources/native-image/sample.feature new file mode 100644 index 00000000..352516c4 --- /dev/null +++ b/native-image/src/test/resources/native-image/sample.feature @@ -0,0 +1,7 @@ +Feature: Native image Gherkin + + @id:scn~native-image-gherkin~1 + Scenario: Built in Gherkin importer is available + Given a native executable + When the executable traces this feature + Then the scenario is imported diff --git a/native-image/src/test/resources/native-image/sample.java b/native-image/src/test/resources/native-image/sample.java new file mode 100644 index 00000000..fed9b317 --- /dev/null +++ b/native-image/src/test/resources/native-image/sample.java @@ -0,0 +1,2 @@ +// [impl~native-image-tag~1->req~native-image-markdown~1] +class NativeImageTagFixture {} diff --git a/native-image/src/test/resources/native-image/sample.md b/native-image/src/test/resources/native-image/sample.md new file mode 100644 index 00000000..52758f08 --- /dev/null +++ b/native-image/src/test/resources/native-image/sample.md @@ -0,0 +1,5 @@ +# Native Image Requirement + +`req~native-image-markdown~1` + +Description. diff --git a/native-image/src/test/resources/native-image/sample.oreqm b/native-image/src/test/resources/native-image/sample.oreqm new file mode 100644 index 00000000..d03fd1e1 --- /dev/null +++ b/native-image/src/test/resources/native-image/sample.oreqm @@ -0,0 +1,9 @@ + + + + + native-image-specobject + 1 + + + diff --git a/native-image/src/test/resources/native-image/sample.rst b/native-image/src/test/resources/native-image/sample.rst new file mode 100644 index 00000000..09b99d2f --- /dev/null +++ b/native-image/src/test/resources/native-image/sample.rst @@ -0,0 +1,6 @@ +Native Image Requirement +======================== + +req~native-image-rst~1 + +Description. diff --git a/oft-self-trace.sh b/oft-self-trace.sh index a35633ef..fa82efdb 100755 --- a/oft-self-trace.sh +++ b/oft-self-trace.sh @@ -30,6 +30,9 @@ if $oft_script trace \ "$base_dir/reporter/html/src" \ "$base_dir/reporter/aspec/src" \ "$base_dir/product/src/test/java" \ + "$base_dir/native-image/src/main" \ + "$base_dir/native-image/src/test/java" \ + "$base_dir/.github/workflows/build.yml" \ "$base_dir/api/src" \ "$base_dir/exporter/specobject/src" \ "$base_dir/exporter/common/src" \ diff --git a/pom.xml b/pom.xml index 9ee6edf9..0f1e0bcc 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,7 @@ api core product + native-image exporter/common exporter/specobject importer/lightweightmarkup From 1e5286c23bb573716e1de31fb5678d11498a758d Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 11:21:27 +0100 Subject: [PATCH 03/41] Fix self-tracing integration test --- .../java/org/itsallcode/openfasttrace/ITestSelfTrace.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/product/src/test/java/org/itsallcode/openfasttrace/ITestSelfTrace.java b/product/src/test/java/org/itsallcode/openfasttrace/ITestSelfTrace.java index bc29c24b..b4e43644 100644 --- a/product/src/test/java/org/itsallcode/openfasttrace/ITestSelfTrace.java +++ b/product/src/test/java/org/itsallcode/openfasttrace/ITestSelfTrace.java @@ -67,9 +67,11 @@ protected String createSelfTraceReport(final Trace trace) private ImportSettings buildOftSettings() { final Path baseDir = getProjectBaseDir(); - return ImportSettings.builder() // - .addInputs(baseDir.resolve("doc/spec/")) // - .addInputs(findInputDirectories(baseDir)) // + return ImportSettings.builder() + .addInputs(baseDir.resolve("doc/spec/")) + .addInputs(baseDir.resolve("product/pom.xml")) + .addInputs(baseDir.resolve("native-image/pom.xml")) + .addInputs(findInputDirectories(baseDir)) .build(); } From 93fb6f2e1da3918c70566cf972302de3886cca77 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 11:28:39 +0100 Subject: [PATCH 04/41] Fix requirement tracing --- native-image/pom.xml | 6 ++++++ product/pom.xml | 1 + 2 files changed, 7 insertions(+) diff --git a/native-image/pom.xml b/native-image/pom.xml index 3f93735b..3bff4b46 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -70,6 +70,12 @@ org.itsallcode.openfasttrace.core.cli.CliStarter ${native.image.name} false + + + --future-defaults=all + + -O2 + diff --git a/product/pom.xml b/product/pom.xml index e3c991a4..a2f999fe 100644 --- a/product/pom.xml +++ b/product/pom.xml @@ -95,6 +95,7 @@ true false + Date: Wed, 25 Nov 2026 11:33:32 +0100 Subject: [PATCH 05/41] Fix CI build with javadoc --- parent/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/parent/pom.xml b/parent/pom.xml index 1a31f23b..ae7aec4c 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -344,6 +344,7 @@ ${java.version} UTF-8 + true true From 8eb8b761355c2b82545610b6b90cb53304735498 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 11:37:18 +0100 Subject: [PATCH 06/41] Fix ossindex build --- native-image/pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/native-image/pom.xml b/native-image/pom.xml index 3bff4b46..80eda955 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -29,6 +29,18 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + + -Xlint:all + + -Xlint:-path + -Werror + + + org.apache.maven.plugins maven-failsafe-plugin From e3e9eb89c2376f172f5debfa7606e19bb928ff07 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 11:48:03 +0100 Subject: [PATCH 07/41] Fix native image for Windows by adding charsets. --- native-image/pom.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/native-image/pom.xml b/native-image/pom.xml index 80eda955..6b73cfd6 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -13,6 +13,7 @@ openfasttrace + -H:-AddAllCharsets @@ -87,11 +88,24 @@ --future-defaults=all -O2 + ${native.image.charset.option} + + native-image-windows-charsets + + + windows + + + + + -H:+AddAllCharsets + + From 4c6d3bb185c72bce326c102075825a9b0e410654 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 11:51:49 +0100 Subject: [PATCH 08/41] Skip ossindex for native image build --- .github/workflows/build.yml | 1 + .github/workflows/release.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11e47ed3..60f34408 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -191,6 +191,7 @@ jobs: - name: Build and test native image with Maven run: >- mvn --batch-mode -Pnative-image -pl native-image verify + -Dossindex.skip=true -Dnative.image.name=${{ matrix.output }} - name: Upload native image diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb27713d..b6045b26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,6 +77,7 @@ jobs: - name: Build and test native image with Maven run: >- mvn --batch-mode -Pnative-image -pl native-image verify + -Dossindex.skip=true -Dnative.image.name=${{ matrix.output }} - name: Upload native image From c4b1fc3f738ae15fa960da68c1e50b113372cce5 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 12:00:22 +0100 Subject: [PATCH 09/41] Fix deprecation warnings in setup-java action --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60f34408..19d0737e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -128,8 +128,8 @@ jobs: distribution: temurin java-version: 17 server-id: ossindex - server-username: OSSINDEX_USERNAME - server-password: OSSINDEX_TOKEN + server-username-env-var: OSSINDEX_USERNAME + server-password-env-var: OSSINDEX_TOKEN - name: Ossindex run: | mvn -T 1C --errors --batch-mode test-compile \ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6045b26..1916e64c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -121,8 +121,8 @@ jobs: java-version: 17 cache: "maven" server-id: central - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD + server-username-env-var: MAVEN_USERNAME + server-password-env-var: MAVEN_PASSWORD gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE From 43474ce7283578d0a7893877dfcc3468d8845e44 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 12:05:02 +0100 Subject: [PATCH 10/41] Fix zizmor linter warnings --- .github/workflows/release.yml | 2 ++ .github/zizmor.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1916e64c..42516d77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,8 @@ on: jobs: release-preflight: runs-on: ubuntu-slim + permissions: + contents: read steps: - name: Fail if not running on main branch if: ${{ github.ref != 'refs/heads/main' }} diff --git a/.github/zizmor.yml b/.github/zizmor.yml index 785db4c9..2e369e16 100644 --- a/.github/zizmor.yml +++ b/.github/zizmor.yml @@ -5,4 +5,5 @@ rules: policies: "actions/*": ref-pin "github/codeql-action/*": ref-pin + "graalvm/setup-graalvm": ref-pin "*": hash-pin From da62dc0a481f5035c9c07100ab403329f51567f1 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 12:11:52 +0100 Subject: [PATCH 11/41] Use bld artifact type for build scripts --- .github/workflows/build.yml | 4 ++-- doc/spec/design.md | 4 ++-- oft-self-trace.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19d0737e..85e81ea0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -140,8 +140,8 @@ jobs: OSSINDEX_TOKEN: ${{ secrets.OSSINDEX_TOKEN }} native-image: - # [impl->dsn~cli.native-executable~1] - # [impl->dsn~cli.native-executable.support-built-in-plugins~1] + # [bld->dsn~cli.native-executable~1] + # [bld->dsn~cli.native-executable.support-built-in-plugins~1] permissions: contents: read strategy: diff --git a/doc/spec/design.md b/doc/spec/design.md index cb633a70..0555619d 100644 --- a/doc/spec/design.md +++ b/doc/spec/design.md @@ -1483,7 +1483,7 @@ Covers: * [`req~cli.native-executable~1`](system_requirements.md#native-command-line-executables) -Needs: impl, itest +Needs: itest, bld #### Native Binaries Include Plugins `dsn~cli.native-executable.support-built-in-plugins~1` @@ -1494,7 +1494,7 @@ Covers: * [`req~cli.native-executable~1`](system_requirements.md#native-command-line-executables) -Needs: impl, itest +Needs: itest, bld # Quality Requirements diff --git a/oft-self-trace.sh b/oft-self-trace.sh index fa82efdb..f6615b03 100755 --- a/oft-self-trace.sh +++ b/oft-self-trace.sh @@ -32,7 +32,7 @@ if $oft_script trace \ "$base_dir/product/src/test/java" \ "$base_dir/native-image/src/main" \ "$base_dir/native-image/src/test/java" \ - "$base_dir/.github/workflows/build.yml" \ + "$base_dir/.github/workflows" \ "$base_dir/api/src" \ "$base_dir/exporter/specobject/src" \ "$base_dir/exporter/common/src" \ From 1decd3b942b3170ccd970bd09f832efe69f8c269 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 12:13:05 +0100 Subject: [PATCH 12/41] Pin graalvm action version in CI build --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- .github/zizmor.yml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85e81ea0..a1d24dbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -178,7 +178,7 @@ jobs: java-version: 17 cache: maven - - uses: graalvm/setup-graalvm@v1 + - uses: graalvm/setup-graalvm@60e76998d25690099182b796e99b8804da582d90 # v1.6.10 name: Set up GraalVM 25 with: version: '25.0' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42516d77..6ce86ed3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,7 @@ jobs: java-version: 17 cache: maven - - uses: graalvm/setup-graalvm@v1 + - uses: graalvm/setup-graalvm@60e76998d25690099182b796e99b8804da582d90 # v1.6.10 name: Set up GraalVM 25 with: version: '25.0' diff --git a/.github/zizmor.yml b/.github/zizmor.yml index 2e369e16..785db4c9 100644 --- a/.github/zizmor.yml +++ b/.github/zizmor.yml @@ -5,5 +5,4 @@ rules: policies: "actions/*": ref-pin "github/codeql-action/*": ref-pin - "graalvm/setup-graalvm": ref-pin "*": hash-pin From 758cb69334ad66a4deef1b8263127347972ff3fb Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 14:17:23 +0100 Subject: [PATCH 13/41] Fix selftrace-test --- native-image/pom.xml | 2 +- product/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/native-image/pom.xml b/native-image/pom.xml index 6b73cfd6..7efbadaf 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -83,7 +83,7 @@ org.itsallcode.openfasttrace.core.cli.CliStarter ${native.image.name} false - + --future-defaults=all diff --git a/product/pom.xml b/product/pom.xml index a2f999fe..aefa2c41 100644 --- a/product/pom.xml +++ b/product/pom.xml @@ -95,7 +95,7 @@ true false - + Date: Wed, 25 Nov 2026 14:18:54 +0100 Subject: [PATCH 14/41] Configure formatter for native-image module --- .../.settings/org.eclipse.jdt.core.prefs | 537 ++++++++++++++++++ .../.settings/org.eclipse.jdt.ui.prefs | 7 + 2 files changed, 544 insertions(+) create mode 100644 native-image/.settings/org.eclipse.jdt.core.prefs create mode 100644 native-image/.settings/org.eclipse.jdt.ui.prefs diff --git a/native-image/.settings/org.eclipse.jdt.core.prefs b/native-image/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..3d2285dd --- /dev/null +++ b/native-image/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,537 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullable.secondary= +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.doc.comment.support=enabled +org.eclipse.jdt.core.compiler.problem.APILeak=warning +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning +org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocComments=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=protected +org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags +org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore +org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=ignore +org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning +org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled +org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.processAnnotations=disabled +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=17 +org.eclipse.jdt.core.formatter.align_arrows_in_switch_on_columns=false +org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false +org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647 +org.eclipse.jdt.core.formatter.align_selector_in_method_invocation_on_expression_first_line=false +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.align_variable_declarations_on_columns=false +org.eclipse.jdt.core.formatter.align_with_spaces=false +org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_enum_constant=49 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field=49 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable=49 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method=49 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package=49 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter=0 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type=49 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assertion_message=0 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_bitwise_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_loops=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression_chain=0 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_switch_case_with_arrow=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_switch_case_with_colon=0 +org.eclipse.jdt.core.formatter.alignment_for_logical_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_module_statements=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_multiplicative_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references=0 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_permitted_types_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_record_components=16 +org.eclipse.jdt.core.formatter.alignment_for_relational_operator=0 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_shift_operator=0 +org.eclipse.jdt.core.formatter.alignment_for_string_concatenation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_record_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_switch_case_with_arrow=0 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_type_annotations=0 +org.eclipse.jdt.core.formatter.alignment_for_type_arguments=0 +org.eclipse.jdt.core.formatter.alignment_for_type_parameters=0 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_last_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_abstract_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_statement_group_in_switch=0 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=next_line_on_wrap +org.eclipse.jdt.core.formatter.brace_position_for_block=next_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case_after_arrow=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_record_constructor=next_line +org.eclipse.jdt.core.formatter.brace_position_for_record_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line +org.eclipse.jdt.core.formatter.comment.align_tags_descriptions_grouped=false +org.eclipse.jdt.core.formatter.comment.align_tags_names_descriptions=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.count_line_length_from_starting_position=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_markdown_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.indent_tag_description=false +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_between_different_tags=do not insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.javadoc_do_not_separate_block_tags=false +org.eclipse.jdt.core.formatter.comment.line_length=120 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_record_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_record_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_additive_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_arrow_in_switch_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_arrow_in_switch_default=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_bitwise_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_permitted_types=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_record_components=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_switch_case_expressions=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_logical_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_multiplicative_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_not_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_record_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_relational_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_shift_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_string_concatenation=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_additive_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_arrow_in_switch_case=insert +org.eclipse.jdt.core.formatter.insert_space_before_arrow_in_switch_default=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_bitwise_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_record_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_permitted_types=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_record_components=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_switch_case_expressions=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_logical_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_multiplicative_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_record_constructor=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_record_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_record_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_relational_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_shift_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_string_concatenation=insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_line_comments=false +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_annotation_declaration_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_anonymous_type_declaration_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_code_block_on_one_line=one_line_if_empty +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=true +org.eclipse.jdt.core.formatter.keep_enum_constant_declaration_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_enum_declaration_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_if_then_body_block_on_one_line=one_line_if_empty +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_lambda_body_block_on_one_line=one_line_if_empty +org.eclipse.jdt.core.formatter.keep_loop_body_block_on_one_line=one_line_if_empty +org.eclipse.jdt.core.formatter.keep_method_body_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_record_constructor_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_record_declaration_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_simple_do_while_body_on_same_line=false +org.eclipse.jdt.core.formatter.keep_simple_for_body_on_same_line=false +org.eclipse.jdt.core.formatter.keep_simple_getter_setter_on_one_line=false +org.eclipse.jdt.core.formatter.keep_simple_while_body_on_same_line=false +org.eclipse.jdt.core.formatter.keep_switch_body_block_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_switch_case_with_arrow_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_type_declaration_on_one_line=one_line_never +org.eclipse.jdt.core.formatter.lineSplit=120 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_after_code_block=0 +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_code_block=0 +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_end_of_code_block=0 +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_end_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_blank_lines_before_code_block=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.parentheses_positions_in_annotation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_lambda_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_record_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause=common_lines +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.put_text_block_quotes_on_new_line=false +org.eclipse.jdt.core.formatter.tabulation.char=space +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.text_block_indentation=0 +org.eclipse.jdt.core.formatter.use_on_off_tags=true +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=true +org.eclipse.jdt.core.formatter.wrap_before_additive_operator=true +org.eclipse.jdt.core.formatter.wrap_before_assertion_message_operator=true +org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_bitwise_operator=true +org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true +org.eclipse.jdt.core.formatter.wrap_before_logical_operator=true +org.eclipse.jdt.core.formatter.wrap_before_multiplicative_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_before_relational_operator=true +org.eclipse.jdt.core.formatter.wrap_before_shift_operator=true +org.eclipse.jdt.core.formatter.wrap_before_string_concatenation=true +org.eclipse.jdt.core.formatter.wrap_before_switch_case_arrow_operator=false +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true +org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter diff --git a/native-image/.settings/org.eclipse.jdt.ui.prefs b/native-image/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000..cd7ee8e5 --- /dev/null +++ b/native-image/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +formatter_profile=_itsallcode style +formatter_settings_version=23 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.ondemandthreshold=4 +org.eclipse.jdt.ui.staticondemandthreshold=4 From 4bf68abe8ddd681dd6ed4c8ce738cfa2abde4771 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 14:29:32 +0100 Subject: [PATCH 15/41] Simplify native image integration test --- native-image/pom.xml | 5 ++ .../nativeimage/NativeImageIT.java | 51 ++++++++----------- 2 files changed, 27 insertions(+), 29 deletions(-) diff --git a/native-image/pom.xml b/native-image/pom.xml index 7efbadaf..0fcf2424 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -16,6 +16,11 @@ -H:-AddAllCharsets + + org.itsallcode + simple-process + test + org.itsallcode.openfasttrace openfasttrace diff --git a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java index 188520ee..008c0fb9 100644 --- a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java +++ b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java @@ -1,30 +1,24 @@ package org.itsallcode.openfasttrace.nativeimage; import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.containsString; -import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.is; -import static org.junit.jupiter.api.Assertions.fail; +import static org.hamcrest.Matchers.*; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; import java.time.Duration; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.concurrent.TimeUnit; +import java.util.*; import java.util.stream.Stream; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; +import org.itsallcode.process.SimpleProcess; +import org.itsallcode.process.SimpleProcessBuilder; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.Arguments; -import org.junit.jupiter.params.provider.MethodSource; -import org.junit.jupiter.params.provider.ValueSource; +import org.junit.jupiter.params.provider.*; class NativeImageIT { @@ -46,7 +40,7 @@ void testBuiltInImporterReadsItsFormat(final String fixtureName, final String ex fixture.toString())); arguments.addAll(additionalInputs); - final String output = runNativeImage(temporaryDirectory, arguments.toArray(String[]::new)); + final String output = runNativeImage(arguments.toArray(String[]::new)); assertThat("imported item", output, containsString(expectedId)); } @@ -70,7 +64,7 @@ void testBuiltInZipImporterReadsMarkdownEntry(@TempDir final Path temporaryDirec final Path archive = temporaryDirectory.resolve("sample.zip"); createZipArchive(markdown, archive); - final String output = runNativeImage(temporaryDirectory, "trace", "--report-verbosity", "all", + final String output = runNativeImage("trace", "--report-verbosity", "all", archive.toString()); assertThat("item imported from archive", output, containsString("req~native-image-markdown~1")); @@ -78,13 +72,14 @@ void testBuiltInZipImporterReadsMarkdownEntry(@TempDir final Path temporaryDirec // [itest->dsn~cli.native-executable.support-built-in-plugins~1] @ParameterizedTest - @ValueSource(strings = { "plain", "html", "aspec" }) + @ValueSource(strings = + { "plain", "html", "aspec" }) void testBuiltInReporterProducesItsOutput(final String format, @TempDir final Path temporaryDirectory) throws IOException, InterruptedException { final Path fixture = copyFixture("sample.md", temporaryDirectory); - final String output = runNativeImage(temporaryDirectory, "trace", "--report-verbosity", "all", + final String output = runNativeImage("trace", "--report-verbosity", "all", "--output-format", format, fixture.toString()); assertThat("report contains imported item", output, containsString("native-image-markdown")); @@ -105,13 +100,13 @@ void testBuiltInSpecObjectExporterProducesDocument(@TempDir final Path temporary { final Path fixture = copyFixture("sample.md", temporaryDirectory); - final String output = runNativeImage(temporaryDirectory, "convert", "--output-format", "specobject", + final String output = runNativeImage("convert", "--output-format", "specobject", fixture.toString()); assertThat("SpecObject output", output, containsString(" command = new ArrayList<>(); command.add(executable.toAbsolutePath().toString()); command.addAll(List.of(arguments)); - final Path outputFile = temporaryDirectory.resolve("native-image-output.txt"); - final Process process = new ProcessBuilder(command) + final SimpleProcess process = SimpleProcessBuilder.create() + .command(command) .redirectErrorStream(true) - .redirectOutput(outputFile.toFile()) .start(); - - if (!process.waitFor(PROCESS_TIMEOUT.toSeconds(), TimeUnit.SECONDS)) - { - process.destroyForcibly(); - fail("Native executable did not finish within " + PROCESS_TIMEOUT); - } - final String output = Files.readString(outputFile); + process.waitForTermination(PROCESS_TIMEOUT); + final String output = process.getStdOut(); assertThat("native executable output: " + output, process.exitValue(), equalTo(0)); return output; } @@ -140,14 +129,18 @@ private static Path nativeExecutablePath() { final String configuredPath = System.getProperty(NATIVE_IMAGE_PATH_PROPERTY, "target/openfasttrace"); final Path executable = Path.of(configuredPath); - if (System.getProperty("os.name", "").toLowerCase().contains("windows") - && !configuredPath.toLowerCase().endsWith(".exe")) + if (isWindows() && !configuredPath.toLowerCase().endsWith(".exe")) { return Path.of(configuredPath + ".exe"); } return executable; } + private static boolean isWindows() + { + return System.getProperty("os.name", "").toLowerCase().contains("windows"); + } + private static Path copyFixture(final String fixtureName, final Path targetDirectory) throws IOException { final Path target = targetDirectory.resolve(fixtureName); From fb4313334fbea176dc607ac86df1d030b59b2b36 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 14:33:45 +0100 Subject: [PATCH 16/41] Remove unnecessary JDK 17 from CI --- .github/workflows/build.yml | 8 +------- .github/workflows/release.yml | 8 +------- parent/pom.xml | 1 - 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1d24dbd..9eff3808 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -171,19 +171,13 @@ jobs: fetch-depth: 0 persist-credentials: false - - uses: actions/setup-java@v6 - name: Set up Maven toolchain - with: - distribution: temurin - java-version: 17 - cache: maven - - uses: graalvm/setup-graalvm@60e76998d25690099182b796e99b8804da582d90 # v1.6.10 name: Set up GraalVM 25 with: version: '25.0' distribution: graalvm github-token: ${{ secrets.GITHUB_TOKEN }} + cache: maven - name: Build product dependencies run: mvn --batch-mode -T 1C -pl product -am install -Dmaven.test.skip=true -Dossindex.skip=true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ce86ed3..8d3bc532 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,19 +59,13 @@ jobs: fetch-depth: 0 persist-credentials: false - - uses: actions/setup-java@v6 - name: Set up Maven toolchain - with: - distribution: temurin - java-version: 17 - cache: maven - - uses: graalvm/setup-graalvm@60e76998d25690099182b796e99b8804da582d90 # v1.6.10 name: Set up GraalVM 25 with: version: '25.0' distribution: graalvm github-token: ${{ secrets.GITHUB_TOKEN }} + cache: maven - name: Build product dependencies run: mvn --batch-mode -T 1C -pl product -am install -Dmaven.test.skip=true -Dossindex.skip=true diff --git a/parent/pom.xml b/parent/pom.xml index ae7aec4c..1a31f23b 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -344,7 +344,6 @@ ${java.version} UTF-8 - true true From 88c04b2cd043a5879c3bd312fda56a865c6671ef Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 14:43:52 +0100 Subject: [PATCH 17/41] Combine native image build into a single mvn call --- .github/workflows/build.yml | 5 +---- .github/workflows/release.yml | 5 +---- doc/developer_guide/developer_guide.md | 7 +++---- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9eff3808..2bdb5f68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -179,12 +179,9 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} cache: maven - - name: Build product dependencies - run: mvn --batch-mode -T 1C -pl product -am install -Dmaven.test.skip=true -Dossindex.skip=true - - name: Build and test native image with Maven run: >- - mvn --batch-mode -Pnative-image -pl native-image verify + mvn --batch-mode -T 1C -Pnative-image -pl native-image -am verify -Dossindex.skip=true -Dnative.image.name=${{ matrix.output }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d3bc532..e6dd3b2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,12 +67,9 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} cache: maven - - name: Build product dependencies - run: mvn --batch-mode -T 1C -pl product -am install -Dmaven.test.skip=true -Dossindex.skip=true - - name: Build and test native image with Maven run: >- - mvn --batch-mode -Pnative-image -pl native-image verify + mvn --batch-mode -T 1C -Pnative-image -pl native-image -am verify -Dossindex.skip=true -Dnative.image.name=${{ matrix.output }} diff --git a/doc/developer_guide/developer_guide.md b/doc/developer_guide/developer_guide.md index 5b2e441f..0c8ce4e8 100644 --- a/doc/developer_guide/developer_guide.md +++ b/doc/developer_guide/developer_guide.md @@ -157,16 +157,15 @@ mvn -Dit.test=CliStarterIT failsafe:integration-test -projects product ### Build and Test a Native Executable -Native builds use GraalVM Native Image 25. Keep the project's Java 17 toolchain configured, and set `GRAALVM_HOME` to a GraalVM 25 installation that includes `native-image`: +Native builds use GraalVM Native Image 25. The project targets Java 17; set `GRAALVM_HOME` to a GraalVM 25 installation that includes `native-image`: ```sh export GRAALVM_HOME=/path/to/graalvm-jdk-25 export PATH="$GRAALVM_HOME/bin:$PATH" -mvn --batch-mode -T 1C -pl product -am install -Dmaven.test.skip=true -mvn --batch-mode -Pnative-image -pl native-image verify +mvn --batch-mode -T 1C -Pnative-image -pl native-image -am verify ``` -The root Maven build selects the `native-image` module and builds the executable in `native-image/target/openfasttrace`, then runs JUnit integration tests against it. To set a platform-specific name, pass `-Dnative.image.name=openfasttrace-linux-x64` to the second command. Build and test on the target operating system and architecture. Native executables include built-in plugins; use the executable JAR distribution when third-party Java plugin JARs are required. +The command builds the native-image module and its reactor dependencies, including the product, then runs their tests and the native executable's JUnit integration tests. It builds the executable in `native-image/target/openfasttrace`. To set a platform-specific name, pass `-Dnative.image.name=openfasttrace-linux-x64`. Build and test on the target operating system and architecture. Native executables include built-in plugins; use the executable JAR distribution when third-party Java plugin JARs are required. ### Check for Dependency Updates From f27891f4860fdaf858aeaabd4b67272b435095ef Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 14:51:13 +0100 Subject: [PATCH 18/41] Upgrade to latest GraalVM --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2bdb5f68..950e825d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -174,7 +174,7 @@ jobs: - uses: graalvm/setup-graalvm@60e76998d25690099182b796e99b8804da582d90 # v1.6.10 name: Set up GraalVM 25 with: - version: '25.0' + version: '25.6' distribution: graalvm github-token: ${{ secrets.GITHUB_TOKEN }} cache: maven diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6dd3b2b..fb1eab05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,7 +62,7 @@ jobs: - uses: graalvm/setup-graalvm@60e76998d25690099182b796e99b8804da582d90 # v1.6.10 name: Set up GraalVM 25 with: - version: '25.0' + version: '25.6' distribution: graalvm github-token: ${{ secrets.GITHUB_TOKEN }} cache: maven From 92b5888e57df7c8d86979713ae65a09398cce6a5 Mon Sep 17 00:00:00 2001 From: Christoph Pirkl <4711730+kaklakariada@users.noreply.github.com> Date: Wed, 25 Nov 2026 14:55:24 +0100 Subject: [PATCH 19/41] Apply batched suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sebastian Bär --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ce86ed3..9a062798 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: GITHUB_REF: ${{ github.ref }} native-images: - needs: release-preflight + needs: validate-release-preconditions permissions: contents: read strategy: @@ -37,10 +37,10 @@ jobs: matrix: include: - target: linux-x64 - runner: ubuntu-24.04 + runner: ubuntu-26.04 output: openfasttrace-linux-x64 - target: linux-arm64 - runner: ubuntu-24.04-arm + runner: ubuntu-26.04-arm output: openfasttrace-linux-arm64 - target: macos-arm64 runner: macos-15 @@ -91,7 +91,7 @@ jobs: release: needs: - - release-preflight + - release-preconditions - native-images runs-on: ubuntu-latest defaults: From a3434b366792f3aa808d5cb8bfd817c520067eec Mon Sep 17 00:00:00 2001 From: Christoph Pirkl <4711730+kaklakariada@users.noreply.github.com> Date: Wed, 25 Nov 2026 14:55:53 +0100 Subject: [PATCH 20/41] Apply batched suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sebastian Bär --- doc/spec/design.md | 2 +- doc/spec/system_requirements.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/spec/design.md b/doc/spec/design.md index 0555619d..0703fb9a 100644 --- a/doc/spec/design.md +++ b/doc/spec/design.md @@ -1475,7 +1475,7 @@ Needs: impl ### Native Command Line Executables `dsn~cli.native-executable~1` -The dedicated `native-image` Maven module builds native command line executables from the product JAR with GraalVM Native Image 25 using the GraalVM Native Build Tools Maven plugin. The `native-image` Maven profile enables native compilation and integration tests; the default Maven build does not require GraalVM. Each executable is built and tested on a runner matching its target operating system and architecture. Native Image reachability metadata preserves the CLI's reflective argument setters. +The `native-image` Maven module builds native command line executables from the product JAR using the GraalVM Native Build Tools Maven plugin. The `native-image` Maven profile enables native compilation and smoke tests. Each executable is built and tested on a runner matching its target operating system and architecture. Native Image reachability metadata preserves the CLI's reflective argument setters. Native executables support built-in providers only. diff --git a/doc/spec/system_requirements.md b/doc/spec/system_requirements.md index f6445c69..55e5b637 100644 --- a/doc/spec/system_requirements.md +++ b/doc/spec/system_requirements.md @@ -1138,7 +1138,7 @@ Needs: dsn #### Native Command Line Executables `req~cli.native-executable~1` -OpenFastTrace provides native command line executables for supported Linux, macOS, and Windows architectures. Native executables shall include all built-in importers, exporters, and reporters. +OpenFastTrace provides native command line executables for supported Linux, macOS, and Windows architectures. The native executables include all built-in importers, exporters, and reporters. Covers: From 6942af0d8cbd75d31da54934480e7c956c3fe394 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 14:56:31 +0100 Subject: [PATCH 21/41] Add comment to release script --- .github/workflows/github_release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github_release.sh b/.github/workflows/github_release.sh index fb15e253..81496107 100755 --- a/.github/workflows/github_release.sh +++ b/.github/workflows/github_release.sh @@ -31,6 +31,7 @@ readonly sbom_checksum_path="${sbom_path}.sha256" shopt -s nullglob native_assets=("$base_dir"/native-image/target/openfasttrace-*) +# Expect binaries for Linux x86 + ARM, macOS ARM, Windows x86 if [[ "${#native_assets[@]}" -ne 4 ]]; then echo "Expected 4 native images in native-image/target, found ${#native_assets[@]}" >&2 exit 1 From 0b96d9c3ff2b2f96360cdb3d40a6b408d15402fb Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 14:57:50 +0100 Subject: [PATCH 22/41] Fix release precondition job name --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d776a3a4..eab50746 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ on: default: true jobs: - release-preflight: + validate-release-preconditions: runs-on: ubuntu-slim permissions: contents: read @@ -82,7 +82,7 @@ jobs: release: needs: - - release-preconditions + - validate-release-preconditions - native-images runs-on: ubuntu-latest defaults: From 46658f422e5cd193940e108c91ecb182182c2595 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 15:01:33 +0100 Subject: [PATCH 23/41] Implement review findings in developer guide --- doc/developer_guide/developer_guide.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/developer_guide/developer_guide.md b/doc/developer_guide/developer_guide.md index 0c8ce4e8..6a98d0a4 100644 --- a/doc/developer_guide/developer_guide.md +++ b/doc/developer_guide/developer_guide.md @@ -157,7 +157,7 @@ mvn -Dit.test=CliStarterIT failsafe:integration-test -projects product ### Build and Test a Native Executable -Native builds use GraalVM Native Image 25. The project targets Java 17; set `GRAALVM_HOME` to a GraalVM 25 installation that includes `native-image`: +Native builds use GraalVM Native Image 25. Set `GRAALVM_HOME` to a GraalVM 25 installation that includes `native-image`: ```sh export GRAALVM_HOME=/path/to/graalvm-jdk-25 @@ -165,7 +165,9 @@ export PATH="$GRAALVM_HOME/bin:$PATH" mvn --batch-mode -T 1C -Pnative-image -pl native-image -am verify ``` -The command builds the native-image module and its reactor dependencies, including the product, then runs their tests and the native executable's JUnit integration tests. It builds the executable in `native-image/target/openfasttrace`. To set a platform-specific name, pass `-Dnative.image.name=openfasttrace-linux-x64`. Build and test on the target operating system and architecture. Native executables include built-in plugins; use the executable JAR distribution when third-party Java plugin JARs are required. +The Maven build selects the `native-image` module and builds the executable in `native-image/target/openfasttrace`, then runs JUnit smoke tests against it. To set a platform-specific name, pass `-Dnative.image.name=openfasttrace-linux-x64` to the command. + +Build and test on the target operating system and architecture. Native executables include plugins from the main OpenFastTrace project. ### Check for Dependency Updates @@ -377,9 +379,9 @@ Legend: ### Why Two Parent POMs? -As you can see in the table above, not all modules are intended to be deployed on Maven Central. The distinction is made by using two parent POMs. +As you can see in the table above, not all modules are intended to be deployed on Maven Central. The distinction is made by using two parent POMs. -The base POM is `openfasttrace-parent`, it mainly contains common dependencies and build configuration. On top of that, `openfasttrace-mc-deployable-parent` adds signing and Maven central deployment. +The base POM is `openfasttrace-parent`, it mainly contains common dependencies and build configuration. On top of that, `openfasttrace-mc-deployable-parent` adds signing and Maven central deployment. This structure ensures that only user-facing components are published to Maven Central while keeping internal development tools and build infrastructure private. @@ -399,7 +401,7 @@ Ensure that neither `testutil` nor any parent module is included. ### Verify Deployment Preconditions -Configure Maven Central credentials in `~/.m2/settings.xml`: +Configure Maven Central credentials in `~/.m2/settings.xml`: ```xml From 85a389b0ccb2c3d1c7dc240965f60acf6e21194f Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 15:09:03 +0100 Subject: [PATCH 24/41] Prepare release --- doc/changes/changes_4.12.0.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/changes/changes_4.12.0.md b/doc/changes/changes_4.12.0.md index c203f7b2..ed03939f 100644 --- a/doc/changes/changes_4.12.0.md +++ b/doc/changes/changes_4.12.0.md @@ -1,4 +1,4 @@ -# OpenFastTrace 4.12.0, released 2026-10-?? +# OpenFastTrace 4.12.0, released 2026-11-25 Code name: Syntax usability and JSX and TSX tag importer @@ -12,3 +12,4 @@ The source tag importer now supports JSX (`.jsx`) and TSX (`.tsx`) source files, * #638: Allow hash mark in addition to tilde as revision separator * #647: Add support for JSX and TSX in the source tag importer +* #561: Build and publish native binaries for Linux (x64 and arm64), Windows (x64) and macOS (arm64) From b529b0f87f214d9b2faa1e786f9fb8f34ad2fd61 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 15:18:41 +0100 Subject: [PATCH 25/41] Implement review findings --- .../nativeimage/NativeImageIT.java | 89 ++++++++++++------- 1 file changed, 55 insertions(+), 34 deletions(-) diff --git a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java index 008c0fb9..53bba07a 100644 --- a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java +++ b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java @@ -1,7 +1,8 @@ package org.itsallcode.openfasttrace.nativeimage; import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.*; +import static org.hamcrest.Matchers.containsString; +import static org.hamcrest.Matchers.equalTo; import java.io.IOException; import java.io.InputStream; @@ -9,16 +10,16 @@ import java.nio.file.Path; import java.time.Duration; import java.util.*; -import java.util.stream.Stream; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; import org.itsallcode.process.SimpleProcess; import org.itsallcode.process.SimpleProcessBuilder; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.*; +import org.junit.jupiter.params.provider.CsvSource; class NativeImageIT { @@ -26,9 +27,26 @@ class NativeImageIT private static final Duration PROCESS_TIMEOUT = Duration.ofSeconds(60); private static final String NATIVE_IMAGE_PATH_PROPERTY = "native.image.path"; + @BeforeAll + static void requireNativeExecutable() + { + final Path executable = nativeExecutablePath(); + if (!Files.isRegularFile(executable)) + { + throw new AssertionError("Native executable not found at " + executable + + ". Build it with `mvn --batch-mode -T 1C -Pnative-image -pl native-image -am verify`."); + } + } + // [itest->dsn~cli.native-executable~1] @ParameterizedTest - @MethodSource("builtInImporterFixtures") + @CsvSource( + { + "sample.md, req~native-image-markdown~1", + "sample.rst, req~native-image-rst~1", + "sample.oreqm, req~native-image-specobject~1", + "sample.feature, scn~native-image-gherkin~1", + "sample.java, impl~native-image-tag~1" }) void testBuiltInImporterReadsItsFormat(final String fixtureName, final String expectedId, @TempDir final Path temporaryDirectory) throws IOException, InterruptedException { @@ -45,16 +63,6 @@ void testBuiltInImporterReadsItsFormat(final String fixtureName, final String ex assertThat("imported item", output, containsString(expectedId)); } - static Stream builtInImporterFixtures() - { - return Stream.of( - Arguments.of("sample.md", "req~native-image-markdown~1"), - Arguments.of("sample.rst", "req~native-image-rst~1"), - Arguments.of("sample.oreqm", "req~native-image-specobject~1"), - Arguments.of("sample.feature", "scn~native-image-gherkin~1"), - Arguments.of("sample.java", "impl~native-image-tag~1")); - } - // [itest->dsn~cli.native-executable~1] @Test void testBuiltInZipImporterReadsMarkdownEntry(@TempDir final Path temporaryDirectory) @@ -64,33 +72,46 @@ void testBuiltInZipImporterReadsMarkdownEntry(@TempDir final Path temporaryDirec final Path archive = temporaryDirectory.resolve("sample.zip"); createZipArchive(markdown, archive); - final String output = runNativeImage("trace", "--report-verbosity", "all", - archive.toString()); + final String output = runNativeImage("trace", "--report-verbosity", "all", archive.toString()); assertThat("item imported from archive", output, containsString("req~native-image-markdown~1")); } // [itest->dsn~cli.native-executable.support-built-in-plugins~1] - @ParameterizedTest - @ValueSource(strings = - { "plain", "html", "aspec" }) - void testBuiltInReporterProducesItsOutput(final String format, @TempDir final Path temporaryDirectory) + @Test + void testBuiltInPlainReporterProducesItsOutput(@TempDir final Path temporaryDirectory) throws IOException, InterruptedException { - final Path fixture = copyFixture("sample.md", temporaryDirectory); + final String output = runReporter(temporaryDirectory, "plain"); + assertThat("report contains imported item", output, containsString("native-image-markdown")); + } - final String output = runNativeImage("trace", "--report-verbosity", "all", - "--output-format", format, fixture.toString()); + // [itest->dsn~cli.native-executable.support-built-in-plugins~1] + @Test + void testBuiltInHtmlReporterProducesItsOutput(@TempDir final Path temporaryDirectory) + throws IOException, InterruptedException + { + final String output = runReporter(temporaryDirectory, "html"); + assertThat("HTML report contains imported item", output, containsString("native-image-markdown")); + assertThat("HTML report", output, containsString("")); + } - assertThat("report contains imported item", output, containsString("native-image-markdown")); - if (format.equals("html")) - { - assertThat("HTML report", output, containsString("")); - } - else if (format.equals("aspec")) - { - assertThat("SpecObject report", output, containsString("dsn~cli.native-executable.support-built-in-plugins~1] + @Test + void testBuiltInAspecReporterProducesItsOutput(@TempDir final Path temporaryDirectory) + throws IOException, InterruptedException + { + final String output = runReporter(temporaryDirectory, "aspec"); + assertThat("SpecObject report contains imported item", output, containsString("native-image-markdown")); + assertThat("SpecObject report", output, containsString("dsn~cli.native-executable.support-built-in-plugins~1] @@ -110,7 +131,6 @@ private static String runNativeImage(final String... arguments) throws IOException, InterruptedException { final Path executable = nativeExecutablePath(); - assertThat("native executable exists at " + executable, Files.isRegularFile(executable), is(true)); final List command = new ArrayList<>(); command.add(executable.toAbsolutePath().toString()); @@ -121,7 +141,8 @@ private static String runNativeImage(final String... arguments) .start(); process.waitForTermination(PROCESS_TIMEOUT); final String output = process.getStdOut(); - assertThat("native executable output: " + output, process.exitValue(), equalTo(0)); + assertThat("Native executable exited with code " + process.exitValue() + ". Output: " + output, + process.exitValue(), equalTo(0)); return output; } From 01aff483d6c9cff38bcf57792585d3ff4d48e2ab Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 15:23:21 +0100 Subject: [PATCH 26/41] Configure GraalVM as Java Toolchain --- .github/workflows/build.yml | 20 ++++++++++++++++++++ .github/workflows/release.yml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 950e825d..269e7fd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -179,10 +179,30 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} cache: maven + - name: Configure GraalVM 25 Maven toolchain + run: | + mkdir -p "$HOME/.m2" + cat > "$HOME/.m2/toolchains.xml" < + + jdk + + 25 + + + ${JAVA_HOME} + + + + EOF + - name: Build and test native image with Maven run: >- mvn --batch-mode -T 1C -Pnative-image -pl native-image -am verify -Dossindex.skip=true + -Djava.version=25 -Dnative.image.name=${{ matrix.output }} - name: Upload native image diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eab50746..81e23dbd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,10 +67,30 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} cache: maven + - name: Configure GraalVM 25 Maven toolchain + run: | + mkdir -p "$HOME/.m2" + cat > "$HOME/.m2/toolchains.xml" < + + jdk + + 25 + + + ${JAVA_HOME} + + + + EOF + - name: Build and test native image with Maven run: >- mvn --batch-mode -T 1C -Pnative-image -pl native-image -am verify -Dossindex.skip=true + -Djava.version=25 -Dnative.image.name=${{ matrix.output }} - name: Upload native image From 38c83763c1354e7683f5cc6978a7e712cb14edae Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 15:27:34 +0100 Subject: [PATCH 27/41] Add GC option for native image --- native-image/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/native-image/pom.xml b/native-image/pom.xml index 0fcf2424..b41539d8 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -93,6 +93,7 @@ --future-defaults=all -O2 + --gc=G1 ${native.image.charset.option} From 9103661fe460f772488fc6f73d61bab165a1ebcc Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 15:29:27 +0100 Subject: [PATCH 28/41] Fix unit test under macOS --- .../report/html/view/html/TestOriginLinkFormatter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java b/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java index 89398ef6..64b9dd80 100644 --- a/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java +++ b/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java @@ -96,7 +96,7 @@ void testFormatAbsoluteUnixPathWithSpecialCharactersLinux() void testFormatAbsoluteUnixPathWithSpecialCharactersMacOs() { assertPathAndLineRenderedToSpan("/fo o/bär/baz", 12345678, - "/fo o/bär/baz:12345678"); + "/fo o/bär/baz:12345678"); } @Test @@ -116,4 +116,4 @@ void testIllegalUri() { assertPathAndLineRenderedToSpan("http://example.org/a b", 5, "http://example.org/a b:5"); } -} \ No newline at end of file +} From f5c04fb836f4020a815eb151197511e8cd1d9e7f Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 17:37:42 +0100 Subject: [PATCH 29/41] Fix windows native image build --- native-image/pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/native-image/pom.xml b/native-image/pom.xml index b41539d8..f554ed5e 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -14,6 +14,7 @@ openfasttrace -H:-AddAllCharsets + @@ -95,6 +96,7 @@ -O2 --gc=G1 ${native.image.charset.option} + --native-compiler-options=${native.image.compiler.options} @@ -111,6 +113,8 @@ -H:+AddAllCharsets + + /wd4815 From d38337e4e25755e4caf3b0dee21203429163829c Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 17:38:17 +0100 Subject: [PATCH 30/41] Revert "Fix unit test under macOS" This reverts commit 9103661fe460f772488fc6f73d61bab165a1ebcc. --- .../report/html/view/html/TestOriginLinkFormatter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java b/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java index 64b9dd80..89398ef6 100644 --- a/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java +++ b/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java @@ -96,7 +96,7 @@ void testFormatAbsoluteUnixPathWithSpecialCharactersLinux() void testFormatAbsoluteUnixPathWithSpecialCharactersMacOs() { assertPathAndLineRenderedToSpan("/fo o/bär/baz", 12345678, - "/fo o/bär/baz:12345678"); + "/fo o/bär/baz:12345678"); } @Test @@ -116,4 +116,4 @@ void testIllegalUri() { assertPathAndLineRenderedToSpan("http://example.org/a b", 5, "http://example.org/a b:5"); } -} +} \ No newline at end of file From 53c8ed2a94c215964d00f6d55d3a3bc69512e047 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 17:42:10 +0100 Subject: [PATCH 31/41] Upgrade macos runner --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81e23dbd..c354a870 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: runner: ubuntu-26.04-arm output: openfasttrace-linux-arm64 - target: macos-arm64 - runner: macos-15 + runner: macos-26 output: openfasttrace-macos-arm64 - target: windows-x64 runner: windows-2025 From ce935015268db5deb0cb2fb629a262deb1432e5f Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 17:45:28 +0100 Subject: [PATCH 32/41] Fix sonar warnings --- .../nativeimage/NativeImageIT.java | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java index 53bba07a..dae09ce5 100644 --- a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java +++ b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java @@ -48,7 +48,7 @@ static void requireNativeExecutable() "sample.feature, scn~native-image-gherkin~1", "sample.java, impl~native-image-tag~1" }) void testBuiltInImporterReadsItsFormat(final String fixtureName, final String expectedId, - @TempDir final Path temporaryDirectory) throws IOException, InterruptedException + @TempDir final Path temporaryDirectory) throws IOException { final Path fixture = copyFixture(fixtureName, temporaryDirectory); final List additionalInputs = fixtureName.equals("sample.java") @@ -65,8 +65,7 @@ void testBuiltInImporterReadsItsFormat(final String fixtureName, final String ex // [itest->dsn~cli.native-executable~1] @Test - void testBuiltInZipImporterReadsMarkdownEntry(@TempDir final Path temporaryDirectory) - throws IOException, InterruptedException + void testBuiltInZipImporterReadsMarkdownEntry(@TempDir final Path temporaryDirectory) throws IOException { final Path markdown = copyFixture("sample.md", temporaryDirectory); final Path archive = temporaryDirectory.resolve("sample.zip"); @@ -79,8 +78,7 @@ void testBuiltInZipImporterReadsMarkdownEntry(@TempDir final Path temporaryDirec // [itest->dsn~cli.native-executable.support-built-in-plugins~1] @Test - void testBuiltInPlainReporterProducesItsOutput(@TempDir final Path temporaryDirectory) - throws IOException, InterruptedException + void testBuiltInPlainReporterProducesItsOutput(@TempDir final Path temporaryDirectory) throws IOException { final String output = runReporter(temporaryDirectory, "plain"); assertThat("report contains imported item", output, containsString("native-image-markdown")); @@ -88,8 +86,7 @@ void testBuiltInPlainReporterProducesItsOutput(@TempDir final Path temporaryDire // [itest->dsn~cli.native-executable.support-built-in-plugins~1] @Test - void testBuiltInHtmlReporterProducesItsOutput(@TempDir final Path temporaryDirectory) - throws IOException, InterruptedException + void testBuiltInHtmlReporterProducesItsOutput(@TempDir final Path temporaryDirectory) throws IOException { final String output = runReporter(temporaryDirectory, "html"); assertThat("HTML report contains imported item", output, containsString("native-image-markdown")); @@ -98,16 +95,14 @@ void testBuiltInHtmlReporterProducesItsOutput(@TempDir final Path temporaryDirec // [itest->dsn~cli.native-executable.support-built-in-plugins~1] @Test - void testBuiltInAspecReporterProducesItsOutput(@TempDir final Path temporaryDirectory) - throws IOException, InterruptedException + void testBuiltInAspecReporterProducesItsOutput(@TempDir final Path temporaryDirectory) throws IOException { final String output = runReporter(temporaryDirectory, "aspec"); assertThat("SpecObject report contains imported item", output, containsString("native-image-markdown")); assertThat("SpecObject report", output, containsString("dsn~cli.native-executable.support-built-in-plugins~1] @Test - void testBuiltInSpecObjectExporterProducesDocument(@TempDir final Path temporaryDirectory) - throws IOException, InterruptedException + void testBuiltInSpecObjectExporterProducesDocument(@TempDir final Path temporaryDirectory) throws IOException { final Path fixture = copyFixture("sample.md", temporaryDirectory); @@ -128,7 +122,6 @@ void testBuiltInSpecObjectExporterProducesDocument(@TempDir final Path temporary } private static String runNativeImage(final String... arguments) - throws IOException, InterruptedException { final Path executable = nativeExecutablePath(); From e22b103a09dfdbb58f04ad7b7492863b5b1f277a Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 17:51:10 +0100 Subject: [PATCH 33/41] Fix graalvm compiler options --- native-image/pom.xml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/native-image/pom.xml b/native-image/pom.xml index f554ed5e..f42642de 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -14,7 +14,6 @@ openfasttrace -H:-AddAllCharsets - @@ -96,7 +95,6 @@ -O2 --gc=G1 ${native.image.charset.option} - --native-compiler-options=${native.image.compiler.options} @@ -113,9 +111,21 @@ -H:+AddAllCharsets - - /wd4815 + + + + org.graalvm.buildtools + native-maven-plugin + + + + --native-compiler-options=/wd4815 + + + + + From a0d6541b3d389fc2824b31cecf2c7b7a765e88a1 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 17:56:08 +0100 Subject: [PATCH 34/41] Adapt macos tests --- .../html/view/html/TestOriginLinkFormatter.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java b/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java index 89398ef6..15498d42 100644 --- a/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java +++ b/reporter/html/src/test/java/org/itsallcode/openfasttrace/report/html/view/html/TestOriginLinkFormatter.java @@ -1,15 +1,14 @@ package org.itsallcode.openfasttrace.report.html.view.html; import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.anyOf; import static org.hamcrest.core.IsEqual.equalTo; import static org.itsallcode.openfasttrace.report.html.view.html.OriginLinkFormatter.formatAsBlock; import static org.itsallcode.openfasttrace.report.html.view.html.OriginLinkFormatter.formatAsSpan; import org.itsallcode.openfasttrace.api.core.Location; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.EnabledOnOs; -import org.junit.jupiter.api.condition.OS; +import org.junit.jupiter.api.condition.*; class TestOriginLinkFormatter { @@ -95,8 +94,12 @@ void testFormatAbsoluteUnixPathWithSpecialCharactersLinux() @EnabledOnOs(OS.MAC) void testFormatAbsoluteUnixPathWithSpecialCharactersMacOs() { - assertPathAndLineRenderedToSpan("/fo o/bär/baz", 12345678, - "/fo o/bär/baz:12345678"); + // macOS filesystem providers may expose this path in NFC or NFD form; + // Path.toUri() preserves that form, so JDK and GraalVM builds can differ. + final String actual = formatAsSpan(Location.create("/fo o/bär/baz", 12345678)); + assertThat(actual, anyOf( + equalTo("/fo o/bär/baz:12345678"), + equalTo("/fo o/bär/baz:12345678"))); } @Test @@ -116,4 +119,4 @@ void testIllegalUri() { assertPathAndLineRenderedToSpan("http://example.org/a b", 5, "http://example.org/a b:5"); } -} \ No newline at end of file +} From cac43e0829a6608cb1ef74206dd4bf4943cd3240 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Wed, 25 Nov 2026 18:05:20 +0100 Subject: [PATCH 35/41] Cancel in-progress concurrent builds --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 269e7fd3..a7ef764a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -165,6 +165,9 @@ jobs: run: shell: bash name: Native image ${{ matrix.target }} + concurrency: + group: ${{ github.workflow }}-native-${{ github.ref }}-${{ matrix.target }} + cancel-in-progress: true steps: - uses: actions/checkout@v7 with: From e38d7aeab73df778acbfd8a647c5f7f1e843b8c2 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Thu, 26 Nov 2026 07:59:32 +0100 Subject: [PATCH 36/41] Upgrade github runners --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7ef764a..7cae8771 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -149,13 +149,13 @@ jobs: matrix: include: - target: linux-x64 - runner: ubuntu-24.04 + runner: ubuntu-26.04 output: openfasttrace-linux-x64 - target: linux-arm64 - runner: ubuntu-24.04-arm + runner: ubuntu-26.04-arm output: openfasttrace-linux-arm64 - target: macos-arm64 - runner: macos-15 + runner: macos-26 output: openfasttrace-macos-arm64 - target: windows-x64 runner: windows-2025 From a29a537ec0c938af070b5f22cdda15859c6dbf8c Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Thu, 26 Nov 2026 08:04:46 +0100 Subject: [PATCH 37/41] Update release date --- doc/changes/changes_4.12.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changes/changes_4.12.0.md b/doc/changes/changes_4.12.0.md index ed03939f..1be6217e 100644 --- a/doc/changes/changes_4.12.0.md +++ b/doc/changes/changes_4.12.0.md @@ -1,4 +1,4 @@ -# OpenFastTrace 4.12.0, released 2026-11-25 +# OpenFastTrace 4.12.0, released 2026-11-26 Code name: Syntax usability and JSX and TSX tag importer From dc39e45065caf67bdac2910018907fcb6b123c9d Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Thu, 26 Nov 2026 08:17:20 +0100 Subject: [PATCH 38/41] Use assertAll in integration tests --- .../nativeimage/NativeImageIT.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java index dae09ce5..fb68212a 100644 --- a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java +++ b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java @@ -1,15 +1,18 @@ package org.itsallcode.openfasttrace.nativeimage; +import static java.util.Objects.requireNonNull; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.equalTo; +import static org.junit.jupiter.api.Assertions.assertAll; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; import java.time.Duration; -import java.util.*; +import java.util.ArrayList; +import java.util.List; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; @@ -89,8 +92,9 @@ void testBuiltInPlainReporterProducesItsOutput(@TempDir final Path temporaryDire void testBuiltInHtmlReporterProducesItsOutput(@TempDir final Path temporaryDirectory) throws IOException { final String output = runReporter(temporaryDirectory, "html"); - assertThat("HTML report contains imported item", output, containsString("native-image-markdown")); - assertThat("HTML report", output, containsString("")); + assertAll( + () -> assertThat("HTML report contains imported item", output, containsString("native-image-markdown")), + () -> assertThat("HTML report", output, containsString(""))); } // [itest->dsn~cli.native-executable.support-built-in-plugins~1] @@ -98,8 +102,10 @@ void testBuiltInHtmlReporterProducesItsOutput(@TempDir final Path temporaryDirec void testBuiltInAspecReporterProducesItsOutput(@TempDir final Path temporaryDirectory) throws IOException { final String output = runReporter(temporaryDirectory, "aspec"); - assertThat("SpecObject report contains imported item", output, containsString("native-image-markdown")); - assertThat("SpecObject report", output, containsString(" assertThat("SpecObject report contains imported item", output, + containsString("native-image-markdown")), + () -> assertThat("SpecObject report", output, containsString(" Date: Thu, 26 Nov 2026 08:25:29 +0100 Subject: [PATCH 39/41] Cleanup native image pom --- native-image/pom.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/native-image/pom.xml b/native-image/pom.xml index f42642de..10f84ede 100644 --- a/native-image/pom.xml +++ b/native-image/pom.xml @@ -16,22 +16,23 @@ -H:-AddAllCharsets - - org.itsallcode - simple-process - test - org.itsallcode.openfasttrace openfasttrace ${revision} + org.itsallcode.openfasttrace * + + org.itsallcode + simple-process + test + From cb3806bd92af0ab7b9231fe90b3795ac8056e2ac Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Thu, 26 Nov 2026 15:08:16 +0100 Subject: [PATCH 40/41] Implement review finding: add final --- .../org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java index fb68212a..11cd66e2 100644 --- a/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java +++ b/native-image/src/test/java/org/itsallcode/openfasttrace/nativeimage/NativeImageIT.java @@ -164,7 +164,7 @@ private static boolean isWindows() private static Path copyFixture(final String fixtureName, final Path targetDirectory) throws IOException { final Path target = targetDirectory.resolve(fixtureName); - try (InputStream fixture = requireNonNull( + try (final InputStream fixture = requireNonNull( NativeImageIT.class.getResourceAsStream(RESOURCE_DIRECTORY + fixtureName))) { Files.copy(fixture, target); From a53bf343b2b4c6d356b8525e4d5449c9e165ecd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=A4r?= Date: Thu, 26 Nov 2026 15:25:02 +0100 Subject: [PATCH 41/41] Correct OpenFastTrace Language Server links and credits Updated links and acknowledgments for OpenFastTrace Language Server. --- .../tool_support/tools_for_authoring_oft_documents.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/user_guide/tool_support/tools_for_authoring_oft_documents.md b/doc/user_guide/tool_support/tools_for_authoring_oft_documents.md index 9d3dd55b..5c12e948 100644 --- a/doc/user_guide/tool_support/tools_for_authoring_oft_documents.md +++ b/doc/user_guide/tool_support/tools_for_authoring_oft_documents.md @@ -39,12 +39,10 @@ Features include: #### Third-Party Plugins -Check out the [OpenFastTrace Language Server](https://github.com/fgorke/openfasttrace-language-server) written by [@fgorke](https://github.com/fgorke). - -A big thank-you to [@fgorke](https://github.com/fgorke) for developing the OpenFastTrace Language Server! +Check out the [OpenFastTrace Language Server](https://github.com/itsallcode/openfasttrace-language-server). A big thank-you to [@fgorke](https://github.com/fgorke) for developing the OpenFastTrace Language Server! Unlike a specific plugin for a single IDE, language servers provide a standardized way to integrate language features across different IDEs (e.g., VS Code or the JetBrains IDEs). -* [User Guide](https://github.com/fgorke/openfasttrace-language-server/blob/main/doc/user-guide/README.md) -* [Demo](https://github.com/fgorke/openfasttrace-language-server/blob/main/doc/demo/README.md) -* [Releases](https://github.com/fgorke/openfasttrace-language-server/releases) +* [User Guide](https://github.com/itsallcode/openfasttrace-language-server/blob/main/doc/user-guide/README.md) +* [Demo](https://github.com/itsallcode/openfasttrace-language-server/blob/main/doc/demo/README.md) +* [Releases](https://github.com/itsallcode/openfasttrace-language-server/releases)