Skip to content

Conversation

@mokagio
Copy link
Contributor

@mokagio mokagio commented Sep 17, 2021

The changes from the pair wordpress-mobile/WordPressKit-iOS#445 #17154 added a new property to a model deserialized from an already existing property in the JSON response (at least that's what I make of it by looking at the PRs and Git history see extra details here.

Because the property was already there in the live responses, everything worked well when tested manually, but the UI tests failed because the stubbed response they used did not include that key in the JSON. The tests crashed when trying to assign the nil value stored in the organizationId property serialized from the stub response that didn't include the key.

Related PRs

  • WordPressMocks PR needs to be merged and a new beta shipped before we can update this one to a tagged version and merge. Status Blocked

How did this happen?

#17154 was merged even though Buildkite reported the UI tests failing. This is understandable because we (the Owl team) haven't fully migrated to Buildkite for WordPress iOS yet and the setup has been having a few occasional issues.

Moreover, the UI tests did not run in CircleCI. That's understandable, too, because they are optional and need to be unlocked manually. There's no clear rule of thumb to know when to run them and when it's safe to skip them and not have to wait for them.

The good news is that, once we'll complete the migration to Buildkite, the CI performance will be such that UI tests will run on every commit, so this kind of lag in discovering out-of-date tests should disappear.

@mokagio mokagio added the Testing Unit and UI Tests and Tooling label Sep 17, 2021
@mokagio mokagio added this to the 18.3 milestone Sep 17, 2021
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Sep 17, 2021

You can trigger an installable build for these changes by visiting CircleCI here.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Sep 17, 2021

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@mokagio mokagio changed the title Point WordPressMocks to WIP branch Update WordPress Mocks to fix recent UI tests failures Sep 17, 2021
@mokagio mokagio marked this pull request as ready for review September 17, 2021 04:20
@mokagio mokagio requested review from a team, ScoutHarris and diegoreymendez September 17, 2021 04:23
Copy link
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

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

Once the pod is updated feel free to merge!

The reason I didn't notice the UI tests breaking is because I had enabled automerge on these PRs.

@AliSoftware AliSoftware added the [Status] Blocked Waiting for a different task to be able to proceed label Sep 17, 2021
@mokagio mokagio removed the [Status] Blocked Waiting for a different task to be able to proceed label Sep 20, 2021
Now that wordpress-mobile/WordPressMocks#35 has
been merged and a new version shipped, we can point away from the WIP
branch and back to a stable version.
@mokagio mokagio force-pushed the fix-ui-tests-crashing-on-missing-organization_id branch from e8677de to 180122f Compare September 20, 2021 02:57
@mokagio mokagio merged commit c1c6873 into develop Sep 20, 2021
@mokagio mokagio deleted the fix-ui-tests-crashing-on-missing-organization_id branch September 20, 2021 04:21
@mokagio
Copy link
Contributor Author

mokagio commented Sep 20, 2021

I updated the pod reference to the latest stable and run the UI tests on Buildkite and CircleCI: both passed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Testing Unit and UI Tests and Tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants