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

Notify channel on sanity test result #5315

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

michaelkaye
Copy link
Contributor

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Github workflow has been enhanced with a notification to the correct matrix channel.

Configuration is via secrets for channel, matrix token, but the message body is templatable in the workflow file if required.

Motivation and context

Fixes #5314

Screenshots / GIFs

Screenshot from 2022-02-23 10-23-33

Tests

michaelk/gha_experiment branch has been running this code on push and the notification worked.

Tested devices

N/A

Checklist

@github-actions
Copy link

Unit Test Results

  84 files  ±0    84 suites  ±0   1m 3s ⏱️ +4s
157 tests ±0  157 ✔️ ±0  0 💤 ±0  0 ±0 
504 runs  ±0  504 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit bd8d71c. ± Comparison against base commit 924a4f8.

@github-actions
Copy link

Matrix SDK

Integration Tests Results:

  • [org.matrix.android.sdk.session]
    passed=
  • [org.matrix.android.sdk.account]
    passed=
  • [org.matrix.android.sdk.internal]
    passed=
  • [org.matrix.android.sdk.ordering]
    passed=
  • [org.matrix.android.sdk.PermalinkParserTest]
    passed=

Copy link
Contributor

@ouchadam ouchadam left a comment

Choose a reason for hiding this comment

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

💯

@@ -78,3 +78,17 @@ jobs:
path: |
emulator.log
failure_screenshots/


notify:
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if the matrix secret is empty? thinking of what will happen for forks~ (if they have actions enabled)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code handles empty string as a requirement not to send the request; the information will be debugged in the task but not sent anywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't tested this explicitly, though I have tested by setting the secrets to invalid values.

@michaelkaye michaelkaye merged commit 5bfb8fe into develop Feb 23, 2022
@michaelkaye michaelkaye deleted the michaelk/notify_channel_on_sanity_test branch February 23, 2022 16:36
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.

Notify android channel when nightly build completes
2 participants