Mobile Testops Report WEEKLY - Staging #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| 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/slack-github-action@v3.0.1 | |
| with: | |
| payload-file-path: "./github-new-issues-slack.json" | |
| payload-templated: true | |
| webhook: ${{ secrets.SLACK_WEBHOOK_URL_TEST_ALERTS_SANDBOX }} | |
| webhook-type: incoming-webhook |