Repository navigation
DO NOT REVIEW: ci: check that generated sources match their MWE2 workflows - #1674
Draft
joaodinissf wants to merge 3 commits into
Draft
joaodinissf wants to merge 3 commits into
joaodinissf wants to merge 3 commits into
Conversation
joaodinissf
force-pushed
the
gen-sync-step-1
branch
from
November 28, 2026 09:56
c02a46f to
f65cf20
Compare
com.avaloq.tools.ddk.workflow holds most of the DDK's MWE2 workflows and ExtendedLanguageConfig. It now has a pom again and is in the default modules of ddk-parent, so it is compiled and covered by PMD, Checkstyle and SpotBugs, and Tycho can resolve the classpath to run its workflows. Its pom had been removed in #1371 because the module was not built. The bundle is in no feature, so it needs no version bump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.github/scripts/regenerate.sh runs every tracked MWE2 workflow without Eclipse, except those in EXCLUDE (not standalone workflows) and KNOWN_DRIFT (output not yet in sync, each with the issue that fixes it); a listed workflow that is no longer tracked is an error. For each owning bundle it asks Tycho for the resolved dependencies (tycho-dependency-tools-plugin:list-dependencies), points the DDK entries at the reactor's target/classes, adds the patched ANTLR generator, writes the classpath to a java argfile and runs Mwe2Launcher from the bundle's directory. It exits non-zero if any workflow fails. exec-maven-plugin cannot do this, since its %classpath lacks Tycho's p2 dependencies. The generated-sources job in verify.yml builds the owning bundles, runs the script and fails with the diff if git status reports any change. Maven runs before the workflows, as jgit.dirtyWorkingTree is an error in CI. Today it checks GenerateExpression, GenerateScope, TypeModel and ModelInference; #1671 and #1672 empty KNOWN_DRIFT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joaodinissf
force-pushed
the
gen-sync-step-1
branch
from
November 28, 2026 13:32
f65cf20 to
1776421
Compare
Every tracked workflow now has an MWE2 launch: new ones in com.avaloq.tools.ddk.workflow for Export, Expression, Format, FormatterTestLanguage, Scope, ModelInference and TypeModel, and GenerateCheckCfg.mwe2.launch now runs the workflow from com.avaloq.tools.ddk.workflow, where it lives, instead of a path that does not exist in checkcfg.core. Eclipse output is the reference for generated sources. regenerate.sh fails when a workflow has no launch, AGENTS.md and the generated-sources error name the Eclipse launch first, and the script must reproduce what the launches generate. Launch files are not packaged, so they no longer change the bundle qualifier, like .project. Otherwise the launch fix in checkcfg.core alone would fail the version baseline check with "Only qualifier changed". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joaodinissf
force-pushed
the
gen-sync-step-1
branch
from
November 28, 2026 13:45
1776421 to
6e104f5
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runs MWE2 workflows without Eclipse and checks in CI that committed generated sources match them.
com.avaloq.tools.ddk.workflowgets a pom again and joins the default<modules>ofddk-parent, so it is compiled and covered by PMD, Checkstyle and SpotBugs. This reverses the pom removal in build: enable the Tycho baseline version #1371, which was made because the module was not built. The bundle is in no feature, so no version bump..github/scripts/regenerate.shasks Tycho for each owning bundle's resolved dependencies (tycho-dependency-tools-plugin:list-dependencies), points DDK entries at the reactor'starget/classes, adds the patched ANTLR generator, and runsMwe2Launcherfrom the bundle's directory. It stops if a bundle is not built and exits non-zero if a workflow fails;--listprints the workflows it runs.generated-sourcesjob inverify.ymlbuilds the owning bundles, runs the script, and fails with the diff ifgit status --porcelainreports anything. Maven runs before the workflows, sincejgit.dirtyWorkingTreeis an error in CI.AGENTS.mdname the launch first and the script second..projectthey no longer change a bundle's qualifier; the launch fix in checkcfg.core would otherwise fail the version baseline check.git ls-files '*.mwe2', so a new one is checked automatically.EXCLUDElists the three that aren't standalone workflows.KNOWN_DRIFTlists the seven whose output still differs, each with the issue that removes it (Regenerate the DDK languages: committed generated files drift from their workflows #1671, check.test.runtime: GenerateTestLanguage output diverges from the committed sources and does not compile #1672); a listed workflow that no longer exists is an error. Today the check runs GenerateExpression, GenerateScope, TypeModel and ModelInference.AGENTS.mddescribes how to regenerate locally.Verified locally on Temurin 21: the install and the script pass with a clean tree afterwards; a committed hand edit to a generated file makes the check fail; an unbuilt bundle stops the script; PMD, CPD, Checkstyle and SpotBugs pass on the workflow module.
Fixes #1669
🤖 Generated with Claude Code