CI: doctrine-orm/odm PHPUnit red on PHP 8.5 lowest (NameConverterAwareTrait not found)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
src/Doctrine/Orm で composer update --prefer-lowest --prefer-source を実行して始め、bridge の依存関係の制約を確認します。#7237 の dev-alias パターンと比較し、対応する Doctrine ODM bridge も確認してください。NameConverterAwareTrait エラーなしで PHP 8.5 の最低バージョンを使う PHPUnit ジョブ 2 件がパスすれば完了です。issue にはフォローアップ PR がすでに準備できているとあるため、作業を重複させる前に確認してください。
索引モデルが issue の本文から書いたものです。
説明
Problem
The PHPUnit api-platform/doctrine-orm (PHP 8.5 lowest) and PHPUnit api-platform/doctrine-odm (PHP 8.5 lowest) jobs are red on main. Because they run on every PR, any change touching those bridges (or their dependencies) inherits a red pipeline that has nothing to do with the change itself.
Root cause
Both bridges require "api-platform/doctrine-common": "^5.0@alpha". Under --prefer-lowest, Composer resolves api-platform/doctrine-common to v5.0.0-alpha.1 (the only published 5.0 alphas are alpha.1 and alpha.2). But the current bridge code uses ApiPlatform\Doctrine\Common\Filter\NameConverterAwareTrait, which was added to doctrine-common in #8351 and is not part of any tagged release yet. So the lowest install pulls a doctrine-common that predates the trait.
Reproduction (PHP 8.5, matching the CI lowest job)
cd src/Doctrine/Orm
composer update --prefer-lowest --prefer-source
vendor/bin/phpunit --ignore-baseline
Error: Trait "ApiPlatform\Doctrine\Common\Filter\NameConverterAwareTrait" not found
src/Doctrine/Orm/Filter/ExistsFilter.php:130
Tests: 293, Errors: 43
Suggested fix
Point the bridges' api-platform/doctrine-common lowest constraint at the monorepo dev branch (which contains the trait), the same way #7237 dev-aliased inter-component constraints. A follow-up PR is ready.
The durable fix is to tag a doctrine-common alpha that ships NameConverterAwareTrait, then raise the floor to exclude the older alphas.
- 主要言語
- PHP
- スター
- 2.6k
- フォーク
- 987
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
api-platform/core のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
api-platform/core#8665 ·
メンテナーはふだん 1 日以内に返信
-
Doctrine\Orm\OrderExtension fails on SortDirection対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
api-platform/core#8660 ·
メンテナーはふだん 1 日以内に返信
-
DeserializeProvider calls PartialDenormalizationException::getErrors(), deprecated in Symfony 8.1対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
api-platform/core#8650 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
api-platform/core#8649 ·
メンテナーはふだん 1 日以内に返信
-
`OrderExtension` and `OrderFilter` pass string sort directions, deprecated since `doctrine/orm` 3.7オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
api-platform/core#8648 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
api-platform/core の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
WordPress/hosting-handbook#506 ·
メンテナーはふだん 2 日以内に返信
-
Installing a plugin with composer_packages installs dev dependencies and breaks the autoloader (Error 500)対応中かも @Boy132 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
nginx: static-file locations drop the security headers, and the dotfile deny is matched after themオープンbug Low Security
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
backdrop-contrib/commerce#60 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100