Skip to content

Commit 0912a36

Browse files
committed
switch back to one workflow and update readme as such
1 parent 2b6c2b6 commit 0912a36

File tree

3 files changed

+111
-3
lines changed

3 files changed

+111
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"comment": "Modify this file in a trivial way to cause this test suite to run",
3+
"revision": 2
4+
}

.github/workflows/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,7 @@ PostCommit Jobs run in a schedule against master branch and generally do not get
401401
| [ PostCommit XVR PythonUsingJavaSQL Dataflow ](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_PythonUsingJavaSQL_Dataflow.yml) | N/A |`beam_PostCommit_XVR_PythonUsingJavaSQL_Dataflow.json`| [![.github/workflows/beam_PostCommit_XVR_PythonUsingJavaSQL_Dataflow.yml](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_PythonUsingJavaSQL_Dataflow.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_PythonUsingJavaSQL_Dataflow.yml?query=event%3Aschedule) |
402402
| [ PostCommit XVR Samza ](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_Samza.yml) | N/A |`beam_PostCommit_XVR_Samza.json`| [![.github/workflows/beam_PostCommit_XVR_Samza.yml](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_Samza.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_Samza.yml?query=event%3Aschedule) |
403403
| [ PostCommit XVR Spark3 ](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_Spark3.yml) | N/A |`beam_PostCommit_XVR_Spark3.json`| [![.github/workflows/beam_PostCommit_XVR_Spark3.yml](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_Spark3.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PostCommit_XVR_Spark3.yml?query=event%3Aschedule) |
404-
| [ PostCommit YAML Data Xlang Direct ](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Data_Xlang_Direct.yml) | N/A |`beam_PostCommit_Yaml_Data_Xlang_Direct.json`| [![.github/workflows/beam_PostCommit_Yaml_Data_Xlang_Direct.yml](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Data_Xlang_Direct.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Data_Xlang_Direct.yml?query=event%3Aschedule) |
405-
| [ PostCommit YAML Databases Xlang Direct ](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Databases_Xlang_Direct.yml) | N/A |`beam_PostCommit_Yaml_Databases_Xlang_Direct.json`| [![.github/workflows/beam_PostCommit_Yaml_Databases_Xlang_Direct.yml](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Databases_Xlang_Direct.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Databases_Xlang_Direct.yml?query=event%3Aschedule) |
406-
| [ PostCommit YAML Messaging Xlang Direct ](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Messaging_Xlang_Direct.yml) | N/A |`beam_PostCommit_Yaml_Messaging_Xlang_Direct.json`| [![.github/workflows/beam_PostCommit_Yaml_Messaging_Xlang_Direct.yml](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Messaging_Xlang_Direct.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Messaging_Xlang_Direct.yml?query=event%3Aschedule) |
404+
| [ PostCommit YAML Xlang Direct ](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Xlang_Direct.yml) | N/A |`beam_PostCommit_Yaml_Xlang_Direct.json`| [![.github/workflows/beam_PostCommit_Yaml_Xlang_Direct.yml](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Xlang_Direct.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_PostCommit_Yaml_Xlang_Direct.yml?query=event%3Aschedule) |
407405
| [ Python Validates Container Dataflow ARM ](https://github.com/apache/beam/actions/workflows/beam_Python_ValidatesContainer_Dataflow_ARM.yml) | ['3.8','3.9','3.10','3.11'] |`beam_Python_ValidatesContainer_Dataflow_ARM.json`|[![.github/workflows/beam_Python_ValidatesContainer_Dataflow_ARM.yml](https://github.com/apache/beam/actions/workflows/beam_Python_ValidatesContainer_Dataflow_ARM.yml/badge.svg?event=schedule)](https://github.com/apache/beam/actions/workflows/beam_Python_ValidatesContainer_Dataflow_ARM.yml?query=event%3Aschedule) |
408406

409407
### PerformanceTests and Benchmark Jobs
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: PostCommit YAML Xlang Direct
17+
18+
on:
19+
schedule:
20+
- cron: '30 5/6 * * *'
21+
pull_request_target:
22+
paths: ['release/trigger_all_tests.json', '.github/trigger_files/beam_PostCommit_Yaml_Xlang_Direct.json']
23+
workflow_dispatch:
24+
25+
#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
26+
permissions:
27+
actions: write
28+
pull-requests: write
29+
checks: write
30+
contents: read
31+
deployments: read
32+
id-token: none
33+
issues: write
34+
discussions: read
35+
packages: read
36+
pages: read
37+
repository-projects: read
38+
security-events: read
39+
statuses: read
40+
41+
# This allows a subsequently queued workflow run to interrupt previous runs
42+
concurrency:
43+
group: '${{ github.workflow }} @ ${{ github.event.issue.number || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.comment.id || github.event.sender.login }}'
44+
cancel-in-progress: true
45+
46+
env:
47+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
48+
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
49+
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
50+
51+
jobs:
52+
beam_PostCommit_Yaml_Xlang_Direct:
53+
if: |
54+
github.event_name == 'workflow_dispatch' ||
55+
github.event_name == 'pull_request_target' ||
56+
(github.event_name == 'schedule' && github.repository == 'apache/beam')
57+
runs-on: ubuntu-latest
58+
timeout-minutes: 120 # Adjusted timeout for potentially longer total run time
59+
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
60+
strategy:
61+
matrix:
62+
job_name:
63+
- "beam_PostCommit_Yaml_Data_Xlang_Direct"
64+
- "beam_PostCommit_Yaml_Messaging_Xlang_Direct"
65+
- "beam_PostCommit_Yaml_Databases_Xlang_Direct"
66+
job_phrase:
67+
- "Run Yaml_Data_Xlang_Direct PostCommit"
68+
- "Run Yaml_Messaging_Xlang_Direct PostCommit"
69+
- "Run Yaml_Databases_Xlang_Direct PostCommit"
70+
gradle_command:
71+
- ":sdks:python:postCommitYamlDataIntegrationTests -PbeamPythonExtra=ml_test"
72+
- ":sdks:python:postCommitYamlMessagingIntegrationTests -PbeamPythonExtra=ml_test"
73+
- ":sdks:python:postCommitYamlDatabasesIntegrationTests -PbeamPythonExtra=ml_test"
74+
steps:
75+
- uses: actions/checkout@v4
76+
- name: Setup repository
77+
uses: ./.github/actions/setup-action
78+
with:
79+
comment_phrase: ${{ matrix.job_phrase }}
80+
github_token: ${{ secrets.GITHUB_TOKEN }}
81+
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
82+
- name: Setup environment
83+
uses: ./.github/actions/setup-environment-action
84+
with:
85+
python-version: default
86+
java-version: '11'
87+
- name: Set up Cloud SDK
88+
uses: google-github-actions/setup-gcloud@v2
89+
- name: run PostCommit Yaml Xlang Direct script
90+
uses: ./.github/actions/gradle-command-self-hosted-action
91+
with:
92+
gradle-command: ${{ matrix.gradle_command }}
93+
- name: Archive Python Test Results
94+
uses: actions/upload-artifact@v4
95+
if: failure()
96+
with:
97+
name: Python Test Results
98+
path: '**/pytest*.xml'
99+
- name: Publish Python Test Results
100+
uses: EnricoMi/publish-unit-test-result-action@v2
101+
if: always()
102+
with:
103+
commit: '${{ env.prsha || env.GITHUB_SHA }}'
104+
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
105+
files: '**/pytest*.xml'
106+
large_files: true

0 commit comments

Comments
 (0)