Problem/Motivation

The initial GitLab pipeline for mcp_server_ui is red after
enabling the Drupal.org GitLab CI template on the 1.x branch.
The failing pipeline is:

  • Pipeline:
    856065
  • Commit:
    2f47d337
    (ci: execute GitLab CI pipelines)
  • Branch: 1.x
  • Created: 2026-06-18 13:57 UTC

The blocking failure is the phpunit job. The pipeline also has
warning failures in cspell and phpstan; those are
currently allowed to fail, but they should be fixed so future CI tightening
does not turn the pipeline red again.

Steps to reproduce

  1. Push the current 1.x branch with the committed .gitlab-ci.yml.
  2. Open pipeline 856065.
  3. Inspect job 10416424 (phpunit).

Observed result

The phpunit job fails before running useful assertions because
the test installs a fixture module that is not present in this split-out
project:

Drupal\Core\Extension\MissingDependencyException: Unable to install modules mcp_server_ui, mcp_server_test due to missing modules mcp_server_test.

/builds/project/mcp_server_ui/tests/src/Functional/McpServerUiTest.php:42

Tests: 1, Assertions: 0, Errors: 1, Warnings: 6, Risky: 1.

The phpstan job reports missing classes from the
mcp_server dependency, for example:

Drupal\mcp_server\Plugin\PromptArgumentCompletionProviderManager
Drupal\mcp_server\Entity\McpPromptConfig
Drupal\mcp_server\Plugin\ResourceProviderManager
Drupal\mcp_server\Plugin\ResourceTemplateProviderManager

The cspell job reports kenkeep as an unknown word
in AGENTS.md and skills-lock.json.

Expected result

The default GitLab pipeline for 1.x should complete with a green
overall status. The required composer, composer-lint,
phpcs, and phpunit jobs should pass, and the
non-blocking validation jobs should not contain known actionable failures.

Proposed resolution

  1. Fix the functional test fixture dependency. Either add a local
    tests/modules/mcp_server_ui_test fixture module that provides
    the resource provider and completion provider plugins needed by
    McpServerUiTest, or make the upstream
    mcp_server_test fixture available to this project's PHPUnit
    job in a documented way.
  2. Fix PHPStan discovery for the mcp_server dependency so the
    analyzer can resolve the classes used by the UI module. Prefer a project
    phpstan.neon or CI configuration that scans the installed
    dependency over adding baselines for missing symbols.
  3. Commit the project dictionary update, or set _CSPELL_WORDS, so
    kenkeep is treated as a project word.
  4. Re-run the GitLab pipeline and confirm the required jobs are green.

drupalorg CLI workflow

After this issue exists, the issue fork/MR can be managed with
drupalorg:

drupalorg issue:show <nid> --format=llm --no-cache
drupalorg issue:fork <nid> --format=llm
drupalorg issue:get-access <nid> --format=llm
drupalorg issue:setup-remote <nid>
drupalorg issue:checkout <nid> <branch>

# After pushing the fix branch:
drupalorg mr:list <nid> --format=llm --no-cache
drupalorg mr:status <nid> <mr-iid> --format=llm --no-cache
drupalorg mr:logs <nid> <mr-iid>

Remaining tasks

  • Create an issue fork.
  • Push a merge request with the fixture/PHPStan/CSpell fixes.
  • Verify the MR pipeline using drupalorg mr:status and drupalorg mr:logs.
  • Set the issue to needs review once the pipeline is green.

User interface changes

None.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

e0ipso created an issue. See original summary.

  • e0ipso committed 7b426940 on 1.x
    fix: repair GitLab pipeline failures
    
    Closes #3604051
    
e0ipso’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.