Skip to content
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

WIP: THRIFT-4547 Add Swift cross tests #2048

Conversation

janosvitok
Copy link
Contributor

@janosvitok janosvitok commented Mar 6, 2020

This is Work-in-progress implementation of Swift cross language test client and server.

Only few tests are implemented so far both in client and in server. The goal now was to write at least some test so that I can see if it at least partially works.

Requires #2038, #2047 to work.

Server does not work yet (in linux command line app; they do work in iOS app), notifications are not delivered from NotificationCenter and I don't know how to setup it properly.

This obviously introduces a lot of failures to the cross tests.

Any comments/improvemets are welcome!

  • Did you create an Apache Jira ticket? (not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, add [skip ci] at the end of your pull request to free up build resources.

@janosvitok janosvitok changed the title Thrift 4547 swift cross tests Thrift 4547 Add Swift cross tests Mar 6, 2020
Linux version 4.2.0 does not have FileHandle.acceptConnectionInBackgroundAndNotify()
implemented. We need at least 5.1 for TSocketServer to run in docker.

In the meantime, URLRequest was moved to FoundationNetworking.
To keep compatibility with previous versions, conditional import is
used.
Requires these PRs:
- apache#2036
- apache#2038
- apache#2047

Not finished, only few tests in client and server are implemented.
@janosvitok janosvitok changed the title Thrift 4547 Add Swift cross tests Thrift-4547 Add Swift cross tests Mar 6, 2020
@janosvitok janosvitok changed the title Thrift-4547 Add Swift cross tests THRIFT-4547 Add Swift cross tests Mar 6, 2020
@janosvitok janosvitok force-pushed the THRIFT-4547-swift-cross-tests branch from 4a1ffc5 to a659108 Compare March 6, 2020 20:18
@janosvitok janosvitok mentioned this pull request Mar 7, 2020
5 tasks
Copy link
Member

@Jens-G Jens-G left a comment

Choose a reason for hiding this comment

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

.

/// - secondsToSleep:
/// - Throws:
func testOneway(secondsToSleep: Int32) throws {
}
Copy link
Member

Choose a reason for hiding this comment

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

implementation missing

/// - arg:
/// - Throws: Xception
func testException(arg: String) throws {
}
Copy link
Member

Choose a reason for hiding this comment

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

implementattion missing

/// - Returns: Xtruct
/// - Throws: Xception, Xception2
func testMultiException(arg0: String, arg1: String) throws -> Xtruct {
return Xtruct(string_thing: arg1, byte_thing: 0, i32_thing: 0, i64_thing: 0)
Copy link
Member

Choose a reason for hiding this comment

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

impl not according spec

@janosvitok
Copy link
Contributor Author

janosvitok commented Mar 7, 2020

Please cherty-pick only the first commit, the rest is not finished yet. See #2050

@Jens-G
Copy link
Member

Jens-G commented Mar 7, 2020

Please cherty-pick only the first commit, the rest is not finished yet. See #2050

I noticed. That's why I deleted my comment :-)

@janosvitok janosvitok changed the title THRIFT-4547 Add Swift cross tests WIP: THRIFT-4547 Add Swift cross tests Mar 7, 2020
@janosvitok janosvitok mentioned this pull request Apr 20, 2020
5 tasks
@stale
Copy link

stale bot commented May 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 7, 2020
@stale
Copy link

stale bot commented May 15, 2020

This issue has been automatically closed due to inactivity. Thank you for your contributions.

@stale stale bot closed this May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants