Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/add-error-handling-for-b…
Browse files Browse the repository at this point in the history
…qio' into feature/add-error-handling-for-bqio
  • Loading branch information
johnjcasey committed Feb 14, 2024
2 parents e5c53fe + 5130b38 commit 27ad361
Show file tree
Hide file tree
Showing 737 changed files with 17,709 additions and 6,902 deletions.
1 change: 1 addition & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ github:

protected_branches:
master: {}
release-2.54.0: {}
release-2.53.0: {}
release-2.52.0: {}
release-2.51.0: {}
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
github.event_name == 'push' ||
github.event_name == 'pull_request_target' ||
(github.event_name == 'schedule' && github.repository == 'apache/beam') ||
github.event_name == 'workflow_dispatch' ||
startsWith(github.event.comment.body, 'Run Job With Matrix')
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/beam_CancelStaleDataflowJobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
with:
disable-cache: true
- name: Authenticate on GCP
id: auth
uses: google-github-actions/auth@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/beam_CleanUpDataprocResources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: Cleanup Dataproc Resources

on:
schedule:
- cron: '0 */6 * * *'
- cron: '0 0 * * *'
workflow_dispatch:

#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/beam_CleanUpGCPResources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
with:
disable-cache: true
- name: Authenticate on GCP
id: auth
uses: google-github-actions/setup-gcloud@v0
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/beam_CleanUpPrebuiltSDKImages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
beam_CleanUpPrebuiltSDKImages:
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
runs-on: [self-hosted, ubuntu-20.04, main]
timeout-minutes: 100
timeout-minutes: 180
strategy:
matrix:
job_name: [beam_CleanUpPrebuiltSDKImages]
Expand All @@ -71,12 +71,18 @@ jobs:
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
with:
disable-cache: true
- name: Authenticate on GCP
id: auth
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: GCloud Docker credential helper
run: |
gcloud auth configure-docker gcr.io && \
gcloud auth configure-docker us.gcr.io
- name: run remove stale sdk container images
uses: ./.github/actions/gradle-command-self-hosted-action
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/beam_PostCommit_Java_DataflowV2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: PostCommit Java Dataflow V2

on:
schedule:
- cron: '30 3/6 * * *'
- cron: '30 3/8 * * *'
pull_request_target:
paths: ['release/trigger_all_tests.json', '.github/trigger_files/beam_PostCommit_Java_DataflowV2.json']
workflow_dispatch:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
beam_PostCommit_Java_DataflowV2:
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
runs-on: [self-hosted, ubuntu-20.04, main]
timeout-minutes: 240
timeout-minutes: 360
strategy:
matrix:
job_name: [beam_PostCommit_Java_DataflowV2]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
name: Python Test Results
name: Python ${{ matrix.python_version }} Test Results
path: '**/pytest*.xml'
- name: Publish Python Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/beam_PreCommit_Python_Coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
HF_INFERENCE_TOKEN: ${{ secrets.HF_INFERENCE_TOKEN }}


jobs:
beam_PreCommit_Python_Coverage:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playground_frontend_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@v4

- name: 'Cache Flutter Dependencies'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tour_of_beam_frontend_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@v4

- name: 'Cache Flutter Dependencies'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/update_python_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
permissions: read-all
permissions:
contents: write
pull-requests: write
checks: read
issues: read
statuses: read



env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
Expand Down Expand Up @@ -55,6 +62,8 @@ jobs:
python-version: |
3.8
3.9
3.10
3.11
java-version: 8
go-version: 1.21
- name: Update Python Dependencies
Expand All @@ -68,6 +77,8 @@ jobs:
git config user.name $GITHUB_ACTOR
git config user.email actions@"$RUNNER_NAME".local
- name: Commit Changes and create new PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
branchName=weekly_update_python_dependencies_$(date +%s)
git checkout -b $branchName
Expand All @@ -81,4 +92,4 @@ jobs:
echo "Link of the new PR $GITHUB_PR_URL"
else
echo "No changes on the files"
fi
fi
4 changes: 2 additions & 2 deletions .test-infra/dataproc/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function filterClusters(){

elapsedHours=$((($currentDate - $clusterStartTime)/3600))

#Most of the jobs commonly finish in less than one hour
if [[ $elapsedHours -ge 2 ]]; then
# teardown clusters >= 6 hr old
if [[ $elapsedHours -ge 6 ]]; then
for name in ${generatedResources[@]}; do
# Only resources generated by the groovy jobs set are queued for deletion
if [[ "$cluster" == *${name}* && ! ("$cluster" =~ nokill) ]]; then
Expand Down
Loading

0 comments on commit 27ad361

Please sign in to comment.