Skip to content

Apache Solr

Apache Solr #98

name: Apache Solr
on:
schedule:
# Every Sunday at 9.00am
- cron: "0 9 * * 0"
workflow_dispatch:
env:
DEVELOCITY_URL: "https://ge.solutions-team.gradle.com"
GIT_REPO: "https://github.com/apache/solr"
TASKS: "check integrationTests -Ptests.seed=3466BEBDD5AA01A0 -Pvalidation.git.failOnModified=false -Ptests.haltonfailure=false -Ptests.neverUpToDate=false"
jobs:
Experiment:
strategy:
fail-fast: false
matrix:
include:
- experimentId: 1
- experimentId: 2
- experimentId: 3
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: "temurin"
- name: Add git hook to temporarily disable caching for SpotlessTaskImpl tasks
run: |
mkdir ~/git-hooks
echo -e 'echo "\nallprojects { pluginManager.withPlugin(\"com.diffplug.spotless\") { tasks.withType(com.diffplug.gradle.spotless.SpotlessTaskImpl).configureEach { outputs.doNotCacheIf(\"SpotlessTaskImpl is not cacheable if custom formatter steps are used\") { true } } } }" >> build.gradle\n' >> ~/git-hooks/post-checkout
chmod +x ~/git-hooks/post-checkout
git config --global core.hooksPath ~/git-hooks
- name: Download latest version of the validation scripts
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/download@actions-stable
with:
downloadDevelopmentRelease: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run experiment 1
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-1@actions-stable
env:
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
enableGradleEnterprise: true
if: matrix.experimentId == 1
- name: Run experiment 2
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-2@actions-stable
env:
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
enableGradleEnterprise: true
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:
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
enableGradleEnterprise: true
failIfNotFullyCacheable: true
if: matrix.experimentId == 3