Skip to content

test(project): Add failing tests for minify differential source-map staleness - #1598

Open
matz3 wants to merge 3 commits into
mainfrom
test/minify-differentialBuild-gaps
Open

matz3 wants to merge 3 commits into
mainfrom
test/minify-differentialBuild-gaps

Conversation

@matz3

@matz3 matz3 commented Sep 16, 2026

Copy link
Copy Markdown
Member

Adds two test.failing integration tests (build and serve) that pin down a differential-build gap: changing only a .js.map input source map invalidates minify's cache but does not re-minify its owning .js, so the produced -dbg.js.map goes stale.

Also restates the misleading minify FIXME — a fix needs the task to learn the .map -> .js relation while processing changed resources, not a local pattern tweak.

JIRA: CPOUI5FOUNDATION-1360

The previous FIXME suggested matching changed resources against the
provided pattern. That would not address the underlying problem: a
changed input source map (.js.map) does not re-minify its owning .js,
leaving the produced -dbg.js.map stale. A real fix needs the task to
learn the .map -> .js relation while processing
changedProjectResourcePaths, which is likely a larger rework rather
than a local change. Restate the FIXME accordingly.
@matz3
matz3 requested a review from a team September 16, 2026 10:55
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.

1 participant