-
Notifications
You must be signed in to change notification settings - Fork 204
[NFC, Incremental] Test effect of a minor version number change on the priors #729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please test |
@@ -218,9 +218,14 @@ extension IncrementalCompilationState.IncrementalDependencyAndInputSetup { | |||
do { | |||
graphIfPresent = try ModuleDependencyGraph.read( from: dependencyGraphPath, info: self) | |||
} | |||
catch ModuleDependencyGraph.ReadError.mismatchedSerializedGraphVersion { | |||
diagnosticEngine.emit( | |||
warning: "Will not do cross-module incremental builds, wrong version of priors at '\(dependencyGraphPath)'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be helpful to print out the two versions, to give developers a better idea of what "wrong" means here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! Will, do.
on: localFileSystem, | ||
compilerVersion: compilerVersion, | ||
mockSerializedGraphVersion: incrementedVersion) | ||
// Reset mod time to priors modTime on newly-written priors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear what this comment is referring to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that was a marker for a future PR, but best to remove it for now.
@swift-ci please test |
Test effect of a minor version number change on the priors, and also add the needed affordances.
Also increment the minor version to reflect the omission of the no-longer-needed serialized inputDependencySourceMap.
Required before landing #728