Skip to content

Commit dc1cfe5

Browse files
authored
Add a Dataflow Go postcommit suite on running on ARM machines. #27673
2 parents d147ea1 + a10ce65 commit dc1cfe5

3 files changed

Lines changed: 73 additions & 0 deletions

File tree

.github/workflows/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Please note that jobs with matrix need to have matrix element in the comment. Ex
1919
| Workflow name | Matrix | Trigger Phrase | Cron Status |
2020
|:-------------:|:------:|:--------------:|:-----------:|
2121
| [ Go PreCommit ](https://github.com/apache/beam/actions/workflows/beam_PreCommit_Go.yml) | N/A |`Run Go PreCommit`| [![Go PreCommit](https://github.com/apache/beam/actions/workflows/beam_PreCommit_Go.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PreCommit_Go.yml) |
22+
| [ Go PostCommit Dataflow ARM](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Go_Dataflow_ARM.yml) | N/A |`Run Go PostCommit Dataflow ARM`| [![Go PostCommit Dataflow ARM](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Go_Dataflow_ARM.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Go_Dataflow_ARM.yml) |
2223
| [ Python PreCommit Docker ](https://github.com/apache/beam/actions/workflows/job_PreCommit_Python_DockerBuild.yml) | ['3.8','3.9','3.10','3.11'] | `Run PythonDocker PreCommit (matrix_element)`| [![.github/workflows/job_PreCommit_Python_DockerBuild.yml](https://github.com/apache/beam/actions/workflows/job_PreCommit_Python_DockerBuild.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/job_PreCommit_Python_DockerBuild.yml) |
2324
| [ Python PreCommit Docs ](https://github.com/apache/beam/actions/workflows/beam_PreCommit_PythonDocs.yml) | N/A | `Run PythonDocs PreCommit`| [![.github/workflows/beam_PreCommit_PythonDocs.yml](https://github.com/apache/beam/actions/workflows/beam_PreCommit_PythonDocs.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PreCommit_PythonDocs.yml) |
2425
| [ Python PreCommit Formatter ](https://github.com/apache/beam/actions/workflows/job_PreCommit_PythonAutoformatter.yml) | N/A | `Run PythonFormatter PreCommit`| [![.github/workflows/job_PreCommit_PythonAutoformatter.yml](https://github.com/apache/beam/actions/workflows/job_PreCommit_PythonAutoformatter.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/job_PreCommit_PythonAutoformatter.yml) |
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Go PostCommit Dataflow ARM
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
branches: ['master', 'release-*']
7+
paths: ['model/**', 'sdks/go.**', 'release/**', '.github/workflows/beam_PostCommit_Go_Dataflow_ARM.yml']
8+
issue_comment:
9+
types: [created]
10+
schedule:
11+
- cron: '* */6 * * *'
12+
#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
13+
permissions:
14+
actions: write
15+
pull-requests: read
16+
checks: read
17+
contents: read
18+
deployments: read
19+
id-token: none
20+
issues: read
21+
discussions: read
22+
packages: read
23+
pages: read
24+
repository-projects: read
25+
security-events: read
26+
statuses: read
27+
28+
# This allows a subsequently queued workflow run to interrupt previous runs
29+
concurrency:
30+
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
31+
cancel-in-progress: true
32+
33+
jobs:
34+
beam_PostCommit_Go_Dataflow_ARM:
35+
if: |
36+
github.event_name == 'push' ||
37+
github.event_name == 'schedule' ||
38+
github.event.comment.body == 'Run Go PostCommit Dataflow ARM'
39+
runs-on: [self-hosted, ubuntu-20.04, main]
40+
name: beam_PostCommit_Go_Dataflow_ARM
41+
steps:
42+
- uses: actions/checkout@v3
43+
with:
44+
ref: ${{ github.event.pull_request.head.sha }}
45+
- name: Rerun on comment
46+
if: github.event.comment.body == 'Run Go PostCommit Dataflow ARM'
47+
uses: ./.github/actions/rerun-job-action
48+
with:
49+
pull_request_url: ${{ github.event.issue.pull_request.url }}
50+
github_repository: ${{ github.repository }}
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
github_job: ${{ github.job }}
53+
github_current_run_id: ${{ github.run_id }}
54+
- name: Install Java
55+
uses: actions/setup-java@v3.8.0
56+
with:
57+
distribution: 'zulu'
58+
java-version: '8'
59+
- name: Install Go
60+
uses: actions/setup-go@v4
61+
with:
62+
go-version: '1.20'
63+
- name: Setup Gradle
64+
uses: gradle/gradle-build-action@v2
65+
with:
66+
cache-read-only: false
67+
- name: run goPostCommitDataflowARM test
68+
run: ./gradlew :goPostCommitDataflowARM

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,10 @@ tasks.register("goPortablePreCommit") {
440440
dependsOn(":sdks:go:test:ulrValidatesRunner")
441441
}
442442

443+
tasks.register("goPostCommitDataflowARM") {
444+
dependsOn(":sdks:go:test:dataflowValidatesRunnerARM64")
445+
}
446+
443447
tasks.register("goPostCommit") {
444448
dependsOn(":goIntegrationTests")
445449
}

0 commit comments

Comments
 (0)