Skip to content

Commit fc7b58a

Browse files
committed
Merge remote-tracking branch 'origin/main' into gk/develocityIntegration
* origin/main: (156 commits) Upgrade Netris SDK version to 1.1.0 since 24.0 (#14365) feature: instance boot group and readiness rules (#13907) dont show unathorized notification for prelogin (#14054) .github: Upgrade docker/login-action to fix ASF Allowlist failure (#14276) virtual router: Add route-maps to BGP peers for Routed Mode (#9964) Add pre-commit hook to validate dependabot.yml (#14107) Add the ASF Allowlist check workflow (#14113) Revert "VMware to KVM: cold (VDDK) and warm (CBT) migration into Ceph/RBD and Linstor, plus importVm adoption of existing RBD root volumes and Linstor root/data volumes (#13656)" VMware to KVM: cold (VDDK) and warm (CBT) migration into Ceph/RBD and Linstor, plus importVm adoption of existing RBD root volumes and Linstor root/data volumes (#13656) engine-schema: upgrade path for 24.0.0 (#14033) xenserver/xcpng: do not bypass secondary storage when copy volumes between pools (#13750) backport: Incremental NAS backup support for KVM (#13074) (#13877) storage: KVM - enable RBD/Ceph volume encryption support (#13556) backup: remove the powered-off precondition for all backup providers (#14094) Nas backup: Fix mount/unmount error handling and timeout in LibvirtRestoreBackupCommandWrapper (#14006) kvm: apply rbd_default_data_pool when creating volumes from templates on RBD (#13361) server: copy template details to vm instance details when import VM (#12793) marvin: use pycryptodome instead of PyCrypt (#13594) Packaging: accept normalized Marvin archive names (#13793) SharedFS: fix NPE when accessing systemvm templates for unsupported hypervisors (#13930) ...
2 parents d64adb4 + 68cff97 commit fc7b58a

742 files changed

Lines changed: 2097073 additions & 2251 deletions

File tree

Some content is hidden

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

‎.asf.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ github:
5858
- GaOrtiga
5959
- bhouse-nexthop
6060
- Dogface2k
61+
- prashanthr2
6162

6263
rulesets:
6364
- name: "Default Branch Protection"
@@ -73,7 +74,7 @@ github:
7374

7475
copilot_code_review:
7576
enabled: true
76-
review_drafts: true
77+
review_drafts: false
7778
review_on_push: true
7879

7980
notifications:

‎.codespellrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
[codespell]
1919
ignore-words = .github/linters/codespell.txt
20-
skip = systemvm/agent/noVNC/*,ui/package.json,ui/package-lock.json,ui/public/js/less.min.js,ui/public/locales/*.json,server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java,test/integration/smoke/test_ssl_offloading.py
20+
skip = systemvm/agent/noVNC/*,ui/package.json,ui/package-lock.json,ui/public/js/less.min.js,ui/public/locales/*.json,server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java,test/integration/smoke/test_ssl_offloading.py,tools/apidoc-versions-diff/*

‎.editorconfig‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
root = true
18+
19+
[*]
20+
charset = utf-8
21+
end_of_line = lf
22+
# indent_size = 4
23+
indent_style = space
24+
insert_final_newline = true
25+
# max_line_length = 120
26+
# tab_width = 4

‎.github/dependabot.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ updates:
4141
interval: "daily"
4242
cooldown:
4343
default-days: 7
44+
- package-ecosystem: "pre-commit"
45+
directory: "/"
46+
open-pull-requests-limit: 2
47+
schedule:
48+
interval: "weekly"
49+
groups:
50+
pre-commit-hooks:
51+
patterns:
52+
- "*"
53+
cooldown:
54+
default-days: 7

‎.github/linters/codespell.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ environmnet
184184
equivalant
185185
erro
186186
erronous
187+
errorprone
188+
everthing
187189
everytime
188190
excute
189191
execept
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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: "ASF Allowlist Check"
19+
"on":
20+
pull_request:
21+
paths: [".github/**"]
22+
push:
23+
branches: [main]
24+
paths: [".github/**"]
25+
permissions:
26+
contents: read
27+
jobs:
28+
asf-allowlist-check:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32+
with:
33+
persist-credentials: false
34+
- uses: apache/infrastructure-actions/allowlist-check@61dcea11f19e2bbe1263f14d72235e8da17d3ad0 # allowlist-check/v1.0.0

‎.github/workflows/docker-cloudstack-simulator.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ on:
2222
branches:
2323
- main
2424
tags:
25-
- 4.*
26-
- 5.*
25+
- '[0-9]+.[0-9]+.*'
2726

2827
permissions:
2928
contents: read
@@ -38,7 +37,7 @@ jobs:
3837
runs-on: ubuntu-24.04
3938
steps:
4039
- name: Login to Docker Registry
41-
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
40+
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
4241
with:
4342
registry: ${{ secrets.DOCKER_REGISTRY }}
4443
username: ${{ secrets.DOCKERHUB_USER }}

‎.github/workflows/rat.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
env:
4444
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
4545
run: |
46-
mvn -P developer,systemvm -Dsimulator -Dnoredist -pl . org.apache.rat:apache-rat-plugin:0.12:check
46+
mvn -P developer,systemvm -Dsimulator -Dnoredist -pl . org.apache.rat:apache-rat-plugin:0.18:check
4747
- name: Rat Report
4848
if: always()
4949
run: |

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

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ jobs:
8383
const emojiMap = { A: '🟢', B: '🟡', C: '🟠', D: '🔴', F: '⛔' };
8484
const emoji = emojiMap[grade] ?? '❓';
8585
const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
86+
const marker = '<!-- coverage-grade-bot -->';
8687
8788
const branchRow = branchPct !== 'N/A'
8889
? `| Branch coverage | **${branchPct}%** |`
8990
: '';
9091
9192
const body = [
93+
marker,
9294
`## ${emoji} Test Coverage Grade: \`${grade}\` — ${label}`,
9395
'',
9496
'| Metric | Value |',
@@ -109,10 +111,26 @@ jobs:
109111
`> [View full Actions run](${runUrl})`,
110112
].filter(l => l !== undefined).join('\n');
111113
112-
await github.rest.issues.createComment({
114+
const { data: comments } = await github.rest.issues.listComments({
113115
owner: context.repo.owner,
114116
repo: context.repo.repo,
115117
issue_number: context.issue.number,
116-
body: body,
117118
});
118-
console.log('Posted coverage grade comment');
119+
const existing = comments.find(c => c.user.login === 'github-actions[bot]' && c.body.includes(marker));
120+
if (existing) {
121+
await github.rest.issues.updateComment({
122+
owner: context.repo.owner,
123+
repo: context.repo.repo,
124+
comment_id: existing.id,
125+
body: body,
126+
});
127+
console.log('Updated existing coverage grade comment');
128+
} else {
129+
await github.rest.issues.createComment({
130+
owner: context.repo.owner,
131+
repo: context.repo.repo,
132+
issue_number: context.issue.number,
133+
body: body,
134+
});
135+
console.log('Posted coverage grade comment');
136+
}

‎.pre-commit-config.yaml‎

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,37 @@ repos:
2626
- id: identity
2727
- id: check-hooks-apply
2828
- repo: https://github.com/thlorenz/doctoc.git
29-
rev: v2.3.0
29+
rev: 59dcae910a6ad4bbe8711275b854e3cd5c30f08b # frozen: v2.5.0
3030
hooks:
3131
- id: doctoc
3232
name: Add TOC for Markdown files
3333
files: ^CONTRIBUTING\.md$|^INSTALL\.md$|^README\.md$
34+
- repo: local
35+
hooks:
36+
- id: check-zip-file-is-not-committed
37+
name: check no zip files are committed
38+
description: Zip files are not allowed in the repository
39+
language: fail
40+
entry: |
41+
Zip files are not allowed in the repository as they are hard to
42+
track and have security implications. Please remove the zip file from the repository.
43+
files: (?i)\.zip$
44+
exclude: ^core/src/test/resources/vhds/test\.vhd\.zip$
3445
- repo: https://github.com/oxipng/oxipng
35-
rev: v10.1.0
46+
rev: 340cd9878d8d8289f09fa101b48a8f5f0b7783f4 # frozen: v10.2.0
3647
hooks:
3748
- id: oxipng
3849
name: run oxipng
3950
description: optimize PNG images with lossless compression
4051
args: ['-o', '4', '--strip', 'safe', '--alpha']
4152
- repo: https://github.com/gitleaks/gitleaks
42-
rev: v8.30.0
53+
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # frozen: v8.30.1
4354
hooks:
4455
- id: gitleaks
4556
name: run gitleaks
4657
description: detect hardcoded secrets
4758
- repo: https://github.com/Lucas-C/pre-commit-hooks
48-
rev: v1.5.6
59+
rev: ad1b27d73581aa16cca06fc4a0761fc563ffe8e8 # frozen: v1.5.6
4960
hooks:
5061
- id: chmod
5162
name: set file permissions
@@ -62,6 +73,16 @@ repos:
6273
- --license-filepath
6374
- .github/workflows/license-templates/LICENSE.txt
6475
- --fuzzy-match-generates-todo
76+
- id: insert-license
77+
name: add license for all conf files
78+
description: automatically adds a license header to all conf files that don't have a license header
79+
files: \.conf$
80+
args:
81+
- --comment-style
82+
- '|#|'
83+
- --license-filepath
84+
- .github/workflows/license-templates/LICENSE.txt
85+
- --fuzzy-match-generates-todo
6586
- id: insert-license
6687
name: add license for all Markdown files
6788
files: \.md$
@@ -122,7 +143,7 @@ repos:
122143
- --fuzzy-match-generates-todo
123144
exclude: ^\.github/workflows/.*\.lock\.yml$
124145
- repo: https://github.com/pre-commit/pre-commit-hooks
125-
rev: v6.0.0
146+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
126147
hooks:
127148
#- id: check-added-large-files
128149
- id: check-case-conflict
@@ -166,18 +187,18 @@ repos:
166187
args: [--markdown-linebreak-ext=md]
167188
exclude: ^services/console-proxy/rdpconsole/src/test/doc/freerdp-debug-log\.txt$
168189
- repo: https://github.com/codespell-project/codespell
169-
rev: v2.4.2
190+
rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3
170191
hooks:
171192
- id: codespell
172193
name: run codespell
173194
description: Check spelling with codespell
174195
- repo: https://github.com/pycqa/flake8
175-
rev: 7.3.0
196+
rev: c48217e1fc006c2dddd14df54e83b67da15de5cd # frozen: 7.3.0
176197
hooks:
177-
- id: flake8
178-
args: [--config, .github/linters/.flake8]
198+
- id: flake8
199+
args: [--config, .github/linters/.flake8]
179200
- repo: https://github.com/igorshubovych/markdownlint-cli
180-
rev: v0.48.0
201+
rev: 5b5dddc4fb0f83c3ea1fc5616fa63e115dce83e0 # frozen: v0.49.1
181202
hooks:
182203
- id: markdownlint
183204
name: run markdownlint
@@ -186,7 +207,7 @@ repos:
186207
types: [markdown]
187208
files: \.md$
188209
- repo: https://github.com/adrienverge/yamllint
189-
rev: v1.38.0
210+
rev: cba56bcde1fdd01c1deb3f945e69764c291a6530 # frozen: v1.38.0
190211
hooks:
191212
- id: yamllint
192213
name: run yamllint
@@ -195,3 +216,10 @@ repos:
195216
types: [yaml]
196217
files: \.ya?ml$
197218
exclude: ^.*k8s-.*\.ya?ml$|^.github/workflows/.*\.lock\.ya?ml$
219+
- repo: https://github.com/python-jsonschema/check-jsonschema
220+
rev: 12e63946db2c5cfcc9030fac21c3883ba88c6ed8 # frozen: 0.38.0
221+
hooks:
222+
- id: check-dependabot
223+
name: validate dependabot config
224+
description: ensures the dependabot config file is valid
225+
files: ^\.github/dependabot\.ya?ml$

0 commit comments

Comments
 (0)