test(project): Integration tests for custom-task determineBuildSignature - #1597
Merged
Merged
Conversation
…termineBuildSignature Verify that a custom task can implement and use the determineBuildSignature callback end-to-end via graph.build(): a stable callback return keeps the project cache intact, while a changed return invalidates it and forces a rebuild. The callback derives its signature from an on-disk control file so the test can flip the signature independently of any source-resource change.
…re staleness Capture the status quo: a running BuildServer computes each project's build signature exactly once (BuildContext memoizes the ProjectBuildContext for the server's lifetime), so a custom task's determineBuildSignature callback is never re-evaluated. Changing an input the callback reads (here an on-disk control file outside the watched source paths) while the server runs is therefore silently ignored, and the server keeps serving a stale build result. The new test asserts the desired behavior — the change is reflected without a server restart — and is marked test.failing since the current behavior does not do this. The build-signature custom task now also appends the control value to test.js so the served output observably depends on the callback input.
d3xter666
approved these changes
Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds ProjectBuilder coverage for the callback invalidating the cache on change, plus a test.failing BuildServer test documenting that signatures go stale over the server's lifetime.
JIRA: CPOUI5FOUNDATION-1360