Skip to content

[build-script] Presets module 5.0 #14834

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 1 commit into from
Feb 27, 2018

Conversation

Rostepher
Copy link
Contributor

Duplicate of #14422 for the 5.0 branch.

* Implemented a presets module which includes a more robust and easy to understand parser. Moved the swift-sdks migration code to a new migration module and added testing for both the presets and migration modules. Also converted build-script to use the new presets parser.

* Switched the expansion algorithm to resolve mixins in-place (little known feature) and also changed the parser to skip all non-preset sections. Tests are included for these two behaviors.

* Re-worked the presets error hierarchy to have more descriptive and information packed exception classes. Also re-worked the PresetParser to catch duplicate preset declarations and duplicate options in a single preset. There's some special shim-code to handle the disconnect between the Python 2 ConfigParser module and the Python 3 update which adds DuplicateOptionError.
@Rostepher Rostepher changed the base branch from master to swift-5.0-branch February 26, 2018 19:29
@Rostepher
Copy link
Contributor Author

@swift-ci please test

@Rostepher Rostepher merged commit 3b1de47 into swiftlang:swift-5.0-branch Feb 27, 2018
@Rostepher Rostepher deleted the presets-module-5.0 branch February 27, 2018 00:36
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