Skip to content
Snippets Groups Projects
Commit 6e75085a authored by Emmanuel Bourg's avatar Emmanuel Bourg Committed by Ritesh Raj Sarraf
Browse files

Import Debian changes 5.9.2-1

parents cde6f0b1 8cb6ad36
Branches debian/bookworm
Tags debian/5.9.2-1
1 merge request!2Update from debian/bookworm for apertis/v2024dev2
Pipeline #614134 passed
Showing
with 463 additions and 26 deletions
build: off
# Specify which branches/tags that we do not want to be built: r5.0.0-M5
branches:
except:
- /^r\d.*$/
install:
# JDK installation via: https://chocolatey.org/packages/jdk11
- cinst jdk11 -params 'installdir=C:\\jdk11'
- SET JAVA_HOME="C:\jdk11"
# Or use pre-installed JDK
# - SET JAVA_HOME="C:\Program Files\Java\jdk10"
- SET PATH=%JAVA_HOME%\bin;%PATH%
test_script:
- gradlew --no-daemon -version
- gradlew --no-daemon --stacktrace build publishToMavenLocal
- gradlew --no-daemon --stacktrace -Dplatform.tooling.support.tests.enabled=true build
comment: false
coverage:
status:
project:
default:
threshold: 1
informational: true
patch: off
* text eol=lf
*.bat text eol=crlf
*.png binary
*.key binary
*.jar binary
*.ttf binary
release-notes-* merge=union
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
custom: https://junit.org/sponsoring
......@@ -5,7 +5,8 @@ after answering yourself: **"What kind of issue is this?"**_
- ( ) **Question.** This issue tracker is not the place for questions.
If you want to ask how to do something, or to understand why
something isn't working the way you expect it to, use Stack Overflow.
something isn't working the way you expect it to, please first use Stack
Overflow or Gitter.
https://stackoverflow.com/questions/tagged/junit5
- ( ) **Bug report.** Please provide us the version of JUnit 5 you are
......
---
name: Bug report
about: Create a report to help us improve
---
<!-- Please provide us the version of JUnit 5 you are using and, if possible, a failing unit test with your bug report. Don't forget to describe the rationale for this issue (e.g. expected vs. actual behavior). -->
## Steps to reproduce
<!-- Please insert a code snippet or a link to another repo along with instructions how to reproduce the issue here. The example should be minimal, complete and verifiable (see https://stackoverflow.com/help/mcve). -->
## Context
- Used versions (Jupiter/Vintage/Platform):
- Build Tool/IDE:
## Deliverables
- [ ] ...
---
name: Feature request
about: Suggest an idea for this project
---
<!-- Start by telling us what problem you’re trying to solve. Often a solution already exists! Please, don’t send pull requests to implement new features without first getting our support. -->
## Deliverables
- [ ] ...
---
name: Question
about: Please first ask on Gitter or StackOverflow before creating an issue
---
This issue tracker is not the place for questions.
If you want to ask how to do something, or to understand why
something isn't working the way you expect it to, please use Gitter [1] or Stack Overflow [2].
[1] https://gitter.im/junit-team/junit5
[2] https://stackoverflow.com/questions/tagged/junit5
## Overview
Please describe your changes here and list any open questions you might have.
<!-- Please describe your changes here and list any open questions you might have. -->
---
......@@ -11,9 +11,9 @@ I hereby agree to the terms of the [JUnit Contributor License Agreement](https:/
### Definition of Done
- [ ] There are no TODOs left in the code
- [ ] Method [preconditions](http://junit.org/junit5/docs/snapshot/api/org/junit/platform/commons/util/Preconditions.html) are checked and documented in the method's Javadoc
- [ ] [Coding conventions](https://github.com/junit-team/junit5/blob/master/CONTRIBUTING.md#coding-conventions) (e.g. for logging) have been followed
- [ ] Change is covered by [automated tests](https://github.com/junit-team/junit5/blob/master/CONTRIBUTING.md#tests) including corner cases, errors, and exception handling
- [ ] Public API has [Javadoc](https://github.com/junit-team/junit5/blob/master/CONTRIBUTING.md#javadoc) and [`@API` annotations](http://junit.org/junit5/docs/snapshot/api/org/junit/platform/commons/meta/API.html)
- [ ] Change is documented in the [User Guide](http://junit.org/junit5/docs/snapshot/user-guide/) and [Release Notes](http://junit.org/junit5/docs/snapshot/user-guide/#release-notes)
- [ ] Method [preconditions](https://junit.org/junit5/docs/snapshot/api/org.junit.platform.commons/org/junit/platform/commons/util/Preconditions.html) are checked and documented in the method's Javadoc
- [ ] [Coding conventions](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#coding-conventions) (e.g. for logging) have been followed
- [ ] Change is covered by [automated tests](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#tests) including corner cases, errors, and exception handling
- [ ] Public API has [Javadoc](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#javadoc) and [`@API` annotations](https://apiguardian-team.github.io/apiguardian/docs/current/api/org/apiguardian/api/API.html)
- [ ] Change is documented in the [User Guide](https://junit.org/junit5/docs/snapshot/user-guide/) and [Release Notes](https://junit.org/junit5/docs/snapshot/user-guide/#release-notes)
- [ ] All [continuous integration builds](https://github.com/junit-team/junit5#continuous-integration-builds) pass
name: Main build
description: Sets up JDKs and runs Gradle
inputs:
arguments:
required: true
description: Gradle arguments
default: build
runs:
using: "composite"
steps:
- uses: ./.github/actions/setup-test-jdk
- uses: ./.github/actions/run-gradle
with:
arguments: ${{ inputs.arguments }}
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: Test Distribution trace files (${{ github.job }})
path: '**/build/test-results/*/trace.json'
name: Run Gradle
description: Sets up Gradle JDKs and runs Gradle
inputs:
arguments:
required: true
description: Gradle arguments
default: build
runs:
using: "composite"
steps:
- uses: actions/setup-java@v3
id: setup-gradle-jdk
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2
env:
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}
with:
arguments: |
-Porg.gradle.java.installations.auto-download=false
-PenablePredictiveTestSelection=${{ github.event_name == 'pull_request' }}
"-Dscan.value.GitHub job=${{ github.job }}"
javaToolchains
${{ inputs.arguments }}
name: Set up Test JDK
description: Sets up the JDK required to run platform-tooling-support-tests
runs:
using: "composite"
steps:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- shell: bash
run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
version: 2
registries:
gradle-plugin-portal:
type: maven-repository
url: https://plugins.gradle.org/m2
username: dummy # Required by dependabot
password: dummy # Required by dependabot
updates:
- package-ecosystem: "gradle"
directory: "/"
allow:
- dependency-name: "com.gradle*"
registries:
- gradle-plugin-portal
schedule:
interval: "weekly"
open-pull-requests-limit: 10
# Configuration for probot-stale - https://github.com/probot/stale
# Configuration options apply to both Issues and Pull Requests.
# We configure those individually to match our workflow (see `pulls:` and `issues:`)
pulls:
# Number of days of inactivity before a Pull Request becomes stale
daysUntilStale: 60
# Number of days of inactivity before a Pull Request with the stale label is closed.
# Set to false to disable. If disabled, Pull Request still need to be closed manually, but will remain marked as stale.
daysUntilClose: 21
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This pull request has been automatically marked as stale because it has not had recent activity.
Given the limited bandwidth of the team, it will be closed if no further activity occurs.
If you intend to work on this pull request, please reopen the PR.
Thank you for your contributions.
# Comment to post when closing a stale Pull Request.
closeComment: >
This pull request has been automatically closed due to inactivity.
If you are still interested in contributing this, please ensure that
it is rebased against the latest branch (usually `main`), all review
comments have been addressed and the build is passing.
issues:
daysUntilStale: 365
# Number of days of inactivity before an Issue with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 21
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had recent activity.
Given the limited bandwidth of the team, it will be automatically closed if no further
activity occurs.
Thank you for your contribution.
# Comment to post when closing a stale Issue.
closeComment: >
This issue has been automatically closed due to inactivity. If you have a good use case for this
feature, please feel free to reopen the issue.
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
#onlyLabels: []
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels: []
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false
# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false
# Label to use when marking as stale
staleLabel: "status: stale"
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
# Limit to only `issues` or `pulls`
# only: issues
name: "CodeQL"
on:
push:
branches: [main, releases/**]
pull_request:
# The branches below must be a subset of the branches above
branches: [main, releases/**]
schedule:
- cron: '0 19 * * 3'
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['java', 'javascript']
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Build
uses: ./.github/actions/run-gradle
with:
arguments: |
--no-build-cache
-Dscan.tag.CodeQL
allMainClasses
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
name: Cross-Version
on:
push:
branches:
- main
- 'releases/*'
pull_request:
branches:
- '*'
env:
ORG_GRADLE_PROJECT_enableTestDistribution: true
ORG_GRADLE_PROJECT_junitBuildCacheUsername: ${{ secrets.BUILD_CACHE_USERNAME }}
ORG_GRADLE_PROJECT_junitBuildCachePassword: ${{ secrets.BUILD_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
jobs:
openjdk:
strategy:
matrix:
jdk: [19, 20, 21]
name: "OpenJDK ${{ matrix.jdk }}"
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Test JDK
uses: ./.github/actions/setup-test-jdk
- name: 'Set up JDK ${{ matrix.jdk }}'
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.jdk }}
version: latest
- name: 'Prepare JDK${{ matrix.jdk }} env var'
shell: bash
run: echo "JDK${{ matrix.jdk }}=$JAVA_HOME" >> $GITHUB_ENV
- name: Build
uses: ./.github/actions/run-gradle
with:
arguments: |
-PjavaToolchainVersion=${{ matrix.jdk }}
-Dscan.tag.JDK_${{ matrix.jdk }}
build
- name: Upload Test Distribution trace files
uses: actions/upload-artifact@v3
with:
name: "Test Distribution trace files (OpenJDK ${{ matrix.jdk }})"
path: '**/build/test-results/*/trace.json'
name: "Validate Gradle Wrapper"
on: [push, pull_request]
jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
name: Label new issues
on:
issues:
types: ['opened']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: Renato66/auto-label@69b3cbe79438b2079aed0a49474275d3e572cae5 # or v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
labels-synonyms: '{"3rd-party: Eclipse":["Eclipse"],"3rd-party: Gradle":["Gradle"],"3rd-party: IntelliJ IDEA":["IDEA","IntelliJ"],"3rd-party: Maven Surefire":["Failsafe","Maven","Surefire"],"3rd-party: Pioneer":["pioneer"],"component: Groovy":["Groovy"],"component: Test Kit":["Test Kit","TestKit"]}'
labels-not-allowed: '["dependencies","status: blocked","status: declined","status: duplicate","status: in progress","status: invalid","status: stale","status: superseded","status: team discussion","status: waiting-for-feedback","status: waiting-for-interest","status: works-as-designed","up-for-grabs"]'
default-labels: '["status: new"]'
name: CI
on:
push:
branches:
- main
- 'releases/*'
pull_request:
branches:
- '*'
env:
ORG_GRADLE_PROJECT_enableTestDistribution: true
ORG_GRADLE_PROJECT_junitBuildCacheUsername: ${{ secrets.BUILD_CACHE_USERNAME }}
ORG_GRADLE_PROJECT_junitBuildCachePassword: ${{ secrets.BUILD_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
jobs:
Linux:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Graphviz
run: |
sudo apt-get update
sudo apt-get install graphviz
- name: Install GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '17'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
uses: ./.github/actions/main-build
with:
arguments: |
-PenableJaCoCo
build
jacocoRootReport
prepareDocsForUploadToGhPages
- name: Upload to Codecov.io
uses: codecov/codecov-action@v3
Windows:
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Build
uses: ./.github/actions/main-build
macOS:
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Build
uses: ./.github/actions/main-build
publish_artifacts:
name: Publish Snapshot Artifacts
needs: linux
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'junit-team/junit5' && (startsWith(github.ref, 'refs/heads/releases/') || github.ref == 'refs/heads/main')
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Publish
uses: ./.github/actions/run-gradle
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
with:
arguments: publish -x check
update_documentation:
name: Update Snapshot Documentation
concurrency:
group: github-pages
cancel-in-progress: true
needs: Linux
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'junit-team/junit5' && github.ref == 'refs/heads/main'
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Graphviz
run: |
sudo apt-get update
sudo apt-get install graphviz
- name: Restore Gradle cache and display toolchains
uses: ./.github/actions/run-gradle
with:
arguments: --quiet
- name: Upload Documentation
env:
GRGIT_USER: ${{ secrets.GH_TOKEN }}
run: ./src/publishDocumentationSnapshotOnlyIfNecessary.sh
name: Reproducible build
on:
push:
branches:
- main
- 'releases/*'
pull_request:
branches:
- '*'
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
jobs:
check_build_reproducibility:
name: 'Check build reproducibility'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Restore Gradle cache and display toolchains
uses: ./.github/actions/run-gradle
with:
arguments: --quiet
- name: Build and compare checksums
shell: bash
run: |
./src/checkBuildReproducibility.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment