Skip to content

Commit 2972ea2

Browse files
authored
Merge branch 'main' into main
2 parents e74dd6d + a466750 commit 2972ea2

File tree

1,876 files changed

+103561
-20990
lines changed

Some content is hidden

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

1,876 files changed

+103561
-20990
lines changed

.asf.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ github:
5353
- acs-robot
5454
- gpordeus
5555
- hsato03
56-
- bernardodemarco
5756
- FelipeM525
5857
- lucas-a-martins
5958
- nicoschmdt
6059
- abh1sar
61-
- sudo87
6260
- rosi-shapeblue
61+
- sudo87
6362

6463
protected_branches: ~
6564

.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/linters/codespell.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,12 @@ encryted
183183
enebled
184184
enmpty
185185
entires
186-
enviornment
187186
environmnet
188187
equivalant
189188
erro
190189
erronous
191190
everthing
192191
everytime
193-
excetion
194-
excption
195192
excute
196193
execept
197194
execption

.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: 9 additions & 6 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
@@ -216,13 +220,12 @@ jobs:
216220
with:
217221
fetch-depth: 0
218222

219-
- name: Set up JDK
223+
- name: Set up JDK 17
220224
uses: actions/setup-java@v4
221225
with:
222-
java-version: '11'
223-
distribution: 'adopt'
224-
architecture: x64
225-
cache: maven
226+
distribution: 'temurin'
227+
java-version: '17'
228+
cache: 'maven'
226229

227230
- name: Set up Python
228231
uses: actions/setup-python@v5
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/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

CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,12 +644,12 @@ Bug ID | Description
644644
Version 4.2.1
645645
-------------
646646

647-
Release notes contain the list of [bug fixes](http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.1/html/Release_Notes/version-4.2.html#issues-fixed-4.2.1)
647+
Release notes contain the list of [bug fixes](https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.1/html/Release_Notes/version-4.2.html#issues-fixed-4.2.1)
648648

649649
Version 4.2.0
650650
-------------
651651
Released on October 1 2013.
652-
Release notes contain the list of [bug fixes](http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Release_Notes/index.html)
652+
Release notes contain the list of [bug fixes](https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Release_Notes/index.html)
653653

654654
Version 4.1.0
655655
-------------

0 commit comments

Comments
 (0)