Skip to content

[Incremental] Tests and bug fixes for per-type fingerprints. #29525

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 2 commits into from
Jan 29, 2020

Conversation

davidungar
Copy link
Contributor

  1. Always add arc from Decl interface to whole file, because the fingerprint only captures changes to the body.
  2. Ensure that intrafile dependencies are captures in the fine-grained dependency graph whenever type-body fingerprints are enabled. Eases testing.
  3. Test with- and without type-body fingerprints.

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar davidungar requested a review from CodaFi January 29, 2020 04:08
# <kind> <aspect> <context> <name> <isProvides>
# Also sort for consistency, since the node order can vary.

awk '/kind:/ {k = $2; f = "<no fingerprint>"}; /aspect:/ {a = $2}; /context:/ {c = $2}; /name/ {n = $2}; /sequenceNumber/ {s = $2}; /fingerprint:/ {f = $2 }; /isProvides:/ {isP = $2; print k, a, c, n, isP, f}' | sort
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll have to gin up a more portable solution, but this'll do for now.

@CodaFi
Copy link
Contributor

CodaFi commented Jan 29, 2020

Just to make sure this really doesn't ruffle anything over in Microsoftland

@swift-ci test windows

@davidungar davidungar merged commit 5b8ba88 into swiftlang:master Jan 29, 2020
@davidungar
Copy link
Contributor Author

@CodaFi Good idea to test on Windows; tx for the reminder.

@davidungar davidungar deleted the type-prints-off-by-default2 branch January 31, 2020 18:11
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