Skip to content

[Incremental] Dependency fixes in preparation for fine-grained dependencies #29126

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 4 commits into from
Jan 13, 2020

Conversation

davidungar
Copy link
Contributor

@davidungar davidungar commented Jan 10, 2020

Revisiting 29009, which got reverted for a Windows bug

  • Only emit dot files for fine-grained dependencies when -emit-fine-grained-dependency-source-file-dot-files is specified
  • Better comments, esp. for fine-grained dependencies
  • Restructuring of fine-grained dependencies to support unit testing
  • Added unit test for fine-grained dependencies
  • Bug fixes for fine-grained dependencies
  • Batch sorting refactoring.
  • Better fine-grained dependency printing
  • Added -disable-fine-grained-dependencies to frontend and driver
  • Cleanups to driver to better support fine-grained-dependencies

29009 has been through review with @CodaFi

@davidungar
Copy link
Contributor Author

@swift-ci please test windows

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar
Copy link
Contributor Author

@swift-ci please test asan

@davidungar
Copy link
Contributor Author

@swift-ci please test windows

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar
Copy link
Contributor Author

@swift-ci please test windows

1 similar comment
@davidungar
Copy link
Contributor Author

@swift-ci please test windows

David Ungar added 4 commits January 11, 2020 21:57
Restructure fine-grained-dependencies to enable unit testing

Get frontend to emit correct swiftdeps file (fine-grained when needed) and only emit dot file for -emit-fine-grained-dependency-sourcefile-dot-files

Use deterministic order for more information outputs.

Set EnableFineGrainedDependencies consistently in frontend.

Tolerate errors that result in null getExtendedNominal()

Fix memory issue by removing node everywhere.

Break up print routine

Be more verbose so it will compile on Linux.

Sort batchable jobs, too.
@davidungar davidungar force-pushed the fine-grained-fixes-rb2-w-dbg branch from dce7d6f to 631c2d4 Compare January 12, 2020 05:57
@davidungar
Copy link
Contributor Author

@swift-ci please test windows

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar
Copy link
Contributor Author

@swift-ci please test Windows

@davidungar
Copy link
Contributor Author

@swift-ci please test Windows

@davidungar davidungar merged commit d43dc84 into swiftlang:master Jan 13, 2020
@davidungar
Copy link
Contributor Author

May have also fixed rdar://58417173. Since that was an intermittent test failure on ci, it's hard to know for sure.

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.

1 participant