Skip to content

[Incremental] Next step towards cross-module incremental dependencies #468

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

Merged
merged 12 commits into from
Feb 5, 2021

Conversation

davidungar
Copy link
Contributor

Lots of restructuring; passes the lit tests.

David Ungar and others added 12 commits February 4, 2021 13:01
@davidungar davidungar requested a review from CodaFi February 4, 2021 22:59
@davidungar
Copy link
Contributor Author

@swift-ci please test

try Bitcode.read(stream: data, using: &visitor)
}
}
catch ReadError.swiftModuleHasNoDependencies {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we catch every kind of error here? Like, if more than the signature were to be corrupted and the visitor were to detect it, we should just say the graph is busted and start over.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. This covers the special case of getting an external-dep with a fingerprint, but in the meantime the vendor has been compiled without the flag. But maybe I don't follow; we can discuss offline.

return integrate(sourceGraph: sourceGraph)
}

public func integrate(sourceGraph: SourceFileDependencyGraph) -> Set<Node>? {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fantastic cleanup

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question, but it's not enough to hold back integrating this PR.

@davidungar
Copy link
Contributor Author

@swift-ci please test macos platform

@CodaFi
Copy link
Contributor

CodaFi commented Feb 5, 2021

@CodaFi CodaFi merged commit 2b01735 into swiftlang:main Feb 5, 2021
@davidungar davidungar deleted the merge-kinds-rb branch February 16, 2021 18:10
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.

2 participants