Skip to content

Mobile Testops Report WEEKLY - Staging #56

Mobile Testops Report WEEKLY - Staging

Mobile Testops Report WEEKLY - Staging #56

name: Mobile Testops Report WEEKLY - Staging
# Weekly on Mondays @4am UTC
on:
schedule:
- cron: "0 4 * * 1"
workflow_dispatch:
inputs:
branchName:
description: 'Default branch'
required: true
default: 'master'
env:
CLOUD_SQL_DATABASE_NAME: staging
CLOUD_SQL_DATABASE_USERNAME: ${{ secrets.CLOUD_SQL_DATABASE_USERNAME }}
CLOUD_SQL_DATABASE_PASSWORD: ${{ secrets.CLOUD_SQL_DATABASE_PASSWORD }}
CLOUD_SQL_DATABASE_PORT: ${{ secrets.CLOUD_SQL_DATABASE_PORT }}
TESTRAIL_HOST: ${{ secrets.TESTRAIL_HOST }}
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
ATLASSIAN_API_TOKEN: ${{ secrets.ATLASSIAN_API_TOKEN }}
ATLASSIAN_HOST: ${{ secrets.ATLASSIAN_HOST }}
ATLASSIAN_USERNAME: ${{ secrets.ATLASSIAN_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUGZILLA_API_KEY: ${{ secrets.BUGZILLA_API_KEY }}
BITRISE_HOST: ${{ secrets.BITRISE_HOST }}
BITRISE_APP_SLUG: ${{ secrets.BITRISE_APP_SLUG }}
BITRISE_TOKEN: ${{ secrets.BITRISE_TOKEN }}
SENTRY_HOST: ${{ secrets.SENTRY_HOST }}
SENTRY_API_TOKEN: ${{ secrets.SENTRY_API_TOKEN_CSO }}
SENTRY_ORGANIZATION_SLUG: ${{ secrets.SENTRY_ORGANIZATION_SLUG }}
SENTRY_IOS_PROJECT_ID: ${{ secrets.SENTRY_IOS_PROJECT_ID }}
SENTRY_FENIX_PROJECT_ID: ${{ secrets.SENTRY_FENIX_PROJECT_ID }}
SENTRY_FENIX_BETA_PROJECT_ID: ${{ secrets.SENTRY_FENIX_BETA_PROJECT_ID }}
jobs:
fetch-github-issues:
name: New Github issues
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: "pip"
cache-dependency-path: requirements.txt
- run: pip install -r requirements.txt
- uses: mattes/gce-cloudsql-proxy-action@v1
with:
creds: ${{ secrets.GCLOUD_AUTH }}
instance: ${{ secrets.CLOUD_SQL_CONNECTION_NAME }}
port: ${{ secrets.CLOUD_SQL_DATABASE_PORT }}
proxy_version: "1.37.11"
- name: Fetch Github Issues
run: |
python __main__.py --report-type github-issues --project firefox-ios --num-days 8
- name: Construct Slack report
run: |
python -m api.github.utils github_new_bugs_firefox-ios_*.csv > github-new-issues-slack.json
- name: Send notification to Slack
uses: slackapi/[email protected]
with:
payload-file-path: "./github-new-issues-slack.json"
payload-templated: true
webhook: ${{ secrets.SLACK_WEBHOOK_URL_TEST_ALERTS_SANDBOX }}
webhook-type: incoming-webhook
sentry-unhandled-issues:
name: Sentry unhandled issues notifications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: "pip"
cache-dependency-path: requirements.txt
- run: pip install -r requirements.txt
- name: Sentry unhandled issues query (iOS)
run: python __main__.py --report-type sentry-unhandled-issues --project firefox-ios
continue-on-error: true
- name: Construct JSON for Slack - unhandled issues (iOS)
run: |
python -m api.sentry.utils \
--file ./sentry_unhandled_issues_firefox-ios.csv \
--project firefox-ios \
--mode unhandled-issues
continue-on-error: true
- name: Send unhandled issues notification to Slack (iOS)
uses: slackapi/[email protected]
with:
payload-file-path: "./sentry-slack-unhandled-firefox-ios.json"
payload-templated: true
webhook: ${{ secrets.SLACK_WEBHOOK_URL_TEST_ALERTS_SANDBOX }}
webhook-type: incoming-webhook
continue-on-error: true
- name: Sentry unhandled issues query (Android)
run: python __main__.py --report-type sentry-unhandled-issues --project fenix
continue-on-error: true
- name: Construct JSON for Slack - unhandled issues (Android)
run: |
python -m api.sentry.utils \
--file ./sentry_unhandled_issues_fenix.csv \
--project fenix \
--mode unhandled-issues
continue-on-error: true
- name: Send unhandled issues notification to Slack (Android)
uses: slackapi/[email protected]
with:
payload-file-path: "./sentry-slack-unhandled-fenix.json"
payload-templated: true
webhook: ${{ secrets.SLACK_WEBHOOK_URL_TEST_ALERTS_SANDBOX }}
webhook-type: incoming-webhook
continue-on-error: true
- name: Sentry unhandled issues query (Android Beta)
run: python __main__.py --report-type sentry-unhandled-issues --project fenix-beta
continue-on-error: true
- name: Construct JSON for Slack - unhandled issues (Android Beta)
run: |
python -m api.sentry.utils \
--file ./sentry_unhandled_issues_fenix-beta.csv \
--project fenix-beta \
--mode unhandled-issues
continue-on-error: true
- name: Send unhandled issues notification to Slack (Android Beta)
uses: slackapi/[email protected]
with:
payload-file-path: "./sentry-slack-unhandled-fenix-beta.json"
payload-templated: true
webhook: ${{ secrets.SLACK_WEBHOOK_URL_TEST_ALERTS_SANDBOX }}
webhook-type: incoming-webhook
continue-on-error: true