Skip to content

Verify module interfaces generated from emit-module jobs #615

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 3 commits into from
Apr 26, 2021

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Apr 22, 2021

Verify interfaces generated by single compile jobs and emit-module jobs. The verify job was previously only added after merge-module jobs which is more prone to generate broken swift interfaces.

@xymus xymus requested review from beccadax and artemcm April 22, 2021 00:47
@xymus
Copy link
Contributor Author

xymus commented Apr 22, 2021

@swift-ci test

The Verify job was previously only added after merge-module jobs.
@xymus xymus force-pushed the emit-module-verify branch from b510621 to 331d2fe Compare April 23, 2021 00:03
@xymus
Copy link
Contributor Author

xymus commented Apr 23, 2021

@swift-ci test

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

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

A couple of nits, but overall looks good to me!

@@ -253,9 +257,9 @@ extension Driver {
addJob: (Job) -> Void,
addJobOutputs: ([TypedVirtualPath]) -> Void,
emitModuleTrace: Bool
) throws {
) throws -> Job? {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just because the name states the plural Jobs, and we may be adding multiple (with backend jobs), it's worth a comment to explain exactly which job this function is going to return.

addJobOutputs: addJobOutputs,
emitModuleTrace: loadedModuleTracePath != nil)
emitModuleTrace: loadedModuleTracePath != nil) {
try addVerifyJobs(mergeJob: compileJob, addJob: addJobAfterCompiles)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: it may be time to re-name this argument name from mergeJob to something that better reflects that this can be any interface-producing job.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@xymus
Copy link
Contributor Author

xymus commented Apr 26, 2021

@swift-ci please test

@artemcm
Copy link
Contributor

artemcm commented Apr 26, 2021

@swift-ci please test Linux platform

@xymus xymus merged commit aac7f4d into swiftlang:main Apr 26, 2021
@xymus xymus deleted the emit-module-verify branch May 11, 2021 19:32
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.

3 participants