Skip to content

Commit 1efc967

Browse files
committed
Merge remote-tracking branch 'apache/main' into fix-autoscalewinvm
2 parents fa30c81 + d60f455 commit 1efc967

File tree

601 files changed

+10676
-3286
lines changed

Some content is hidden

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

601 files changed

+10676
-3286
lines changed

.asf.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ github:
6363
protected_branches: ~
6464

6565
notifications:
66-
67-
66+
67+
6868
pullrequests: [email protected]
69-
discussions: [email protected]
69+
discussions: [email protected]

.github/linters/.yamllint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
extends: relaxed
19+
20+
rules:
21+
line-length:
22+
max: 400 # Very forgiving for GitHub Actions and infrastructure files
23+
indentation: disable # Disable indentation checking for existing files
24+
comments: disable # Disable comment formatting checks
25+
brackets: disable # Disable bracket spacing checks
26+
colons:
27+
max-spaces-after: -1 # Allow any number of spaces after colon
28+
max-spaces-before: 0
29+
document-start: disable # Many files don't have ---
30+
truthy:
31+
allowed-values: ['true', 'false', 'on', 'off', 'yes', 'no']

.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: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,12 @@ jobs:
220220
with:
221221
fetch-depth: 0
222222

223-
- name: Set up JDK
223+
- name: Set up JDK 17
224224
uses: actions/setup-java@v4
225225
with:
226-
java-version: '11'
227-
distribution: 'adopt'
228-
architecture: x64
229-
cache: maven
226+
distribution: 'temurin'
227+
java-version: '17'
228+
cache: 'maven'
230229

231230
- name: Set up Python
232231
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

.pre-commit-config.yaml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ repos:
3838
- id: check-case-conflict
3939
#- id: check-executables-have-shebangs
4040
- id: check-merge-conflict
41+
- id: check-shebang-scripts-are-executable
42+
files: \.sh$
4143
- id: check-symlinks
4244
- id: check-vcs-permalinks
4345
#- id: check-yaml
@@ -48,6 +50,7 @@ repos:
4850
exclude: >
4951
(?x)
5052
^scripts/vm/systemvm/id_rsa\.cloud$|
53+
^server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java$|
5154
^server/src/test/java/com/cloud/keystore/KeystoreTest\.java$|
5255
^server/src/test/resources/certs/dsa_self_signed\.key$|
5356
^server/src/test/resources/certs/non_root\.key$|
@@ -57,15 +60,16 @@ repos:
5760
^server/src/test/resources/certs/rsa_self_signed\.key$|
5861
^services/console-proxy/rdpconsole/src/test/doc/rdp-key\.pem$|
5962
^systemvm/agent/certs/localhost\.key$|
60-
^systemvm/agent/certs/realhostip\.key$
63+
^systemvm/agent/certs/realhostip\.key$|
64+
^test/integration/smoke/test_ssl_offloading.py$
6165
- id: end-of-file-fixer
6266
exclude: \.vhd$
6367
- id: fix-byte-order-marker
6468
- id: forbid-submodules
6569
- id: mixed-line-ending
6670
exclude: \.cs$
6771
- id: trailing-whitespace
68-
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$
6973
args: [--markdown-linebreak-ext=md]
7074
exclude: ^services/console-proxy/rdpconsole/src/test/doc/freerdp-debug-log\.txt$
7175
- repo: https://github.com/codespell-project/codespell
@@ -75,23 +79,12 @@ repos:
7579
name: run codespell
7680
description: Check spelling with codespell
7781
args: [--ignore-words=.github/linters/codespell.txt]
78-
exclude: ^systemvm/agent/noVNC/|^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$
7983
- repo: https://github.com/pycqa/flake8
8084
rev: 7.0.0
8185
hooks:
8286
- id: flake8
8387
args: [--config, .github/linters/.flake8]
84-
exclude: >
85-
(?x)
86-
^agent/bindir/cloud-setup-agent\.in$|
87-
^client/bindir/cloud-update-xenserver-licenses\.in$|
88-
^cloud-cli/bindir/cloud-tool$|
89-
^python/bindir/cloud-grab-dependent-library-versions$|
90-
^python/bindir/cloud-setup-baremetal$|
91-
^scripts/vm/hypervisor/xenserver/storagePlugin$|
92-
^scripts/vm/hypervisor/xenserver/vmopspremium$|
93-
^setup/bindir/cloud-setup-encryption\.in$|
94-
^venv/.*$
9588
- repo: https://github.com/igorshubovych/markdownlint-cli
9689
rev: v0.45.0
9790
hooks:
@@ -101,3 +94,13 @@ repos:
10194
args: [--config=.github/linters/.markdown-lint.yml]
10295
types: [markdown]
10396
files: \.(md|mdown|markdown)$
97+
- repo: https://github.com/adrienverge/yamllint
98+
rev: v1.37.1
99+
hooks:
100+
- id: yamllint
101+
name: run yamllint
102+
description: check YAML files with yamllint
103+
args: [--config-file=.github/linters/.yamllint.yml]
104+
types: [yaml]
105+
files: \.ya?ml$
106+
exclude: ^.*k8s-.*\.ya?ml$

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
-------------

INSTALL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Apache CloudStack Installation basics
22

33
This document describes how to develop, build, package and install Apache
4-
CloudStack. For more information please refer to the official [documentation](http://docs.cloudstack.apache.org)
4+
CloudStack. For more information please refer to the official [documentation](https://docs.cloudstack.apache.org)
55
or the developer [wiki](https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home).
66

77
Apache CloudStack developers use various platforms for development, this guide
@@ -41,7 +41,7 @@ Start the MySQL service:
4141

4242
### Using jenv and/or pyenv for Version Management
4343

44-
CloudStack is built using Java and Python. To make selection of these tools versions more consistent and ease installation for developers, optional support for [jenv](http://www.jenv.be/) and [pyenv](https://github.com/yyuu/pyenv) with [virtualenv]|(https://github.com/yyuu/pyenv-virtualenv) is provided. jenv installation instructions are available here and pyenv installation instructions are available here. For users of [oh-my-zsh](http://ohmyz.sh/) there is a pyenv plugin available to trigger configuration of pyenv in a shell session.
44+
CloudStack is built using Java and Python. To make selection of these tools versions more consistent and ease installation for developers, optional support for [jenv](http://www.jenv.be/) and [pyenv](https://github.com/yyuu/pyenv) with [virtualenv]|(https://github.com/yyuu/pyenv-virtualenv) is provided. jenv installation instructions are available here and pyenv installation instructions are available here. For users of [oh-my-zsh](https://ohmyz.sh/) there is a pyenv plugin available to trigger configuration of pyenv in a shell session.
4545

4646
Following installation, execute the following commands to configure jenv and pyenv for use with CloudStack development:
4747

@@ -171,7 +171,7 @@ All the rpm packages will be created in `dist/rpmbuild/RPMS/x86_64` directory.
171171

172172
## Notes
173173

174-
If you will be using Xen as your hypervisor, please download [vhd-util](http://download.cloudstack.org/tools/vhd-util)
174+
If you will be using Xen as your hypervisor, please download [vhd-util](https://download.cloudstack.org/tools/vhd-util)
175175

176176
If management server is installed on RHEL/CentOS, then copy vhd-util into:
177177

0 commit comments

Comments
 (0)