[CI] Set build timeout to 60 minutes for normal tests and 3 hours for… #248
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slow checks | |
on: | |
workflow_call: | |
workflow_dispatch: | |
branches: | |
- '**' | |
schedule: | |
- cron: '0 12 * * *' | |
push: | |
branches: | |
- master | |
- 'release/**' | |
pull_request: | |
types: [opened, synchronize] | |
branches: | |
- master | |
- 'release/**' | |
concurrency: | |
group: slow-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail' | |
JAVA_VERSION: '17' | |
permissions: | |
contents: read | |
jobs: | |
property-tests: | |
name: Property tests | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 180 | |
strategy: | |
matrix: | |
java: [ '21' ] | |
dotnet: [ '8.0.x' ] | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION | |
run: | | |
java -Xinternalversion | |
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV | |
echo "BUILD_JAVA_VERSION=${{ matrix.java }}" >> $GITHUB_ENV | |
- name: Setup java to run Gradle script | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
- name: Build .NET library | |
run: ./csharp/build.sh | |
- name: Run property tests | |
run: ./gradlew propertyTest | |
- name: Copy test logs | |
id: copy_test_logs | |
if: failure() | |
run: | | |
${{ runner.os == 'Windows' && 'echo "file=build/distributions/test_logs.tbz2" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append' || 'echo "file=build/distributions/test_logs.tbz2" >> $GITHUB_OUTPUT' }} | |
./gradlew tarTestLogs | |
- name: Upload crash logs | |
if: always() && steps.copy_test_logs.outputs.file == 'build/distributions/test_logs.tbz2' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: crash-logs-${{ matrix.os }}-property-tests-java-${{matrix.java}}-dotnet-${{matrix.dotnet}} | |
path: ${{ steps.copy_test_logs.outputs.file }} | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: property-tests | |
path: sbe-tool/build/reports/tests/propertyTest |