Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .github/workflows/confluence-demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Confluence Update - DEMO

on:
pull_request:
push:
branches: [ rpapa-new-conf-space ]
workflow_dispatch:
inputs:
branchName:
description: 'rpapa-new-conf-space'
required: true
default: 'rpapa-new-conf-space'

jobs:
deploy:
name: Confluence Update (DEMO)
runs-on: ubuntu-latest

steps:
- name: Check out source repository
uses: actions/checkout@v5

- name: Setup python
uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Install requirements
run: pip install -r requirements.txt

- name: Set env vars
run: |
echo "CLOUD_SQL_DATABASE_USERNAME=${{ secrets.CLOUD_SQL_DATABASE_USERNAME }}" >> $GITHUB_ENV
echo "CLOUD_SQL_DATABASE_PASSWORD=${{ secrets.CLOUD_SQL_DATABASE_PASSWORD }}" >> $GITHUB_ENV
echo "CLOUD_SQL_DATABASE_NAME=staging" >> $GITHUB_ENV
echo "CLOUD_SQL_DATABASE_PORT=${{ secrets.CLOUD_SQL_DATABASE_PORT }}" >> $GITHUB_ENV
echo "TESTRAIL_HOST=${{ secrets.TESTRAIL_HOST }}" >> $GITHUB_ENV
echo "TESTRAIL_USERNAME=${{ secrets.TESTRAIL_USERNAME }}" >> $GITHUB_ENV
echo "TESTRAIL_PASSWORD=${{ secrets.TESTRAIL_PASSWORD }}" >> $GITHUB_ENV
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
echo "JIRA_HOST=${{ secrets.JIRA_HOST }}" >> $GITHUB_ENV
echo "JIRA_USER=${{ secrets.JIRA_USER }}" >> $GITHUB_ENV
echo "JIRA_PASSWORD=${{ secrets.JIRA_PASSWORD }}" >> $GITHUB_ENV

echo "BUGZILLA_API_KEY=${{ secrets.BUGZILLA_API_KEY }}" >> $GITHUB_ENV

echo "ATLASSIAN_API_TOKEN=${{ secrets.ATLASSIAN_API_TOKEN }}" >> $GITHUB_ENV
echo "ATLASSIAN_HOST=${{ secrets.ATLASSIAN_HOST }}" >> $GITHUB_ENV
echo "ATLASSIAN_USERNAME=${{ secrets.ATLASSIAN_USERNAME }}" >> $GITHUB_ENV
echo "LOOKER_HOST=${{ secrets.LOOKER_HOST}}" >> $GITHUB_ENV
echo "LOOKER_CLIENT_ID=${{ secrets.LOOKER_CLIENT_ID}}" >> $GITHUB_ENV
echo "LOOKER_SECRET=${{ secrets.LOOKER_SECRET}}" >> $GITHUB_ENV

echo "BITRISE_APP_SLUG=${{ secrets.BITRISE_APP_SLUG }}" >> $GITHUB_ENV
echo "BITRISE_HOST=${{ secrets.BITRISE_HOST }}" >> $GITHUB_ENV
echo "BITRISE_TOKEN=${{ secrets.BITRISE_TOKEN }}" >> $GITHUB_ENV: Generate Looker Thumbnails

- name: Update Looker Thumbnails
run: |
python3 ./api/looker/api_looker.py
ls
ls ./config/confluence/images/

- name: Update Confluence Page
run: python3 ./api/confluence/api_confluence.py

- name: Set job log URL
if: always()
run: echo "JOB_LOG_URL=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> $GITHUB_ENV

- name: Send custom JSON data to Slack workflow
if: always()
id: slack
uses: slackapi/[email protected]
env:
WORKFLOW_NAME: ${{ github.workflow }}
BRANCH: ${{ github.ref_name }}
JOB_STATUS: ${{ job.status == 'success' && ':white_check_mark:' || job.status == 'failure' && ':x:' }}
JOB_STATUS_COLOR: ${{ job.status == 'success' && '#36a64f' || job.status == 'failure' && '#FF0000' }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_MOBILE_ALERTS_TOOLING }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL_MOBILE_ALERTS_TOOLING }}
webhook-type: webhook-trigger
payload-templated: true
payload-file-path: "./config/payload-slack-content.json"
125 changes: 125 additions & 0 deletions config/confluence/yaml/data-insights-resource-data-insights-RI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
wiki_page:
page_id: "1823473665"
page_title: "Resource Data Insights - Summary"
sections:
- name: "Mobile Feature Request Workload"
reports:
- report-title: "Workload per Platform 2025"
report-description: "Number of Feature Requests per platform in 2025"
attachment-filename: "workload-per-platform-2025.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2707"

- report-title: "Workload per Platform 2024"
report-description: "Number of Feature Requests per platform in 2024"
attachment-filename: "workload-per-platform-2024.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2710"

- report-title: "YoY Feature Requests"
report-description: "Number of Feature Requests YoY per Platform"
attachment-filename: "yoy-feature-requests.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2711"

- report-title: "Feature Requests per half year cycle"
report-description: "Number of Feature Requests each half of the year and per Platform"
attachment-filename: "feature-requests-half-year.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2799"

- report-title: "Feature Requests per Release Train"
report-description: "Number of Feature Requests for each release train"
attachment-filename: "feature-requests-release-train.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2798"

- name: "Sofvision Workload"
reports:
- report-title: "Android Workload per Release Cycle"
report-description: "Workload per Release Cycle.\n\n Tasks for each requests are sized with Story Points \n\n Team is at capacity when they reach 22 SP (margin 5)"
attachment-filename: "android-workload-per-release-cycle.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2712"

- report-title: "iOS Workload per Release Cycle"
report-description: "Workload per Release Cycle.\n\n Tasks for each requests are sized with Story Points \n\n Team is at capacity when they reach 22 SP (margin 5)"
attachment-filename: "ios-workload-per-release-cycle.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2735"

- report-title: "Android Workload per Release Cycle per Person"
report-description: "TBD"
attachment-filename: "android-workload-per-person-per-release-cycle.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2736"

- report-title: "iOS Workload per Release Cycle per Person"
report-description: "TBD"
attachment-filename: "ios-workload-per-person-per-release-cycle.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2737"

- report-title: "Fenix Releases Tested"
report-description: "TBD"
attachment-filename: "fenix-verified-builds-pie-chart.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2718"

- report-title: "Firefox-iOS Releases Tested"
report-description: "TBD"
attachment-filename: "firefox-ios-verified-builds-pie-chart.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2719"

- report-title: "Focus-android Releases Tested"
report-description: "TBD"
attachment-filename: "focus-android-verified-builds-pie-chart.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2731"

- report-title: "Focus-iOS Releases Tested"
report-description: "TBD"
attachment-filename: "focus-ios-verified-builds-pie-chart.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2734"


- name: "Mobile Test Automation Coverage"
reports:
- report-title: "Firefox-iOS"
report-description: "Test Automation Coverage for Firefox-iOS Full Functional"
attachment-filename: "test-automation-coverage-full-functional-pie-chart-firefox-ios.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2713"

- report-title: "Firefox-iOS"
report-description: "Test Automation Coverage for Firefox-iOS Smoke"
attachment-filename: "test-automation-coverage-smoke-pie-chart-firefox-ios.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2714"

- report-title: "Fenix"
report-description: "Test Automation Coverage for Fenix Full Functional"
attachment-filename: "fenix-test-automation-coverage-full-functional-pie-chart.png"
looker-graph-url: "https://mozilla.cloud.looker.com/embed/looks/2738"

- report-title: "Fenix"
report-description: "Test Automation Coverage for Fenix Smoke"
attachment-filename: "fenix-test-automation-coverage-smoke-pie-chart.png"
looker-graph-url: "https://mozilla.cloud.looker.com/dembed/looks/2740"

- name: "Mobile Feature Requests Dashboards"
reports:
- report-title: "Mobile Feature Requests"
report-description: "All graphs in Dashboard"
attachment-filename: "dashboard-mobile-feature-testing-requests.png"
looker-graph-url: "https://mozilla.cloud.looker.com/dashboards/1854"

- report-title: "iOS Feature Requests"
report-description: "TBD"
attachment-filename: "404.png"
looker-graph-url: "https://mozilla.cloud.looker.com/dashboards/1846"

- report-title: "Android Feature Requests"
report-description: "TBD"
attachment-filename: "404.png"
looker-graph-url: "https://mozilla.cloud.looker.com/dashboards/1864"

- name: "Test Automation Coverage Dashboards"
reports:
- report-title: "Fenix Test Automation Coverage"
report-description: "All graphs in Dashboard"
attachment-filename: "dashboard-test-automation-coverage-fenix.png"
looker-graph-url: "https://mozilla.cloud.looker.com/dashboards/562"

- report-title: "iOS Test Automation Coverage"
report-description: "TBD"
attachment-filename: "404.png"
looker-graph-url: "https://mozilla.cloud.looker.com/dashboards/601"

Loading