Skip to content
Merged
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
122 changes: 122 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: CI

on:
push:
branches: ['develop/**', 'release/**']
pull_request:
branches: ['develop/**', 'release/**']

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MAVEN_ARGS: -B -V -e -ntp
MAVEN_COMMON_FLAGS: -Dhadoop.profile=3.0 -Drat.skip=true -Dmaven.javadoc.skip=true

jobs:
compile:
name: Compile
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven
server-id: arenadata
server-username: GITHUB_ACTOR
server-password: GITHUB_TOKEN
- name: Compile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
mvn ${{ env.MAVEN_ARGS }} install -DskipTests
${{ env.MAVEN_COMMON_FLAGS }} -Pbuild-with-jdk17
- name: Save m2 repository
uses: actions/cache/save@v4
with:
path: ~/.m2/repository
key: m2-${{ github.sha }}

test:
name: "${{ matrix.name }}"
needs: compile
runs-on: ubuntu-24.04
timeout-minutes: ${{ matrix.timeout }}
strategy:
fail-fast: false
matrix:
include:
- name: Small Tests
profile: runSmallTests
timeout: 60

- name: Medium Tests
profile: runMediumTests
timeout: 180

- name: Large Tests (Wave 1)
profile: runLargeTests-wave1
timeout: 240

- name: Large Tests (Wave 2)
profile: runLargeTests-wave2
timeout: 240

- name: Large Tests (Wave 3)
profile: runLargeTests-wave3
timeout: 240

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
server-id: arenadata
server-username: GITHUB_ACTOR
server-password: GITHUB_TOKEN
- name: Restore m2 repository
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
key: m2-${{ github.sha }}
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
mvn ${{ env.MAVEN_ARGS }} test
${{ env.MAVEN_COMMON_FLAGS }}
-Pbuild-with-jdk17,${{ matrix.profile }}
-Dsurefire.firstPartForkCount=0.5C
-Dsurefire.secondPartForkCount=0.5C
-Dsurefire.rerunFailingTestsCount=2
-Dmaven.test.failure.ignore=false
-fae
- name: Upload surefire reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: surefire-${{ matrix.name }}
path: '**/target/surefire-reports/'
if-no-files-found: ignore
141 changes: 0 additions & 141 deletions .github/workflows/yetus-general-check.yml

This file was deleted.

111 changes: 0 additions & 111 deletions .github/workflows/yetus-jdk11-hadoop3-compile-check.yml

This file was deleted.

Loading
Loading