Skip to content

Update JCEF Stub model dependencies and migrate to v263 with all cascading changes included - #2063

Merged
arimer merged 378 commits into
masterfrom
features/arimer/v263
Nov 25, 2026
Merged

arimer merged 378 commits into
masterfrom
features/arimer/v263

Conversation

@arimer

@arimer arimer commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Since MPS 2026.3 (build 263.x), the JCEF classes (com.intellij.ui.jcef.*) are no longer part of lib/app.jar. They only ship in the platform plugin com.intellij.modules.jcef ("Web Browser (JCEF)"). mps-extensions now provides the stub plugin com.jetbrains.mpsext.stubs.jcef for these classes (mps-extensions #1888, reported to JetBrains as MPS-40100). org.iets3.variability.os uses it for the Skeleton Tree tool.

The stub ships no classes of its own and depends on com.intellij.modules.jcef. Our test runs never loaded that plugin, so MPS excluded the stub plugin and with it the whole org.iets3.variability.os plugin. As a result, 161 test classes in test.org.iets3.variability.configuration.base and test.org.iets3.variability.featuremodel.base were skipped with error building test suite. They did not show up as failures in the JUnit report, on TeamCity or locally.

Changes

  • Use the renamed JCEF stubs (ee24504, 397c2fa): references point to com.jetbrains.mpsext.stubs.jcef from mbeddr.platform 9999.9.27007.df5a4e9-SNAPSHOT, and org.iets3.opensource declares the layout dependency on jcef-plugin ($mps.home).

  • Load JCEF in test runs (4247e6f), in the test build org.iets3.opensource.tests (node url):

    • declares com.intellij.modules.jcef as a provided plugin (node url);
    • copies $mps.home/plugins/jcef-plugin into the test layout;
    • loads it in launchtests.

    A layout entry can only reference plugins of its own build project, so the test build has its own declaration, as MPS does for Git4Idea in mpsVcsPlatform.

  • Install the JCEF plugin that matches the host (4247e6f, build.gradle.kts): the generic MPS distribution unpacks the Linux x64 jcef-plugin, which MPS rejects on other platforms (incompatible with host OS). resolveMPS now replaces it with the matching variant from build/mps/platform-plugins/<platform>.tar: mac.aarch64, unix.x64, unix.aarch64 or win.x64. On Intel Macs there is no archive; the build logs a warning and keeps the Linux plugin.

Verification

Verified locally on macOS arm64:

  • the test run loads Web Browser (JCEF), MPS JCEF (Stubs) and org.iets3.variability.os;
  • error building test suite 0 times (was 161 classes);
  • 4532 tests (was 4209).

Impact

Skeleton Tree users in the MPS IDE

  • No action needed with an official MPS installer. It bundles jcef-plugin and a JBR with JCEF for its own OS.
  • Requires an mbeddr.platform version that contains com.jetbrains.mpsext.stubs.jcef.
  • org.iets3.variability.os has a hard dependency on JCEF (via the stub plugin). If "Web Browser (JCEF)" is disabled or missing, MPS disables the whole variability plugin, not just the Skeleton Tree tool.
  • Where JCEF is not supported at runtime (e.g. headless), the tool logs JCEF technology is not supported, browser-based tools cannot be used and does not fail.

Custom packaged RCPs

  • Bundle the jcef-plugin of each target platform: take it from the per-OS MPS distribution or from platform-plugins/<platform>.tar of the generic one, not from the generic plugins/jcef-plugin, which is Linux x64.
  • Declare com.intellij.modules.jcef as a provided plugin in the RCP build and place it in the layout, as org.iets3.opensource.tests does.
  • Ship a JBR with JCEF (jbr_jcef).
  • Include com.jetbrains.mpsext.stubs.jcef from mbeddr.platform.
  • Check in the packaged product that "Web Browser (JCEF)" is listed and enabled. Otherwise org.iets3.variability.os and everything depending on it is switched off.

Follow-up

Moving the Skeleton Tree tool into its own plugin would remove the JCEF dependency from org.iets3.variability.os. The variability languages would then load with or without JCEF, in the IDE, in RCPs and in tests.

arimer and others added 30 commits September 21, 2026 09:28
…rd-party-minor

Update third-party-minor (maintenance/mps20241)
…s-concerning-referencing-Configurations-#1791

# Conflicts:
#	code/languages/org.iets3.opensource/languages/org.iets3.variability.configuration.base/models/org.iets3.variability.configuration.base.behavior.mps
#	code/languages/org.iets3.opensource/languages/org.iets3.variability.configuration.base/models/org.iets3.variability.configuration.base.intentions.mps
#	code/languages/org.iets3.opensource/tests/test.org.iets3.variability.configuration.base/models/test.org.iets3.variability.configuration.base.inheritance@tests.mps
#	code/languages/org.iets3.opensource/tests/test.org.iets3.variability.configuration.base/test.org.iets3.variability.configuration.base.msd
…or-github-actions

Update dependency java-jdk to v25 (maintenance/mps20241)
Merge maintenance/mps20241 into maintenance/mps20251
…s-concerning-referencing-Configurations-#1791
…rd-party-minor

Update third-party-minor (maintenance/mps20241)
Already removed in a2fe2cb but
apparently re-added during a cascading merge
Remove dependency on org.iets3.core.expr.tracing
…ncluded_fm_1970

Variability: Introduce new method getTransitivelyIncludedFeatureModels
…dle-9.x

Update Gradle to v9.8.0 (maintenance/mps20241)
…s-concerning-referencing-Configurations-#1791
# Conflicts:
#	CHANGELOG.md
#	code/languages/org.iets3.opensource/languages/org.iets3.core.expr.typetags.physunits/models/org.iets3.core.expr.typetags.physunits.behavior.mps
#	code/languages/org.iets3.opensource/languages/org.iets3.core.expr.typetags/models/org/iets3/core/expr/typetags/editor.mps
#	code/languages/org.iets3.opensource/languages/org.iets3.variability.configuration.base/models/org.iets3.variability.configuration.base.intentions.mps
#	code/languages/org.iets3.opensource/solutions/org.iets3.opensource.build/models/org/iets3/opensource/build/build.mps
#	gradle/libs.versions.toml
…chInheritanceChain, add test (#1791)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merge maintenance/mps20241 into maintenance/mps20251
arimer and others added 14 commits November 18, 2026 16:59
Merge maintenance/mps20251 into maintenance/mps20261
Merge maintenance/mps20241 into maintenance/mps20251
…ch-third-party-minor

Update third-party-minor (maintenance/mps20261) (patch)
…ch-mpsversion

Update dependency com.jetbrains:mps to v2026.1.2 (maintenance/mps20261)
- build.mps: the test build declares com.intellij.modules.jcef as a provided
  plugin, copies $mps.home/plugins/jcef-plugin into its layout and loads it
  in launchtests. Without it the JCEF stub plugin and org.iets3.variability.os
  were excluded and 161 test classes were skipped.
- build.gradle.kts: resolveMPS replaces the Linux x64 jcef-plugin of the
  generic MPS distribution with the host variant from
  platform-plugins/<platform>.tar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arimer
arimer requested a review from jonaskraemer as a code owner November 19, 2026 16:20
@arimer
arimer marked this pull request as draft November 19, 2026 16:28
@arimer

arimer commented Nov 19, 2026 •

Copy link
Copy Markdown
Member Author

Verifying the JCEF fix (branch features/arimer/v263)

What to expect

  • The test run loads the JCEF plugin (Web Browser (JCEF)) for your OS.
  • No test classes are skipped with "error building test suite". Before the fix, 161 variability test classes were silently missing.
  • 4,583 tests, 0 failures, BUILD SUCCESSFUL.

Important: always run buildLanguages before buildAndRunTests. The test build generates against the packaged languages in build/artifacts, and buildAndRunTests doesn't rebuild them. With stale artifacts, test generation fails with unresolved references, and Gradle reports failures from an old TESTS-TestSuites.xml.

Linux (x64 or arm64) and macOS (Apple Silicon)

git fetch origin && git checkout features/arimer/v263 && git pull
./gradlew clean
./gradlew buildLanguages buildAndRunTests 2>&1 | tee tests.log

# 1. The host-specific JCEF plugin was installed
#    (expect: unix.x64.tar, unix.aarch64.tar or mac.aarch64.tar)
grep "Installed JCEF plugin" tests.log
# 2. No skipped test classes (expect: 0)
grep -c "error building test suite" tests.log
# 3. JCEF, the stubs and the variability plugin were loaded
grep -o "Web Browser (JCEF) ([^)]*)\|MPS JCEF (Stubs) ([^)]*)\|org.iets3.variability.os ([^)]*)" build/system/testlog/idea.log | sort -u
grep -c "incompatible with host OS" build/system/testlog/idea.log   # expect: 0
# 4. Test totals (expect: tests="4583" failures="0" errors="0")
head -2 build/scripts/TEST-junit-jupiter-org.iets3.opensource.tests.xml

Windows (x64, PowerShell)

git fetch origin; git checkout features/arimer/v263; git pull
.\gradlew.bat clean
.\gradlew.bat buildLanguages buildAndRunTests *> tests.log

Select-String -Path tests.log -Pattern "Installed JCEF plugin"                    # expect: win.x64.tar
(Select-String -Path tests.log -Pattern "error building test suite").Count        # expect: 0
Select-String -Path build\system\testlog\idea.log -Pattern "Web Browser \(JCEF\) \(|MPS JCEF \(Stubs\) \(|org\.iets3\.variability\.os \("
(Select-String -Path build\system\testlog\idea.log -Pattern "incompatible with host OS").Count   # expect: 0
Get-Content build\scripts\TEST-junit-jupiter-org.iets3.opensource.tests.xml -TotalCount 2       # expect: tests="4583" failures="0"

Notes

  • Expected warnings: The plugin 'com.intellij.modules.jcef' was not found in the layout of … during generate is harmless. It comes from generating the ant scripts and has nothing to do with the test run.
  • Don't run two Gradle builds at the same time in the same checkout. They share build/ and overwrite each other.
  • Unsupported hosts: on Intel Macs and Windows on ARM, MPS ships no matching JCEF plugin. The build logs No JCEF plugin for this host and keeps the Linux plugin, so the variability tests are skipped there.
  • Not yet tested: Windows hasn't been tried. The Gradle step calls tar, which ships with Windows 10 (1803) and later. If you see a tar error or No JCEF plugin for this host, please report it.
  • "Installed JCEF plugin" missing from the log: after clean it always appears. Without clean, resolveMPS may be up to date and skip the message. Check 3 is still valid then.

Merge maintenance/mps20251 into maintenance/mps20261
# Conflicts:
#	code/languages/org.iets3.opensource/solutions/org.iets3.core.junit.interpreter.run.configuration/org.iets3.core.junit.interpreter.run.configuration.msd
#	code/languages/org.iets3.opensource/solutions/org.iets3.opensource.build/models/org/iets3/opensource/build/build.mps
#	gradle/libs.versions.toml
@arimer arimer changed the title Update JCEF Stub model dependencies and migrate to v263 Update JCEF Stub model dependencies and migrate to v263 with all cascading changes included Nov 19, 2026
@arimer
arimer marked this pull request as ready for review November 19, 2026 17:05
@arimer
arimer requested a review from kbirken November 23, 2026 09:21
@arimer

arimer commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Confirmed a working local

Waiting for final reivew.

@sergej-koscejev sergej-koscejev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only looked at commit 4247e6f but @arimer wants an approval for the whole PR.

@arimer
arimer merged commit b860dea into master Nov 25, 2026
2 checks passed
@arimer
arimer deleted the features/arimer/v263 branch November 25, 2026 08:14
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.

6 participants