ArtifactNormalizer: reaching max_files drops media still within max_media_files
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by locating ArtifactNormalizer and the loop that applies max_files and max_media_files; trace how sourceFilesBeforeGeneratedExpansions orders files before the cutoff. Use the SSI direct-artifact import scenario in the issue to check the behavior. Done means media files are admitted up to max_media_files after the non-media limit is reached, and every omitted file is still reported.
索引モデルが issue の本文から書いたものです。
説明
Problem
ArtifactNormalizer enforces two separate limits: max_files for non-media files and max_media_files for media. When a non-media file reaches max_files, the loop breaks. Every remaining raw file is omitted, including media files that are still within the max_media_files budget.
Inline style and script expansion (withInlineStyleFiles, withInlineScriptFiles, contentAddressInlineFiles) adds generated non-media files. sourceFilesBeforeGeneratedExpansions moves those generated files after the source files, but media files later in the list still fall behind the cutoff.
Evidence
Site: lloydlofthouse.com (Blogger). SSI direct-artifact import, which carries compiler_limits.max_files = 67; the artifact has 118 files.
- The compile records
file_limit_exceededfor 20 files, includingwebsite/media/Promotion-Cover-*.jpgandwebsite/media/mqdefault.jpg. - Those images are referenced only by related-post cards. They resolve through
MissingMediaRecoveryto the placeholder tokenasset-667e3e6f8f8bfd37. They never reach the theme or uploads in the Studio import. - With #6315 (related-card featured images), 8 of 12 card posts get that placeholder token.
resolveFeaturedImageTargetsthen drops their featured images, so those posts import without thumbnails.
Expected
Reaching the non-media max_files limit only stops non-media files. Media files keep being admitted up to max_media_files, and each dropped file is still reported.
AI disclosure: Claude (Anthropic) via Pi/Roadie in Franklin's workspace traced this with instrumented compiles of the SSI artifact and wrote this issue. Chris directed the work.
- 主要言語
- PHP
- スター
- 28
- フォーク
- 5
- 平均マージ
- 2時間 59分
- マージ済み PR(30日)
- 942
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Automattic/blocks-engine のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
Automattic/blocks-engine#6318 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/blocks-engine#4943 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/blocks-engine#4942 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Automattic/blocks-engine#4921 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Automattic/blocks-engine#775 ·
メンテナーはふだん 1 日以内に返信
Automattic/blocks-engine の issue をすべて見る
似ている issue
-
kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[remove-resource] Delete Open Course Hub, Open Multicourse Hub, and Learn2 with GitSync skeletonsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
omeka/plugin-ExhibitBuilder#160 ·