Skip to content

Commit db59583

Browse files
committed
Merge branch 'main' into issue6105
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
2 parents 09c5f7c + 7919684 commit db59583

File tree

3,826 files changed

+129048
-122271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,826 files changed

+129048
-122271
lines changed

.github/actions/common/action.yml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
#
2+
# Copyright (c) 2024 Oracle and/or its affiliates.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
name: 'Common Job Steps'
18+
description: A composite action that abstracts the common steps needed to implement a job
19+
inputs:
20+
native-image:
21+
description: Whether to setup GraalVM native-image
22+
required: false
23+
default: 'false'
24+
maven-cache:
25+
description: Whether to cache the Maven local repository (read-only or read-write)
26+
required: false
27+
default: 'read-only'
28+
build-cache:
29+
description: Whether to cache the Maven build (read-only or read-write)
30+
required: false
31+
default: ''
32+
build-cache-id:
33+
description: Build cache id
34+
required: false
35+
default: 'default'
36+
run:
37+
description: The bash command to run
38+
required: true
39+
artifact-name:
40+
description: Name of the artifact to create
41+
required: false
42+
default: ''
43+
artifact-path:
44+
description: Path of the files to include in the artifact
45+
required: false
46+
default: ''
47+
test-artifact-name:
48+
description: Name of the test artifact to create (excluded on windows), if non empty tests are archived
49+
required: false
50+
default: ''
51+
free-space:
52+
description: Whether to aggressively free disk space on the runner
53+
default: 'false'
54+
runs:
55+
using: "composite"
56+
steps:
57+
- if: ${{ inputs.free-space == 'true' }}
58+
# See https://github.com/actions/runner-images/issues/2840
59+
name: Free disk space
60+
shell: bash
61+
run: |
62+
sudo rm -rf /usr/share/dotnet
63+
sudo rm -rf /usr/local/share/powershell
64+
- if: ${{ runner.os == 'Windows' }}
65+
name: Use GNU tar
66+
shell: cmd
67+
run: |
68+
echo "Adding GNU tar to PATH"
69+
echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"
70+
git config --global core.autocrlf false
71+
git config --global core.eol lf
72+
- name: Set up GraalVM
73+
if: ${{ inputs.native-image == 'true' }}
74+
uses: graalvm/setup-graalvm@v1.2.4
75+
with:
76+
java-version: ${{ env.GRAALVM_VERSION || env.JAVA_VERSION }}
77+
components: ${{ env.GRAALVM_COMPONENTS }}
78+
check-for-updates: 'false'
79+
set-java-home: 'false'
80+
- name: Set up JDK
81+
uses: actions/setup-java@v4.1.0
82+
with:
83+
distribution: ${{ env.JAVA_DISTRO }}
84+
java-version: ${{ env.JAVA_VERSION }}
85+
- name: Cache local Maven repository (read-write)
86+
if: ${{ inputs.maven-cache == 'read-write' }}
87+
uses: actions/cache@v4.0.2
88+
with:
89+
# See https://github.com/actions/toolkit/issues/713
90+
# Include must not match top level directories
91+
path: |
92+
.m2/repository/**/*.*
93+
!.m2/repository/io/helidon/**
94+
enableCrossOsArchive: true
95+
# only hash top-level poms to keep it fast
96+
key: local-maven-${{ hashFiles('*/pom.xml', 'pom.xml') }}
97+
restore-keys: |
98+
local-maven-
99+
- name: Cache local Maven repository (read-only)
100+
if: ${{ inputs.maven-cache == 'read-only' }}
101+
uses: actions/cache/restore@v4.0.2
102+
with:
103+
path: |
104+
.m2/repository/**/*.*
105+
!.m2/repository/io/helidon/**
106+
enableCrossOsArchive: true
107+
key: local-maven-${{ hashFiles('*/pom.xml', 'pom.xml') }}
108+
restore-keys: |
109+
local-maven-
110+
- name: Build cache (read-write)
111+
if: ${{ inputs.build-cache == 'read-write' }}
112+
uses: actions/cache@v4.0.2
113+
with:
114+
path: |
115+
./**/target/**
116+
.m2/repository/io/helidon/**
117+
enableCrossOsArchive: true
118+
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.build-cache-id }}
119+
restore-keys: |
120+
build-cache-${{ github.run_id }}-${{ github.run_attempt }}-
121+
build-cache-${{ github.run_id }}-
122+
- name: Build cache (read-only)
123+
if: ${{ inputs.build-cache == 'read-only' }}
124+
uses: actions/cache/restore@v4.0.2
125+
with:
126+
path: |
127+
./**/target/**
128+
.m2/repository/io/helidon/**
129+
enableCrossOsArchive: true
130+
fail-on-cache-miss: true
131+
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.build-cache-id }}
132+
restore-keys: |
133+
build-cache-${{ github.run_id }}-${{ github.run_attempt }}-
134+
build-cache-${{ github.run_id }}-
135+
- name: Exec
136+
env:
137+
MAVEN_ARGS: |
138+
${{ env.MAVEN_ARGS }}
139+
-Dmaven.repo.local=${{ github.workspace }}/.m2/repository
140+
run: ${{ inputs.run }}
141+
shell: bash
142+
- name: Archive test results
143+
# https://github.com/actions/upload-artifact/issues/240
144+
if: ${{ inputs.test-artifact-name != '' && runner.os != 'Windows' && always() }}
145+
uses: actions/upload-artifact@v4
146+
with:
147+
if-no-files-found: 'ignore'
148+
name: ${{ inputs.test-artifact-name }}
149+
path: |
150+
**/target/surefire-reports/**
151+
**/target/failsafe-reports/**
152+
**/target/it/**/*.log
153+
- name: Archive artifacts
154+
if: ${{ inputs.artifact-name != '' && inputs.artifact-path != '' && always() }}
155+
uses: actions/upload-artifact@v4
156+
with:
157+
if-no-files-found: 'ignore'
158+
name: ${{ inputs.artifact-name }}
159+
path: ${{ inputs.artifact-path }}

.github/workflows/assign-issue-to-project.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/backport-issues.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#
2+
# Copyright (c) 2022, 2024 Oracle and/or its affiliates.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: Create Backport Issues
17+
18+
on:
19+
workflow_dispatch:
20+
inputs:
21+
issue:
22+
description: 'Issue number'
23+
required: true
24+
version:
25+
description: 'Helidon version this issue was reported for'
26+
required: true
27+
type: choice
28+
options:
29+
- 2.x
30+
- 3.x
31+
- 4.x
32+
default: '2.x'
33+
target-2:
34+
type: boolean
35+
description: 'Port to 2.x?'
36+
default: false
37+
target-3:
38+
type: boolean
39+
description: 'Port to 3.x?'
40+
default: true
41+
target-4:
42+
type: boolean
43+
description: 'Port to 4.x?'
44+
default: true
45+
46+
env:
47+
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
48+
49+
50+
jobs:
51+
Issue-Backport:
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Check out repository code
55+
uses: actions/checkout@v4
56+
- run: etc/scripts/backport-issues.sh $GITHUB_REPOSITORY ${{ github.event.inputs.issue }} ${{ github.event.inputs.version }} ${{ github.event.inputs.target-2 }} ${{ github.event.inputs.target-3 }} ${{ github.event.inputs.target-4 }}

.github/workflows/create-backport-issues.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)