Skip to content

Conversation

@DmitriyShepelev
Copy link
Contributor

@DmitriyShepelev DmitriyShepelev commented Dec 19, 2022

Fixes #4386

Context

Any cache entries from projects excluded from isolation constraints should be excluded from the output results cache file.

Changes Made

Only the cache entry with the smallest configuration ID (that of the project to be built in isolation) should be serialized into the output results cache file. As described in #4386, this prevents the case where dependency projects pass down the same cache entry obtained through skipping/violating isolation constraints to a dependent project, creating duplicate input cache entries.

Testing

Added a UT.

Notes

Addressing this issue since it came up frequently when testing #8249.

@DmitriyShepelev DmitriyShepelev changed the title Exclude isolation-violating/skipped cache results from output results cache (#4386) Exclude isolation-violating cache results from output results cache (#4386) Dec 20, 2022
@DmitriyShepelev DmitriyShepelev force-pushed the exclude-isolation-violating-cache-results-from-orc branch from e243133 to 5813a27 Compare December 29, 2022 17:12
@DmitriyShepelev DmitriyShepelev force-pushed the exclude-isolation-violating-cache-results-from-orc branch from 5813a27 to abbd63c Compare January 6, 2023 23:18
@Forgind Forgind added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label Jan 9, 2023
@JaynieBai JaynieBai merged commit a3cd1f2 into dotnet:main Jan 10, 2023
JaynieBai pushed a commit that referenced this pull request Apr 19, 2023
Update documentation given the merge of #8249, #8257, and #8330.

---------

Co-authored-by: Rainer Sigwald <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Projects excluded from static graph constraint checks should not appear in the caches

4 participants