Skip to content

IGNITE-28531 Change maven.compiler.source to 17 #16262

IGNITE-28531 Change maven.compiler.source to 17

IGNITE-28531 Change maven.compiler.source to 17 #16262

Workflow file for this run

# 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: Code Style, Abandoned Tests, Javadocs
on:
pull_request:
push:
branches:
- master
- 'ignite-[0-9].[0-9]+.[0-9]+*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-java:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '17' ]
name: Check java code on JDK ${{ matrix.java }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Install prerequisites
run: |
sudo apt-get update && sudo apt-get install libnuma-dev
- name: Set MAVEN_OPTS
if: ${{ matrix.java == '17' }}
run: |
{
echo 'MAVEN_OPTS<<EOF'
echo '--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED'
echo '--add-exports=java.base/sun.nio.ch=ALL-UNNAMED'
echo '--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED'
echo '--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED'
echo '--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED'
echo '--add-opens=java.base/jdk.internal.access=ALL-UNNAMED'
echo '--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED'
echo '--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED'
echo '--add-opens=java.base/sun.net.util=ALL-UNNAMED'
echo '--add-opens=java.base/sun.nio.ch=ALL-UNNAMED'
echo '--add-opens=java.base/sun.nio.fs=ALL-UNNAMED'
echo '--add-opens=java.base/sun.util.calendar=ALL-UNNAMED'
echo '--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED'
echo '--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED'
echo '--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED'
echo '--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED'
echo '--add-opens=java.base/java.io=ALL-UNNAMED'
echo '--add-opens=java.base/java.nio=ALL-UNNAMED'
echo '--add-opens=java.base/java.net=ALL-UNNAMED'
echo '--add-opens=java.base/java.util=ALL-UNNAMED'
echo '--add-opens=java.base/java.util.concurrent=ALL-UNNAMED'
echo '--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED'
echo '--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED'
echo '--add-opens=java.base/java.lang=ALL-UNNAMED'
echo '--add-opens=java.base/java.lang.invoke=ALL-UNNAMED'
echo '--add-opens=java.base/java.math=ALL-UNNAMED'
echo '--add-opens=java.sql/java.sql=ALL-UNNAMED'
echo '--add-opens=java.base/java.lang.reflect=ALL-UNNAMED'
echo '--add-opens=java.base/java.time=ALL-UNNAMED'
echo '--add-opens=java.base/java.text=ALL-UNNAMED'
echo '--add-opens=java.base/java.security=ALL-UNNAMED'
echo '--add-opens=java.logging/java.util.logging=ALL-UNNAMED'
echo '--add-opens=java.management/sun.management=ALL-UNNAMED'
echo '--add-opens=java.desktop/java.awt.font=ALL-UNNAMED'
echo '--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED'
echo '--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED'
echo '--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED'
echo '-Djdk.tls.client.protocols=TLSv1.2'
echo 'EOF'
} >> $GITHUB_ENV
- name: Run codestyle and licenses checks
run: |
./mvnw test-compile -Pall-java,licenses,lgpl,checkstyle,examples,scala,check-licenses -B -V
- name: Run abandoned tests checks.
run : |
./mvnw test -Pcheck-test-suites,all-java,scala -B -V
- name: Check javadocs.
run : |
./mvnw -DskipTests install -pl modules/tools,modules/codegen -B -V && ./mvnw initialize -Pjavadoc -B -V
check-dotnet:
name: Сheck .NET code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Run checks
run: |
dotnet build modules/platforms/dotnet/Apache.Ignite.DotNetCore.sln
check-ducktape:
name: Check ducktape on ${{ matrix.cfg.toxenv }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cfg:
- { python: "3.8", toxenv: "py38" }
- { python: "3.9", toxenv: "py39" }
- { python: "3.9", toxenv: "codestyle" }
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.cfg.python}}
- name: Install tox
run: |
pip install tox==3.27.1
- name: Run tests
run: |
cd modules/ducktests/tests
tox -e ${{ matrix.cfg.toxenv }}