Skip to content

PrebuiltModuleGen: fail prebuilt module generation job when critical modules failed to build #1668

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
Aug 6, 2024

Conversation

nkcsgexi
Copy link
Contributor

Generating prebuilt modules for critical modules is important because missing them has a bigger impact on the overall build time. This change adds a report of generated modules when the job finishes and fails the prebuilt module job if some selected critical modules were missing.

rdar://132094476

…modules failed to build

Generating prebuilt modules for critical modules is important because missing them has a bigger
impact on the overall build time. This change adds a report of generated modules when the job
finishes and fails the prebuilt module job if some selected critical modules were missing.

rdar://132094476
@nkcsgexi
Copy link
Contributor Author

@swift-ci please test

@nkcsgexi nkcsgexi requested a review from artemcm July 19, 2024 21:26
stderrStream.flush()
}
let keyModules = ["Swift", "SwiftUI", "Foundation"]
return keyModules.allSatisfy { compiledModules.keys.contains($0) }
Copy link
Contributor

Choose a reason for hiding this comment

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

We could also emit to stderr specifically which one is missing, to save the trouble to the person examining this output.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add!

@nkcsgexi
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Aug 6, 2024

@swift-ci please test

@nkcsgexi nkcsgexi merged commit c647e91 into swiftlang:main Aug 6, 2024
3 checks passed
@nkcsgexi nkcsgexi deleted the check-critical-modules branch August 6, 2024 17:08
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