Skip to content

Fix CI for MW master: tolerate absent Wikibase JS submodules#283

Merged
JeroenDeDauw merged 1 commit into
masterfrom
fix/ci-mw-master-wikibase-submodules
Jun 15, 2026
Merged

Fix CI for MW master: tolerate absent Wikibase JS submodules#283
JeroenDeDauw merged 1 commit into
masterfrom
fix/ci-mw-master-wikibase-submodules

Conversation

@JeroenDeDauw

Copy link
Copy Markdown
Member

Written by Claude Code, Opus 4.8 (1M context). @JeroenDeDauw spotted that CI fails for the MW master matrix job and asked for a simple fix. Context: the WikibaseFacetedSearch codebase, its CI workflow and failing run logs, and Wikibase's .gitmodules on master vs the REL1_* branches.

The MW master CI job aborted in installMediaWiki.sh with exit 128:

fatal: no submodule mapping found in .gitmodules for path 'view/lib/wikibase-serialization'

Wikibase master removed the wikibase-serialization, wikibase-data-values and wikibase-data-model view-layer submodules (migrated to npm), so git submodule set-url on those paths fails. Under set -e this aborted the install before PHPUnit ran, and fail-fast then cancelled every other matrix job.

These JS libraries are not needed by the PHP test suite. Make the URL rewrites tolerant of an absent submodule so the script no longer aborts on master, while behaviour on REL1_43/44/45 (where the submodules still exist) is unchanged.

🤖 Generated with Claude Code

@codecov-commenter

codecov-commenter commented Jun 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.07%. Comparing base (038c781) to head (9ef9663).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #283   +/-   ##
=========================================
  Coverage     74.07%   74.07%           
  Complexity      399      399           
=========================================
  Files            47       47           
  Lines          1292     1292           
=========================================
  Hits            957      957           
  Misses          335      335           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The MW master CI job aborted in installMediaWiki.sh with exit 128:

    fatal: no submodule mapping found in .gitmodules for path 'view/lib/wikibase-serialization'

Wikibase master removed the wikibase-serialization, wikibase-data-values and
wikibase-data-model view-layer submodules (migrated to npm), so `git submodule
set-url` on those paths fails. Under `set -e` this aborted the install before
PHPUnit ran, and fail-fast then cancelled every other matrix job.

These JS libraries are not needed by the PHP test suite. Make the URL rewrites
tolerant of an absent submodule so the script no longer aborts on master, while
behaviour on REL1_43/44/45 (where the submodules still exist) is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@malberts malberts force-pushed the fix/ci-mw-master-wikibase-submodules branch from e5bcb9e to 9ef9663 Compare June 15, 2026 11:18
@JeroenDeDauw JeroenDeDauw marked this pull request as ready for review June 15, 2026 12:32
@JeroenDeDauw JeroenDeDauw merged commit 950795e into master Jun 15, 2026
18 checks passed
@JeroenDeDauw JeroenDeDauw deleted the fix/ci-mw-master-wikibase-submodules branch June 15, 2026 12:42
@JeroenDeDauw JeroenDeDauw mentioned this pull request Jun 15, 2026
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.

2 participants