Skip to content
Closed
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
55 changes: 55 additions & 0 deletions .github/workflows/job-postcommit-beam-metrics-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# To learn more about GitHub Actions in Apache Beam check the CI.md

# Applies new configuration to Beam Metrics infrastructure.

name: PostCommit Beam Metrics Publish

on:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *'
push:
branches: ['master']
permissions: read-all

jobs:
postcommit-beam-metrics-publish:
name: Run PostCommit Beam Metrics Publish
runs-on: [self-hosted, ubuntu-20.04]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false
submodules: false
- name: Setup environment
uses: ./.github/actions/setup-self-hosted-action
- name: Install kubectl
uses: azure/setup-kubectl@v3
- name: Configure Docker
run: |
gcloud auth configure-docker
- name: Get Credentials
run: |
gcloud container clusters get-credentials metrics-migration-test --zone us-central1-c --project apache-beam-testing
- name: Run :beam-test-infra-metrics:deploy
uses: ./.github/actions/gradle-command-self-hosted-action
with:
gradle-command: :beam-test-infra-metrics:deploy
1 change: 0 additions & 1 deletion .test-infra/jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ Beam Jenkins overview page: [link](https://ci-beam.apache.org/)

| Name | Link | PR Trigger Phrase | Cron Status |
|------|------|-------------------|-------------|
| beam_PostCommit_BeamMetrics_Publish | [cron](https://ci-beam.apache.org/job/beam_PostCommit_BeamMetrics_Publish/) | N/A | [![Build Status](https://ci-beam.apache.org/job/beam_PostCommit_BeamMetrics_Publish/badge/icon)](https://ci-beam.apache.org/job/beam_PostCommit_BeamMetrics_Publish) |
| beam_PostCommit_XVR_Flink | [cron](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink/), [phrase](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink_PR/) | `Run XVR_Flink PostCommit` | [![Build Status](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink/badge/icon)](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink) |
| beam_PostCommit_XVR_Samza | [cron](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Samza/), [phrase](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Samza_PR/) | `Run XVR_Samza PostCommit` | [![Build Status](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Samza/badge/icon)](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Samza) |
| beam_PostCommit_XVR_Spark | [cron](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Spark/), [phrase](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Spark_PR/) | `Run XVR_Spark PostCommit` | [![Build Status](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Spark/badge/icon)](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Spark) |
Expand Down
41 changes: 0 additions & 41 deletions .test-infra/jenkins/job_PostCommit_BeamMetrics_Publish.groovy

This file was deleted.

17 changes: 17 additions & 0 deletions CI.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,23 @@ Service Account shall have following permissions ([IAM roles](https://cloud.goog
| Java Wordcount Direct Runner | Runs Java WordCount example with Direct Runner. | Yes | Yes | Yes | - |
| Java Wordcount Dataflow | Runs Java WordCount example with DataFlow Runner. | - | Yes | Yes | Yes |

### All migrated workflows run based on the following triggers

| Description | Pull Request Run | Direct Push/Merge Run | Scheduled Run | Workflow Dispatch |
|-------------|------------------|-----------------------|---------------|-------------------|
| PostCommit | No | Yes | Yes | Yes |
| PreCommit | Yes | Yes | Yes | Yes |

### PreCommit Workflows
| Workflow | Description | Requires GCP Credentials |
|----------------------------------------------------------------------------------|-------------------------|---------------------------|
| [job-precommit-placeholder.yml](.github/workflows/job-precommit-placeholder.yml) | Description placeholder | Yes/No |

### PostCommit Workflows
| Workflow | Description | Requires GCP Credentials |
|------------------------------------------------------------------------------------------------------|----------------------------------------------------------|--------------------------|
| [job-postcommit-beam-metrics-publish.yml](.github/workflows/job-postcommit-beam-metrics-publish.yml) | Applies new configuration to Beam Metrics infrastructure | Yes |

### GitHub Action Tips

* If you introduce changes to the workflow it is possible that your changes will not be present in the check run triggered in Pull Request.
Expand Down