Skip to content

[build-script] use explicit build/test list between build-script and build-script-impl #2780

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

Closed
wants to merge 1 commit into from

Conversation

karwa
Copy link
Contributor

@karwa karwa commented May 31, 2016

What's in this pull request?

Instead of having lots of different skip-[platform] and skip-test-[platform] flags for every stdlib SDK, use an explicit list of targets to build and test.

There are no outward-facing changes. The build and test list are calculated from the same - - ios, etc flags as they are today. This only affects how build-script tells build-script-impl which targets to build/test. It simplifies stdlib target calculation, and gives us the opportunity to override it with more granular options (e.g. just building one stdlib deployment target, not a whole SDK, or just building tests for one target).

Resolved bug number: (SR-)


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

(and appropriate test flags) with an explicit build and test list.

(and appropriate test flags) with an explicit build and test list.
@karwa karwa closed this May 31, 2016
@gribozavr
Copy link
Contributor

Thank you! I don't like the current system of "skip" flags. It makes it hard to understand what a set of flags will do.

This arrangement is a historical curiosity, from the time when we only started to port Swift to iOS, and we added a skip-build-ios flag or something like that. It was convenient when there were just two platforms, but not anymore.

@karwa
Copy link
Contributor Author

karwa commented May 31, 2016

Half of the code for this is in another commit. I'll fix it up when my current build finishes and reopen.

@gribozavr
Copy link
Contributor

Sure, when you're ready!

build_script_impl_args += ["--skip-test-watchos-simulator"]
skip_test_tgts += StdlibDeploymentTarget.AppleWatchSimulator.allArchs

# FIXME: Do the tests work for Android?
Copy link
Member

Choose a reason for hiding this comment

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

Not for now. #1714

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.

4 participants