Skip to content

feat(project): Resolve effective UI5 framework version on ProjectGraph - #1697

Open
d3xter666 wants to merge 3 commits into
mainfrom
refactor-effective-framework-version-resolution
Open

d3xter666 wants to merge 3 commits into
mainfrom
refactor-effective-framework-version-resolution

Conversation

@d3xter666

@d3xter666 d3xter666 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

JIRA: CPOUI5FOUNDATION-839
Relates to: #1681

Introduces ProjectGraph#setResolvedFrameworkVersion / getResolvedFrameworkVersion to capture the version that actually governs the current build or serve run, as opposed to the value literally written in ui5.yaml.

Three changes ship together:

1. Resolution logic
Workspace-first: when a workspace is active the configured version and any --framework-version override are ignored — the workspace controls what is linked. OpenUI5 reports the sap.ui.core version from the joined graph; SAPUI5 always stores "" because no reliable distribution version is available from the workspace graph.

2. Build-cache tracking
getResolvedFrameworkVersion is added to TRACKED_TASK_UTIL_METHODS. When a task reads this value the call is recorded alongside the cached output. On the next build the value is re-derived from the live graph; if it changed (--framework-version override or workspace toggle), the cache misses and the task re-runs. This is prerequisite infrastructure for a follow-up PR that wires the resolved version into generateVersionInfo and the versionInfo middleware (#1681).

@d3xter666
d3xter666 requested a review from a team November 5, 2026 09:08
@d3xter666
d3xter666 marked this pull request as draft November 5, 2026 09:08
d3xter666 added a commit that referenced this pull request Nov 5, 2026
Note: this adjustment relies heavily on the implementation in #1697. Without it, the build will be failing since middlewareUtil.getResolvedFrameworkVersion() does not exists yet
@d3xter666
d3xter666 force-pushed the refactor-effective-framework-version-resolution branch from f12aeb1 to 9d59177 Compare November 5, 2026 13:36
Add getResolvedFrameworkVersion to TRACKED_TASK_UTIL_METHODS and a
matching resolvedFrameworkVersion branch in resolveInputValue so that
a --framework-version change or workspace toggle between builds causes
a cache miss and forces the task to re-run.
@d3xter666
d3xter666 force-pushed the refactor-effective-framework-version-resolution branch from 9d59177 to 4f0bd4a Compare November 5, 2026 13:44
@d3xter666
d3xter666 marked this pull request as ready for review November 5, 2026 13:56

This branch has not been deployed

No deployments
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