Skip to content

[Tooling] Report Firebase Test Failures as Buildkite Annotations#17581

Merged
AliSoftware merged 5 commits intotrunkfrom
tooling/firebase-test-failure-annotation
Nov 30, 2022
Merged

[Tooling] Report Firebase Test Failures as Buildkite Annotations#17581
AliSoftware merged 5 commits intotrunkfrom
tooling/firebase-test-failure-annotation

Conversation

@AliSoftware
Copy link
Contributor

@AliSoftware AliSoftware commented Nov 30, 2022

Warning: This PR is dependent on wordpress-mobile/release-toolkit#430 to be merged and for a new release-toolkit version to be released first.

Note: 🔁 UPDATE: I accidentally merged this PR too soon, so I had to revert it in #17583 then prepare the same changes again in #17584, which now supersedes this one.

What

This PR catches test failures happening when running Instrumented Tests in Firebase, and add a Buildkite annotation at the top of the failed build so it's way easier to jump to the details of the test failure on Firebase Console.

How it looks

This is how the annotation appears on Buildkite if an Instrumented Test failure occurs:

image

To Test

Observe that the intentional failure that I've forced to happen in 3b2d8b8 indeed generated a Buildkite annotation (see screenshot above) — while a successful Instrumented Tests run like the one at the HEAD of this branch doesn't.

TODO

  • Point to the new version/tag of release-toolkit once it has landed, then remove the "Not Ready for Merge" label

Comment on lines -10 to +12
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 6.0'
# gem 'fastlane-plugin-wpmreleasetoolkit', '~> 6.0'
#gem 'fastlane-plugin-wpmreleasetoolkit', path: '../../release-toolkit'
#gem 'fastlane-plugin-wpmreleasetoolkit', git: 'https://github.com/wordpress-mobile/release-toolkit', branch: ''
gem 'fastlane-plugin-wpmreleasetoolkit', git: 'https://github.com/wordpress-mobile/release-toolkit', branch: 'firebase-test-return-url'
Copy link
Contributor Author

@AliSoftware AliSoftware Nov 30, 2022

Choose a reason for hiding this comment

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

🚧 TODO: revert this and point to the new version of the release-toolkit once wordpress-mobile/release-toolkit#430 lands and we published a new release.

@wpmobilebot
Copy link
Contributor

Jetpack📲 You can test these changes on Jetpack by downloading jetpack-installable-build-pr17581-8437c09.apk
💡 Scan this QR code with your Android phone to download and install the APK directly on it.
AppJetpack
Build FlavorJalapeno
Build TypeDebug
Commit8437c09
Note: This installable build uses the JalapenoDebug build flavor, and does not support Google Login.

@wpmobilebot
Copy link
Contributor

WordPress📲 You can test these changes on WordPress by downloading wordpress-installable-build-pr17581-8437c09.apk
💡 Scan this QR code with your Android phone to download and install the APK directly on it.
AppWordPress
Build FlavorJalapeno
Build TypeDebug
Commit8437c09
Note: This installable build uses the JalapenoDebug build flavor, and does not support Google Login.

@ParaskP7 ParaskP7 self-assigned this Nov 30, 2022
Copy link
Contributor

@ParaskP7 ParaskP7 left a comment

Choose a reason for hiding this comment

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

This is awesome @AliSoftware , I really longed for this!

I reviewed and tested both, this and its associated release-toolkit PR, everything LGTM! 🥇 ❤️ 🚀

@AliSoftware AliSoftware merged commit abcd0f9 into trunk Nov 30, 2022
@AliSoftware AliSoftware deleted the tooling/firebase-test-failure-annotation branch November 30, 2022 15:52
@AliSoftware
Copy link
Contributor Author

Dammit, too many tabs open, and I confused two PRs and hit Merge on the wrong one 😓

Reverting the merge in #17583 before I can re-open a PR re-preparing everything again afterwards… #not-my-day

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants