You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/09 16:16:24 UTC
[GitHub] [beam] damccorm opened a new pull request, #21771: Update dashboards to use gh data instead of jira data
damccorm opened a new pull request, #21771:
URL: https://github.com/apache/beam/pull/21771
This is a continuation of #21736 - now that we're using GH Issues, we should start driving our dashboard from issues instead of Jiras.
This relies on the table defined here - https://github.com/damccorm/beam/blob/c2ca26204950899e0324cb07bae613ecc2115a11/.test-infra/metrics/sync/github/sync.py#L53
This is step 2 of #21735
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] [**Choose reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and mention them in a comment (`R: @username`).
- [x] Add a link to the appropriate issue in your description, if applicable. This will automatically link the pull request to the issue.
- [ ] Update `CHANGES.md` with noteworthy changes.
- [x] 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/#make-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)
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] asf-ci commented on pull request #21771: Update dashboards to use gh data instead of jira data
Posted by GitBox <gi...@apache.org>.
asf-ci commented on PR #21771:
URL: https://github.com/apache/beam/pull/21771#issuecomment-1151337508
Can one of the admins verify this patch?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] kileys merged pull request #21771: Update dashboards to use gh issues data instead of jira data
Posted by GitBox <gi...@apache.org>.
kileys merged PR #21771:
URL: https://github.com/apache/beam/pull/21771
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] kileys commented on a diff in pull request #21771: Update dashboards to use gh issues data instead of jira data
Posted by GitBox <gi...@apache.org>.
kileys commented on code in PR #21771:
URL: https://github.com/apache/beam/pull/21771#discussion_r893790089
##########
.test-infra/metrics/grafana/dashboards/source_data_freshness.json:
##########
@@ -104,7 +104,7 @@
"hide": false,
"metricColumn": "build_result",
"rawQuery": true,
- "rawSql": "WITH sources AS (\n SELECT\n 'Jenkins' as source,\n MAX(build_timestamp + make_interval(secs:= timing_executingtimemillis / 1000.0)) AS last_sync\n FROM jenkins_builds\n UNION SELECT\n 'JIRA' as source,\n lastsynctime AS last_sync\n FROM jira_issues_metadata\n UNION SELECT\n 'GitHub' as source,\n timestamp AS last_sync\n FROM gh_sync_metadata\n)\nSELECT\n current_timestamp AS time,\n source,\n EXTRACT(EPOCH FROM age(current_timestamp, last_sync)) / (60) AS value\nFROM sources",
+ "rawSql": "WITH sources AS (\n SELECT\n 'Jenkins' as source,\n MAX(build_timestamp + make_interval(secs:= timing_executingtimemillis / 1000.0)) AS last_sync\n FROM jenkins_builds\n UNION SELECT\n 'GitHub Issues ' as source,\n timestamp AS last_sync\n FROM gh_sync_metadata\n WHERE name = 'gh_issue_sync'\n UNION SELECT\n 'GitHub Pull Requests ' as source,\n timestamp AS last_sync\n FROM gh_sync_metadata\n WHERE name = 'gh_pr_sync')\nSELECT\n current_timestamp AS time,\n source,\n EXTRACT(EPOCH FROM age(current_timestamp, last_sync)) / (60) AS value\nFROM sources",
Review Comment:
```suggestion
"rawSql": "WITH sources AS (\n SELECT\n 'Jenkins' as source,\n MAX(build_timestamp + make_interval(secs:= timing_executingtimemillis / 1000.0)) AS last_sync\n FROM jenkins_builds\n UNION SELECT\n 'GitHub Issues' as source,\n timestamp AS last_sync\n FROM gh_sync_metadata\n WHERE name = 'gh_issue_sync'\n UNION SELECT\n 'GitHub Pull Requests' as source,\n timestamp AS last_sync\n FROM gh_sync_metadata\n WHERE name = 'gh_pr_sync')\nSELECT\n current_timestamp AS time,\n source,\n EXTRACT(EPOCH FROM age(current_timestamp, last_sync)) / (60) AS value\nFROM sources",
```
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damccorm commented on a diff in pull request #21771: Update dashboards to use gh issues data instead of jira data
Posted by GitBox <gi...@apache.org>.
damccorm commented on code in PR #21771:
URL: https://github.com/apache/beam/pull/21771#discussion_r893807016
##########
.test-infra/metrics/grafana/dashboards/source_data_freshness.json:
##########
@@ -104,7 +104,7 @@
"hide": false,
"metricColumn": "build_result",
"rawQuery": true,
- "rawSql": "WITH sources AS (\n SELECT\n 'Jenkins' as source,\n MAX(build_timestamp + make_interval(secs:= timing_executingtimemillis / 1000.0)) AS last_sync\n FROM jenkins_builds\n UNION SELECT\n 'JIRA' as source,\n lastsynctime AS last_sync\n FROM jira_issues_metadata\n UNION SELECT\n 'GitHub' as source,\n timestamp AS last_sync\n FROM gh_sync_metadata\n)\nSELECT\n current_timestamp AS time,\n source,\n EXTRACT(EPOCH FROM age(current_timestamp, last_sync)) / (60) AS value\nFROM sources",
+ "rawSql": "WITH sources AS (\n SELECT\n 'Jenkins' as source,\n MAX(build_timestamp + make_interval(secs:= timing_executingtimemillis / 1000.0)) AS last_sync\n FROM jenkins_builds\n UNION SELECT\n 'GitHub Issues ' as source,\n timestamp AS last_sync\n FROM gh_sync_metadata\n WHERE name = 'gh_issue_sync'\n UNION SELECT\n 'GitHub Pull Requests ' as source,\n timestamp AS last_sync\n FROM gh_sync_metadata\n WHERE name = 'gh_pr_sync')\nSELECT\n current_timestamp AS time,\n source,\n EXTRACT(EPOCH FROM age(current_timestamp, last_sync)) / (60) AS value\nFROM sources",
Review Comment:
Good catch, thanks!
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] asf-ci commented on pull request #21771: Update dashboards to use gh data instead of jira data
Posted by GitBox <gi...@apache.org>.
asf-ci commented on PR #21771:
URL: https://github.com/apache/beam/pull/21771#issuecomment-1151337502
Can one of the admins verify this patch?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damccorm commented on pull request #21771: Update dashboards to use gh issues data instead of jira data
Posted by GitBox <gi...@apache.org>.
damccorm commented on PR #21771:
URL: https://github.com/apache/beam/pull/21771#issuecomment-1151377277
R: @kileys
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org