Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Enable remote gradle cache and build scan for GitHub Actions workflows" #28560

Closed
wants to merge 1 commit into from
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
2 changes: 0 additions & 2 deletions .github/actions/setup-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,3 @@ runs:
shell: bash
run: |
echo KUBELET_GCLOUD_CONFIG_PATH=/var/lib/kubelet/pods/$POD_UID/volumes/kubernetes.io~empty-dir/gcloud >> $GITHUB_ENV
- name: Setup environment
uses: ./.github/actions/setup-environment-action
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,47 @@
# specific language governing permissions and limitations
# under the License.

name: 'Setup environment action'
description: 'Setup environment to run jobs'
name: 'Setup environment for self-hosted runners'
description: 'Setup action to run jobs in a self-hosted runner'
inputs:
python-version:
requires-py-38:
required: false
description: 'Install Python version'
default: ''
java-version:
description: 'Set as false if does not require py38 setup'
default: 'true'
requires-py-39:
required: false
description: 'Install Java version'
default: ''
go-version:
description: 'Set as false if does not require py39 setup'
default: 'true'
requires-java-8:
required: false
description: 'Install Go version'
default: ''
description: 'Set as false if does not require java-8 setup'
default: 'true'
requires-go:
required: false
description: 'Set as false if does not require go setup'
default: 'true'

runs:
using: "composite"
steps:
- name: Install Python
if: ${{ inputs.python-version != '' }}
- name: Install python 3.8
if: ${{ inputs.requires-py-38 == 'true' }}
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install python 3.9
if: ${{ inputs.requires-py-39 == 'true' }}
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Install Java
if: ${{ inputs.java-version != '' }}
python-version: "3.9"
- name: Set Java Version
if: ${{ inputs.requires-java-8 == 'true' }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ inputs.java-version }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Install Go
if: ${{ inputs.go-version != '' }}
java-version: 8
- name: Set Go Version
if: ${{ inputs.requires-go == 'true' }}
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.go-version }} # never set patch, to get latest patch releases.
go-version: '1.21' # never set patch, to get latest patch releases.
16 changes: 12 additions & 4 deletions .github/workflows/beam_PostCommit_Go_Dataflow_ARM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Java
uses: actions/setup-[email protected]
with:
java-version: 8
go-version: 1.21
distribution: 'zulu'
java-version: '8'
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Authenticate on GCP
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/beam_PostCommit_Java_Avro_Versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ permissions:
security-events: read
statuses: read

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 }}

jobs:
beam_PostCommit_Java_Avro_Versions:
name: ${{matrix.job_name}} (${{matrix.job_phrase}})
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/beam_PostCommit_Java_Examples_Dataflow_ARM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,21 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }} ${{matrix.java_version}}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{matrix.java_version}})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Setup self-hosted
uses: ./.github/actions/setup-self-hosted-action
with:
requires-py-38: false
requires-py-39: false
requires-go: false
- name: Set up Java${{ matrix.java_version }}
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Authenticate on GCP
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/beam_PostCommit_Java_Examples_Flink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Java
uses: actions/setup-[email protected]
with:
java-version: 8
python-version: 3.8
distribution: 'zulu'
java-version: '8'
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: run examplesIntegrationTest script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/beam_PostCommit_Java_IO_Performance_Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,15 @@ jobs:
with:
ref: v2.50.0 #TODO(https://github.com/apache/beam/issues/28330) automate updating this
repository: apache/beam
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Java
uses: actions/setup-[email protected]
with:
java-version: 8
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Authenticate on GCP
uses: google-github-actions/setup-gcloud@v0
with:
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/beam_PostCommit_Java_ValidatesRunner_Flink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Java
uses: actions/setup-[email protected]
with:
java-version: 8
python-version: 3.8
distribution: 'zulu'
java-version: '8'
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: run validatesRunner script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/beam_PostCommit_Python_Examples_Dataflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Python
uses: actions/setup-python@v4
with:
java-version: 8
python-version: 3.11
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Run examplesPostCommit script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/beam_PostCommit_Python_Examples_Direct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }} ${{ matrix.python_version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Python
uses: actions/setup-python@v4
with:
java-version: 8
python-version: ${{ matrix.python_version }}
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Set PY_VER_CLEAN
id: set_py_ver_clean
run: |
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/beam_PostCommit_Python_Examples_Flink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }} ${{ matrix.python_version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Python
uses: actions/setup-python@v4
with:
java-version: 8
python-version: ${{ matrix.python_version }}
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Set PY_VER_CLEAN
id: set_py_ver_clean
run: |
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/beam_PostCommit_Python_Examples_Spark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }} ${{ matrix.python_version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Python
uses: actions/setup-python@v4
with:
java-version: 8
python-version: ${{ matrix.python_version }}
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Set PY_VER_CLEAN
id: set_py_ver_clean
run: |
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/beam_PostCommit_Python_MongoDBIO_IT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Python
uses: actions/setup-python@v4
with:
java-version: 8
python-version: 3.11
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Run mongodbioIT script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }} ${{ matrix.python_version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Python
uses: actions/setup-python@v4
with:
java-version: 8
python-version: ${{ matrix.python_version }}
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Set PY_VER_CLEAN
id: set_py_ver_clean
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }} ${{ matrix.python_version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Python
uses: actions/setup-python@v4
with:
java-version: 8
python-version: ${{ matrix.python_version }}
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Set PY_VER_CLEAN
id: set_py_ver_clean
run: |
Expand All @@ -89,7 +97,7 @@ jobs:
with:
gradle-command: :sdks:python:test-suites:dataflow:py${{steps.set_py_ver_clean.outputs.py_ver_clean}}:validatesContainer
arguments: |
-PtestRCDependencies=true
-PtestRCDependencies=true \
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ jobs:
comment_phrase: ${{ matrix.job_phrase }} ${{ matrix.python_version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
- name: Setup environment
uses: ./.github/actions/setup-environment-action
- name: Install Python
uses: actions/setup-python@v4
with:
java-version: 8
python-version: ${{ matrix.python_version }}
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Set PY_VER_CLEAN
id: set_py_ver_clean
run: |
Expand Down
Loading
Loading