-
Notifications
You must be signed in to change notification settings - Fork 369
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
Server version does not match client version in pre-release #275
Comments
Thanks for reporting. The problem is that server gets updated infrequently compared to the calabash-ios gem. Updating the server is disruptive to the testing workflow because it often requires that the existing app is deleted from devices and simulators and/or an Xcode 'deep clean' to remove cached copies of the calabash.framework. We don't want to force a new version with no new features to stay in lock-step with the version of the gem - especially if the only change is a bump in the server number. The situation is not ideal. We could probably come up with a strategy using the version numbers, but there are other more pressing items. I have assigned to Karl and will mention it to him when we talk next, but I will probably close this issue. |
I spoke with Karl about this. It is starting to become an issue for me when answering forum questions. We talked about pushing a server update every time we do an update. If we do this, I think that we need to add some mechanism for calabash to check the server version and if it is not in sync, we should raise an error (or a warning). |
Request For CommentsThe The gem should ask the server for its version. It can do this at runtime by either:
Somewhere the framework version should be tested against the My idea is to check in the Before hook and when calabash-ios console is called. We only need to ask this question once per The framework version should adopt the following convention to make checking versions easy:
|
This is what I have so far.
|
On the ruby side, I added:
which outputs:
Still a working in progress, but I will have a pull request for review soon. |
fixed in 0.9.169 |
Though they appear to play nicely together, the 0.163.pre11 client version has a 0.163.pre10 server version (which was setup using calabash_ios download). In the past I have seen incompatibilities between drastically different client/server versions, but these do work together, so maybe this is just an artifact of using a pre-release version.
However, it seems like good practice to update versions that are supposed to work together in sync with one another (or to have the version of calabash-ios download the correct version, so that if I update to pre12, that gets a pre12 versioned calabash-ios executable which downloads a pre12 server).
The text was updated successfully, but these errors were encountered: