Skip to content

fix(server): Generate library manifest from project source reader - #1629

Merged
RandomByte merged 2 commits into
mainfrom
fix/generateManifest-middleware
Oct 1, 2026
Merged

RandomByte merged 2 commits into
mainfrom
fix/generateManifest-middleware

Conversation

@RandomByte

Copy link
Copy Markdown
Member

generateLibraryManifest matched the library resources feeding the manifest via project.getReader(). That reader reflects build output and workspace modifications, which conflicts with the versionInfo-middleware that relies on the source reader and can't see any already generated manifest.json files.

The versionInfo-middleware tasks the generateLibraryManifest to produce the missing manifest.json files, but the internal
createManifestProcessor (which looks at the latest internal build result) refuses to produce the files since they already exist. This leads to missing information in the final sap-ui-version.json.

Fix: Use project.getSourceReader(), which always reads the project's original sources regardless of any build result.

generateLibraryManifest matched the library resources feeding the
manifest via project.getReader(). That reader reflects build output and
workspace modifications, which conflicts with the versionInfo-middleware
that relies on the _source_ reader and can't see any already generated
manifest.json files.

The versionInfo-middleware tasks the generateLibraryManifest to produce
the missing manifest.json files, but the internal
createManifestProcessor (which looks at the latest internal build
result) refuses to produce the files since they already exist. This
leads to missing information in the final sap-ui-version.json.

Fix:
Use project.getSourceReader(), which always reads the project's original
sources regardless of any build result.
Fixes ocasional timeouts when running many tests in parallel
@RandomByte
RandomByte requested a review from a team October 1, 2026 11:56
@RandomByte
RandomByte merged commit 1c46d36 into main Oct 1, 2026
77 checks passed
@RandomByte
RandomByte deleted the fix/generateManifest-middleware branch October 1, 2026 12:26
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