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

Xcuitestrunner over tunnel (iOS 17) #301

Merged
merged 25 commits into from
Dec 14, 2023
Merged

Conversation

diegoperini
Copy link
Collaborator

No description provided.

@diegoperini diegoperini requested a review from dmissmann November 8, 2023 15:25
@diegoperini diegoperini changed the title Xcuitestrunner over tunnel (iOS 17) Draft : Xcuitestrunner over tunnel (iOS 17) Nov 8, 2023
@diegoperini diegoperini changed the base branch from main to ios-17 November 8, 2023 15:25
@IsanHu
Copy link

IsanHu commented Nov 13, 2023

Hello @diegoperini does this works now?

@rohan-a99
Copy link

Any updates on this , i see when you try to start the webdriveragent it hangs, you have comment that piece of code there, that still to figure out.

Copy link
Collaborator

@dmissmann dmissmann left a comment

Choose a reason for hiding this comment

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

Please revisit the log.Info calls as well, most of them should be debug, or could be removed completely

ios/testmanagerd/xcuitestrunner.go Outdated Show resolved Hide resolved
@@ -123,6 +123,33 @@ func NewConnection(device ios.DeviceEntry, serviceName string) (*Connection, err
return dtxConnection, nil
}

// NewTunnelConnection connects and starts reading from a Dtx based service on the device, using tunnel interface instead of usbmuxd
func NewTunnelConnection(device ios.DeviceEntry, serviceName string) (*Connection, error) {
conn, err := ios.ConnectToServiceTunnelIface(device, serviceName)
Copy link
Collaborator

Choose a reason for hiding this comment

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

everything except this line is a duplicate of NewLockdownConnection. This can be handled in a better way to have less duplication.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

DTX connection part is now under its own function.

ios/testmanagerd/xcuitestrunner.go Outdated Show resolved Hide resolved
ios/xpc/connection.go Outdated Show resolved Hide resolved
ios/dtx_codec/connection.go Outdated Show resolved Hide resolved
ios/testmanagerd/xcuitestrunner.go Outdated Show resolved Hide resolved
@diegoperini diegoperini changed the title Draft : Xcuitestrunner over tunnel (iOS 17) Xcuitestrunner over tunnel (iOS 17) Dec 13, 2023
@diegoperini
Copy link
Collaborator Author

@dmissmann I reviewed all info logs to see which ones can be debug logs instead. I also renamed stuff you point out in the review comments. Could you please take a second look to current state of the PR?

@dmissmann dmissmann self-requested a review December 14, 2023 11:05
@dmissmann dmissmann merged commit 3a1ee2f into ios-17 Dec 14, 2023
2 checks passed
@dmissmann dmissmann deleted the dp-xcuitestrunner-ios17 branch December 14, 2023 11: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