andreydevyatkin opened a new pull request, #26645: URL: https://github.com/apache/beam/pull/26645
fixes https://github.com/apache/beam/issues/26234 The intension of this PR is to fix the [GitHub Actions postcommit dashboard](http://metrics.beam.apache.org/d/80hUcTh4k/ga-post-commits-status?orgId=1) that was added in this PR [#24176](https://github.com/apache/beam/pull/24176). As a result, the following changes have been added: - Fixed the dashboard's json file schema to display data - Changed the [datasource](https://github.com/apache/beam/compare/master...akvelon:beam:26234-fix_github_actions_postcommit_dashboard?expand=1#diff-94218231238a6cf88ca8882ee3a497945acb8c796656e8e1c53741fe42ce59d2R44) to the `BeamPSQL` specified in the [beampostgresql.yaml](https://github.com/apache/beam/blob/master/.test-infra/metrics/grafana/provisioning/datasources/beampostgresql.yaml#L24) file in order to fetch data from PostgreSQL - Changed env variable names to be consistent with the [docker-compose.yml](https://github.com/apache/beam/blob/master/.test-infra/metrics/docker-compose.yml#L85-L87) file - The [github_actions_workflows_dashboard_sync](https://console.cloud.google.com/functions/details/us-central1/github_actions_workflows_dashboard_sync?env=gen1&project=apache-beam-testing&tab=source) function is updated to be consistent with the implementation - The [github_actions_workflows_dashboard_sync](https://console.cloud.google.com/cloudscheduler/jobs/edit/us-central1/github_actions_workflows_dashboard_sync?project=apache-beam-testing) job scheduler is enabled ### How has it been tested? Tested on the local machine. 1. Update the `sync_workflows.py` script by adding an entry point: ``` if __name__ == "__main__": githubWorkflowsGrafanaSync(None, None) ``` 2. Follow the [instruction](https://cwiki.apache.org/confluence/display/BEAM/Community+Metrics#CommunityMetrics-GrafanaUI) to deploy and configure a Grafana instance locally 3. Go to the `beamsyncgithub` container: `docker exec -it "beamsyncgithub" bash` 4. Pull out data from GitHub by running the sync script `python ./sync_workflows.py` 5. Go to the `GA Post-Commits Status` Grafana dashboard and verify that data is displayed  ------------------------ Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily: - [ ] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead. - [ ] Update `CHANGES.md` with noteworthy changes. - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://beam.apache.org/contribute/get-started-contributing/#make-the-reviewers-job-easier). To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md) GitHub Actions Tests Status (on master branch) ------------------------------------------------------------------------------------------------ [](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule) [](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule) [](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule) [](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule) See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
