Skip to content

IndexSet's find family of methods should have optional returns #3769

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
Jul 29, 2016

Conversation

parkera
Copy link
Contributor

@parkera parkera commented Jul 26, 2016

What's in this pull request?

NSIndexSet returns NSNotFound for its find family of methods, but struct IndexSet should use an optional return value instead.

Resolved bug number

rdar://problem/27300571


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

A smoke test on macOS does the following:

  1. Builds the compiler incrementally.
  2. Builds the standard library only for macOS. Simulator standard libraries and
    device standard libraries are not built.
  3. lldb is not built.
  4. The test and validation-test targets are run only for macOS. The optimized
    version of these tests are not run.

A smoke test on Linux does the following:

  1. Builds the compiler incrementally.
  2. Builds the standard library incrementally.
  3. lldb is built incrementally.
  4. The swift test and validation-test targets are run. The optimized version of these
    tests are not run.
  5. lldb is tested.

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.

@parkera
Copy link
Contributor Author

parkera commented Jul 26, 2016

@swift-ci Please test and merge

@parkera
Copy link
Contributor Author

parkera commented Jul 26, 2016

ERROR: [GitHub Commit Status Setter] - {"message":"No commit found for SHA: ee7844736368987235a207727c495bad23e62d4a","documentation_url":"https://developer.github.com/v3/repos/statuses/"}, setting build result to FAILURE
Build step 'Set build status on GitHub commit [deprecated]' changed build result to FAILURE
[BFA] Scanning build for known causes...
.[BFA] No failure causes found
[BFA] Done. 1s
Finished: FAILURE

@parkera
Copy link
Contributor Author

parkera commented Jul 26, 2016

@swift-ci Please test and merge

1 similar comment
@parkera
Copy link
Contributor Author

parkera commented Jul 27, 2016

@swift-ci Please test and merge

@parkera
Copy link
Contributor Author

parkera commented Jul 27, 2016

Can't merge to master, but the rest of the build succeeded.

@parkera
Copy link
Contributor Author

parkera commented Jul 28, 2016

@swift-ci Please test and merge

@parkera parkera force-pushed the indexset_optional_find branch from 738c7f2 to 57e184a Compare July 28, 2016 17:37
@parkera
Copy link
Contributor Author

parkera commented Jul 28, 2016

@swift-ci please smoke test

@parkera
Copy link
Contributor Author

parkera commented Jul 28, 2016

[xUnit] [INFO] - [JUnit] - 1 test report file(s) were found with the pattern 'buildbot_linux/swift-linux-x86_64/swift-test-results/x86_64-unknown-linux-gnu/**.xml' relative to '/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test' for the testing framework 'JUnit'.
[xUnit] [ERROR] - Test reports were found but not all of them are new. Did all the tests run?
  * /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/buildbot_linux/swift-linux-x86_64/swift-test-results/x86_64-unknown-linux-gnu/lit-tests.xml is 15 hr old

@parkera
Copy link
Contributor Author

parkera commented Jul 28, 2016

@swift-ci please smoke test linux

1 similar comment
@parkera
Copy link
Contributor Author

parkera commented Jul 29, 2016

@swift-ci please smoke test linux

@parkera
Copy link
Contributor Author

parkera commented Jul 29, 2016

This passed on macOS and is not part of Linux (overlay code), so I'm merging this.

@parkera parkera merged commit d072016 into swiftlang:master Jul 29, 2016
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