Skip to content

[build-script] Updated build-script-impl to be able to run the tests … #14821

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

Conversation

cwakamo
Copy link
Contributor

@cwakamo cwakamo commented Feb 25, 2018

…for the new PlaygroundLogger.

Switched to using build-for-testing/test-without-building for the PlaygroundLogger tests.
The new PlaygroundLogger tests are now a proper XCTest unit test bundle, so it needs to be done this way (instead of building the test runner and then just invoking that).

This depends on the changes in apple/swift-xcode-playground-support#23, which replaces the PlaygroundLogger framework with a brand-new implementation.

This is part of rdar://problem/37765445.

@cwakamo
Copy link
Contributor Author

cwakamo commented Feb 25, 2018

Please test with the following PRs:

apple/swift-xcode-playground-support#23

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - fbd9a90e32026c3d47ca8e31017d1efd20abf4e3

@cwakamo
Copy link
Contributor Author

cwakamo commented Feb 25, 2018

The failure matches what I've seen locally… I believe the issue is that the cast in PlaygroundLogger to CustomOpaqueLoggable succeeds but somehow pulls the wrong conformance for some objects. I need to investigate it a bit to see if I can narrow it down to something reproducible that a compiler or runtime engineer can look at.

…for the new PlaygroundLogger.

Switched to using `build-for-testing`/`test-without-building` for the PlaygroundLogger tests.
The new PlaygroundLogger tests are now a proper XCTest unit test bundle, so it needs to be done this way (instead of building the test runner and then just invoking that).

This is part of <rdar://problem/37765445>.
@cwakamo cwakamo force-pushed the update-build-script-for-new-PlaygroundLogger branch from fbd9a90 to 5d8b6ad Compare June 28, 2018 18:18
@cwakamo
Copy link
Contributor Author

cwakamo commented Jun 28, 2018

Please test with the following PRs:

apple/swift-xcode-playground-support#23

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5d8b6ad

@cwakamo
Copy link
Contributor Author

cwakamo commented Jul 3, 2018

Please test with the following PRs:

apple/swift-xcode-playground-support#23

@swift-ci Please test

@cwakamo
Copy link
Contributor Author

cwakamo commented Jul 3, 2018

Please build with the following PRs:

apple/swift-xcode-playground-support#23

@swift-ci Please Build Toolchain macOS Platform

@jrose-apple jrose-apple requested review from Rostepher and zisko July 3, 2018 22:01
@swift-ci
Copy link
Contributor

swift-ci commented Jul 3, 2018

macOS Toolchain
Download Toolchain
Git Sha - 5d8b6ad

Install command
tar -zxf swift-PR-14821-44-osx.tar.gz --directory ~/

@cwakamo
Copy link
Contributor Author

cwakamo commented Jul 4, 2018

The toolchain has all of the content I would expect, and all of the tests for the new PlaygroundLogger ran and passed, so I think this PR plus apple/swift-xcode-playground-support#23 are ready to land.

@Rostepher @zisko If one of you could review this minor build-script change, that would be great! Assuming this looks good I also plan on making this change on swift-4.2-branch so I can likewise pull the new PlaygroundLogger implementation into swift-xcode-playground-support's swift-4.2-branch. (And thanks @jrose-apple for adding them as reviewers -- I hadn't added anyone yet as I wanted to make sure everything worked as expected in CI.)

@jrose-apple
Copy link
Contributor

Ah, got it. I won't jump ahead next time!

Copy link
Contributor

@zisko zisko left a comment

Choose a reason for hiding this comment

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

LGTM, pretty isolated change!

@cwakamo cwakamo merged commit 518661c into swiftlang:master Jul 5, 2018
@cwakamo cwakamo deleted the update-build-script-for-new-PlaygroundLogger branch July 5, 2018 23:05
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