Skip to content

Commit

Permalink
Merge pull request #75 from gradle/beam
Browse files Browse the repository at this point in the history
  • Loading branch information
clayburn authored Sep 7, 2023
2 parents fb48a91 + da2a149 commit ae6b6f1
Show file tree
Hide file tree
Showing 12 changed files with 102 additions and 31 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/run-experiments-apache-beam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Apache - Beam

on:
schedule:
# Every Sunday at 9.00am
- cron: "0 9 * * 0"

workflow_dispatch:

env:
GRADLE_ENTERPRISE_URL: "https://ge.solutions-team.gradle.com"
GIT_REPO: "https://github.com/apache/beam"
TASKS: ":javaPreCommit -PdisableSpotlessCheck=true -PdisableCheckStyle=true -x jmhTest"

jobs:
Experiment:

strategy:
matrix:
include:
- experimentId: 1
- experimentId: 2
- experimentId: 3

runs-on:
# This `runs-on` configuration utilize larger GitHub Actions hosted runners. This build does not successfully
# complete on the default runners.
# Using this label incurs extra costs, so please do not copy/paste this configuration.
labels: ubuntu-latest-4core
group: gradle-enterprise-oss-projects
steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: "temurin"
- name: Download latest version of the validation scripts
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/download@actions-stable
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Remove Maven Settings
# Beam uses the [gradle-maven-settings-plugin](https://github.com/mark-vieira/gradle-maven-settings-plugin/)
# to read repo authentication from Maven settings and use it in their Gradle build. It seems that plugin does not
# [support encrypted credentials](https://github.com/mark-vieira/gradle-maven-settings-plugin/issues/15),
# but this is what GitHub Actions provides by default. Deleting `settings.xml` is what Beam do in their own CI
# builds on GitHub Actions: https://github.com/apache/beam/blob/ca0345b8acc7dd5ebc0506d48faa6474fe0b3ca0/.github/workflows/java_tests.yml#L89
run: rm $HOME/.m2/settings.xml
- name: Ignore Test Failures
run: |
mkdir ~/git-hooks
echo -e 'echo "\nallprojects { tasks.withType(Test::class).configureEach { ignoreFailures = true } }" >> build.gradle.kts\n' >> ~/git-hooks/post-checkout
chmod +x ~/git-hooks/post-checkout
git config --global core.hooksPath ~/git-hooks
- name: Run experiment 1
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-1@actions-stable
env:
GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
if: matrix.experimentId == 1
- name: Run experiment 2
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-2@actions-stable
env:
GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
env:
GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-calcite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -61,5 +61,5 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-geode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -66,5 +66,5 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-groovy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -60,5 +60,5 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-jmeter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -66,5 +66,5 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -66,5 +66,5 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-lucene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
enableGradleEnterprise: true
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -63,5 +63,5 @@ jobs:
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
enableGradleEnterprise: true
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-ofbiz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -60,5 +60,5 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-openwhisk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -60,5 +60,5 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-samza.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -60,5 +60,5 @@ jobs:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
4 changes: 2 additions & 2 deletions .github/workflows/run-experiments-apache-solr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
enableGradleEnterprise: true
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
Expand All @@ -63,5 +63,5 @@ jobs:
tasks: ${{ env.TASKS }}
gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }}
enableGradleEnterprise: true
failIfNotFullyCacheable: true # Require no issues to be found
failIfNotFullyCacheable: true
if: matrix.experimentId == 3
11 changes: 0 additions & 11 deletions .github/workflows/run-experiments-beam.yml

This file was deleted.

0 comments on commit ae6b6f1

Please sign in to comment.