Skip to content

Commit ad6ffca

Browse files
Merge branch 'apache:main' into Backroll
2 parents 4e6d689 + 33cfede commit ad6ffca

File tree

2,307 files changed

+150038
-29184
lines changed

Some content is hidden

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

2,307 files changed

+150038
-29184
lines changed

.asf.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ github:
5353
- acs-robot
5454
- gpordeus
5555
- hsato03
56-
- bernardodemarco
57-
- abh1sar
5856
- FelipeM525
5957
- lucas-a-martins
6058
- nicoschmdt
59+
- abh1sar
60+
- rosi-shapeblue
61+
- sudo87
6162

6263
protected_branches: ~
6364

.github/linters/.markdown-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ MD046: false
8686

8787
# MD052/reference-links-images Reference links and images should use a label that is defined
8888
MD052: false
89+
90+
# MD059/descriptive-link-text Link text should be descriptive
91+
MD059: false

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434

35-
- name: Set up JDK 11
35+
- name: Set up JDK 17
3636
uses: actions/setup-java@v4
3737
with:
38-
java-version: '11'
39-
distribution: 'adopt'
40-
architecture: x64
41-
cache: maven
38+
distribution: 'temurin'
39+
java-version: '17'
40+
cache: 'maven'
4241

4342
- name: Set up Python
4443
uses: actions/setup-python@v5

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ jobs:
8989
smoke/test_nested_virtualization
9090
smoke/test_set_sourcenat
9191
smoke/test_webhook_lifecycle
92-
smoke/test_purge_expunged_vms",
92+
smoke/test_purge_expunged_vms
93+
smoke/test_extension_lifecycle
94+
smoke/test_extension_custom_action_lifecycle
95+
smoke/test_extension_custom",
9396
"smoke/test_network
9497
smoke/test_network_acl
9598
smoke/test_network_ipv6
@@ -137,6 +140,7 @@ jobs:
137140
smoke/test_vm_deployment_planner
138141
smoke/test_vm_strict_host_tags
139142
smoke/test_vm_schedule
143+
smoke/test_deploy_vgpu_enabled_vm
140144
smoke/test_vm_life_cycle
141145
smoke/test_vm_lifecycle_unmanage_import
142146
smoke/test_vm_snapshot_kvm
@@ -164,7 +168,8 @@ jobs:
164168
component/test_cpu_limits
165169
component/test_cpu_max_limits
166170
component/test_cpu_project_limits
167-
component/test_deploy_vm_userdata_multi_nic",
171+
component/test_deploy_vm_userdata_multi_nic
172+
component/test_deploy_vm_lease",
168173
"component/test_egress_fw_rules
169174
component/test_invalid_gw_nm
170175
component/test_ip_reservation",
@@ -215,13 +220,12 @@ jobs:
215220
with:
216221
fetch-depth: 0
217222

218-
- name: Set up JDK
223+
- name: Set up JDK 17
219224
uses: actions/setup-java@v4
220225
with:
221-
java-version: '11'
222-
distribution: 'adopt'
223-
architecture: x64
224-
cache: maven
226+
distribution: 'temurin'
227+
java-version: '17'
228+
cache: 'maven'
225229

226230
- name: Set up Python
227231
uses: actions/setup-python@v5
@@ -236,7 +240,7 @@ jobs:
236240
237241
- name: Install Python dependencies
238242
run: |
239-
python3 -m pip install --user --upgrade urllib3 lxml paramiko nose texttable ipmisim pyopenssl pycrypto mock flask netaddr pylint pycodestyle six astroid
243+
python3 -m pip install --user --upgrade urllib3 lxml paramiko nose texttable ipmisim pyopenssl pycryptodome mock flask netaddr pylint pycodestyle six astroid pynose
240244
241245
- name: Install jacoco dependencies
242246
run: |
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: CodeQL Analysis
19+
on:
20+
push:
21+
branches: [main]
22+
pull_request:
23+
branches: [main]
24+
permissions:
25+
actions: read
26+
contents: read
27+
security-events: write
28+
jobs:
29+
codeql:
30+
name: CodeQL
31+
runs-on: ubuntu-latest
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ["actions"]
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v3
41+
with:
42+
languages: ${{ matrix.language }}
43+
- name: Autobuild
44+
uses: github/codeql-action/autobuild@v3
45+
- name: Perform CodeQL Analysis
46+
uses: github/codeql-action/analyze@v3
47+
with:
48+
category: "Security"

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: Lint
18+
name: pre-commit
1919

2020
on: [pull_request]
2121

.github/workflows/main-sonar-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
uses: actions/cache@v4
5555
with:
5656
path: ~/.m2/repository
57-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
57+
key: ${{ runner.os }}-m2-${{ hashFiles('pom.xml', '*/pom.xml', '*/*/pom.xml', '*/*/*/pom.xml') }}
5858
restore-keys: |
5959
${{ runner.os }}-m2
6060

.github/workflows/sonar-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: actions/cache@v4
5757
with:
5858
path: ~/.m2/repository
59-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
59+
key: ${{ runner.os }}-m2-${{ hashFiles('pom.xml', '*/pom.xml', '*/*/pom.xml', '*/*/*/pom.xml') }}
6060
restore-keys: |
6161
${{ runner.os }}-m2
6262

.github/workflows/ui.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
npm run test:unit
5757
5858
- uses: codecov/codecov-action@v4
59+
if: github.repository == 'apache/cloudstack'
5960
with:
6061
working-directory: ui
6162
files: ./coverage/lcov.info

.pre-commit-config.yaml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,31 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
---
18-
default_stages: [commit, push]
18+
default_stages: [pre-commit, pre-push]
1919
default_language_version:
2020
# force all unspecified Python hooks to run python3
2121
python: python3
22-
minimum_pre_commit_version: "2.17.0"
22+
minimum_pre_commit_version: "3.2.0"
2323
repos:
2424
- repo: meta
2525
hooks:
2626
- id: identity
2727
- id: check-hooks-apply
28+
- repo: https://github.com/gitleaks/gitleaks
29+
rev: v8.27.2
30+
hooks:
31+
- id: gitleaks
32+
name: run gitleaks
33+
description: detect hardcoded secrets
2834
- repo: https://github.com/pre-commit/pre-commit-hooks
29-
rev: v4.6.0
35+
rev: v5.0.0
3036
hooks:
3137
#- id: check-added-large-files
3238
- id: check-case-conflict
3339
#- id: check-executables-have-shebangs
3440
- id: check-merge-conflict
41+
- id: check-shebang-scripts-are-executable
42+
files: \.sh$
3543
- id: check-symlinks
3644
- id: check-vcs-permalinks
3745
#- id: check-yaml
@@ -42,6 +50,7 @@ repos:
4250
exclude: >
4351
(?x)
4452
^scripts/vm/systemvm/id_rsa\.cloud$|
53+
^server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java$|
4554
^server/src/test/java/com/cloud/keystore/KeystoreTest\.java$|
4655
^server/src/test/resources/certs/dsa_self_signed\.key$|
4756
^server/src/test/resources/certs/non_root\.key$|
@@ -51,15 +60,16 @@ repos:
5160
^server/src/test/resources/certs/rsa_self_signed\.key$|
5261
^services/console-proxy/rdpconsole/src/test/doc/rdp-key\.pem$|
5362
^systemvm/agent/certs/localhost\.key$|
54-
^systemvm/agent/certs/realhostip\.key$
63+
^systemvm/agent/certs/realhostip\.key$|
64+
^test/integration/smoke/test_ssl_offloading.py$
5565
- id: end-of-file-fixer
5666
exclude: \.vhd$
5767
- id: fix-byte-order-marker
5868
- id: forbid-submodules
5969
- id: mixed-line-ending
6070
exclude: \.cs$
6171
- id: trailing-whitespace
62-
files: \.(bat|cfg|cs|css|gitignore|header|in|install|java|md|properties|py|rb|sh|sql|txt|vue|xml|xsl|yaml|yml)$
72+
files: \.(bat|cfg|cs|css|gitignore|header|in|install|java|md|properties|py|rb|rc|sh|sql|te|template|txt|ucls|vue|xml|xsl|yaml|yml)$|^cloud-cli/bindir/cloud-tool$|^debian/changelog$
6373
args: [--markdown-linebreak-ext=md]
6474
exclude: ^services/console-proxy/rdpconsole/src/test/doc/freerdp-debug-log\.txt$
6575
- repo: https://github.com/codespell-project/codespell
@@ -69,25 +79,14 @@ repos:
6979
name: run codespell
7080
description: Check spelling with codespell
7181
args: [--ignore-words=.github/linters/codespell.txt]
72-
exclude: ^ui/package\.json$|^ui/package-lock\.json$|^ui/public/js/less\.min\.js$|^ui/public/locales/.*[^n].*\.json$
82+
exclude: ^systemvm/agent/noVNC/|^ui/package\.json$|^ui/package-lock\.json$|^ui/public/js/less\.min\.js$|^ui/public/locales/.*[^n].*\.json$|^server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java$|^test/integration/smoke/test_ssl_offloading.py$
7383
- repo: https://github.com/pycqa/flake8
7484
rev: 7.0.0
7585
hooks:
7686
- id: flake8
7787
args: [--config, .github/linters/.flake8]
78-
exclude: >
79-
(?x)
80-
^agent/bindir/cloud-setup-agent\.in$|
81-
^client/bindir/cloud-update-xenserver-licenses\.in$|
82-
^cloud-cli/bindir/cloud-tool$|
83-
^python/bindir/cloud-grab-dependent-library-versions$|
84-
^python/bindir/cloud-setup-baremetal$|
85-
^scripts/vm/hypervisor/xenserver/storagePlugin$|
86-
^scripts/vm/hypervisor/xenserver/vmopspremium$|
87-
^setup/bindir/cloud-setup-encryption\.in$|
88-
^venv/.*$
8988
- repo: https://github.com/igorshubovych/markdownlint-cli
90-
rev: v0.43.0
89+
rev: v0.45.0
9190
hooks:
9291
- id: markdownlint
9392
name: run markdownlint

0 commit comments

Comments
 (0)