Skip to content

DO NOT REVIEW: ci: check the Check builder's output of the repository's catalogs - #1680

Draft
joaodinissf wants to merge 2 commits into
gen-sync-step-4from
gen-sync-step-5
Draft

joaodinissf wants to merge 2 commits into
gen-sync-step-4from
gen-sync-step-5

Conversation

@joaodinissf

@joaodinissf joaodinissf commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

The generated-sources check now covers the Check builder's output, produced by the builder Eclipse runs, not by a second generator.

  • com.avaloq.tools.ddk.check.regenerate is an unpublished test bundle. Its test imports every project with Check settings (check.test.runtime and sample.helloworld) into a workbench at its location in the repository, cleans and builds it, and fails on build errors. That is what cleaning the projects in a runtime workbench does.
  • regenerate.sh runs it after the MWE2 workflows, and the generated-sources job runs the script under xvfb-run. The job therefore also fails when a catalog's Java, documentation pages, service registry or plugin.xml extensions differ from what the builder writes.
  • The test is skipped unless check.regenerate.skip=false, which only the script sets; check-surefire-reports.sh leaves it out.
  • The Check builder declared the checkcfgproject preference scope, implemented by a class DDK doesn't have, on every clean build, so plugin.xml of check.test.runtime and sample.helloworld kept getting it back after efabc6f removed it. The scope is now declared only if CheckConfigurationPreferences is on the project's build path, and an update removes it otherwise; CheckPreferencesExtensionTest covers both.
  • AGENTS.md describes regenerating Check output in a runtime workbench and with the script.

Verified locally: with all 24 committed Check output files deleted, regenerate.sh restores them byte-identical; hand edits to a generated class and a documentation page are overwritten; the full build passes (553 tests, PMD, CPD, Checkstyle, SpotBugs).

Fixes #1673

🤖 Generated with Claude Code

@joaodinissf
joaodinissf added this pull request to stack #1681 November 28, 2026 11:49
@joaodinissf joaodinissf changed the title feat(check): compile Check catalogs headless and check them in CI DO NOT REVIEW: feat(check): compile Check catalogs headless and check them in CI Nov 28, 2026
@joaodinissf joaodinissf changed the title DO NOT REVIEW: feat(check): compile Check catalogs headless and check them in CI DO NOT REVIEW: ci: check the Check builder's output of the repository's catalogs Nov 28, 2026
joaodinissf and others added 2 commits November 28, 2026 14:44
… exists

The Check builder added a checkcfgproject preference scope, implemented
by com.avaloq.tools.targetdefinition.check.configuration.CheckConfigurationPreferences,
to the preferences extension of every catalog. DDK has no such class, so
a clean build put an unresolvable scope back into the plugin.xml of
check.test.runtime and sample.helloworld, which efabc6f had removed by
hand.

The scope is now declared only if the class is on the Java build path of
the catalog's project, as the old TODO asked, and an update removes a
scope whose class is not available. Projects that have the class keep it.

Part of #1673

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
com.avaloq.tools.ddk.check.regenerate is an unpublished test bundle whose
test regenerates the Check output as Eclipse does: it imports every
project with Check settings (check.test.runtime and sample.helloworld)
into a workbench at its location in the repository, cleans and builds
it, and fails on build errors. The output is the IDE builder's own, so
there is no second Check generator to keep in line with it.

regenerate.sh runs it after the MWE2 workflows, and the generated-sources
job runs the script under xvfb-run, so the job also fails when a
catalog's Java, documentation pages, service registry or plugin.xml
extensions differ from what the builder writes. The test is skipped
unless check.regenerate.skip=false, which only the script sets, so
check-surefire-reports.sh leaves it out.

Fixes #1673

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check: catalogs cannot be regenerated outside Eclipse

1 participant