Skip to content

Commit 11e24a4

Browse files
chore(release): merge branch 'release/1.0.2'
2 parents 78c3971 + 2b194bf commit 11e24a4

File tree

244 files changed

+11171
-8756
lines changed

Some content is hidden

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

244 files changed

+11171
-8756
lines changed

.github/auto_assign.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ addAssignees: false
88
reviewers:
99
- blaisedias
1010
- chriswldenyer
11-
- cjones1024
12-
- gila
1311
- jonathan-teh
1412
- paulyoong
1513
- tiagolobocastro
1614
- mtzaurus
15+
- dsavitskiy
1716

1817
# A list of keywords to be skipped the process that add reviewers if pull requests include it
1918
skipKeywords:

.github/workflows/pr-commitlint.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Lint Commit Messages
22
on:
33
pull_request:
44
types: ['opened', 'edited', 'reopened', 'synchronize']
5+
push:
6+
branches:
7+
- staging
58

69
jobs:
710
commitlint:
@@ -14,6 +17,9 @@ jobs:
1417
run: npm install @commitlint/config-conventional @commitlint/cli
1518
- name: Lint Commits
1619
run: |
17-
first_commit=$(curl ${{ github.event.pull_request.commits_url }} 2>/dev/null | jq '.[0].sha' | sed 's/"//g')
18-
last_commit=HEAD^2 # don't lint the merge commit
19-
npx commitlint --from $first_commit~1 --to $last_commit -V
20+
# Only run for PR's and simply succeed the bors staging branch
21+
if [ ! ${{ github.ref }} = "refs/heads/staging" ]; then
22+
first_commit=${{ github.event.pull_request.base.sha }}
23+
last_commit=${{ github.event.pull_request.head.sha }}
24+
npx commitlint --from $first_commit --to $last_commit -V
25+
fi

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,21 @@ artifacts/
1818
**/__pycache__
1919
/chart/charts/
2020
ansible-hosts
21+
/test/python/common_pb2.py
22+
/test/python/common_pb2_grpc.py
2123
/test/python/csi_pb2.py
2224
/test/python/csi_pb2_grpc.py
2325
/test/python/mayastor_pb2.py
2426
/test/python/mayastor_pb2_grpc.py
27+
/test/python/pool_pb2.py
28+
/test/python/pool_pb2_grpc.py
29+
/test/python/bdev_pb2.py
30+
/test/python/bdev_pb2_grpc.py
31+
/test/python/host_pb2.py
32+
/test/python/host_pb2_grpc.py
33+
/test/python/nexus_pb2.py
34+
/test/python/nexus_pb2_grpc.py
35+
/test/python/replica_pb2.py
36+
/test/python/replica_pb2_grpc.py
2537
/test/python/venv/*
2638
/package.json

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[submodule "rpc/mayastor-api"]
22
path = rpc/mayastor-api
33
url = https://github.com/openebs/mayastor-api
4+
[submodule "spdk-rs"]
5+
path = spdk-rs
6+
url = https://github.com/mayadata-io/spdk-rs
7+
[submodule "utils/mayastor-dependencies"]
8+
path = utils/mayastor-dependencies
9+
url = https://github.com/openebs/mayastor-dependencies.git

.pre-commit-config.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@ repos:
77
rev: v4.0.1
88
hooks:
99
- id: trailing-whitespace
10+
exclude_types: [diff]
1011
- repo: local
1112
hooks:
1213
- id: rust-style
1314
name: Rust style
14-
description: Run cargo fmt on files included in the commit. rustfmt should be installed before-hand.
15-
entry: cargo fmt --all -- --check
15+
description: Check Rust code style on files included in the commit.
16+
entry: ./scripts/rust-style.sh
1617
pass_filenames: true
1718
types: [file, rust]
1819
language: system
1920
- id: rust-lint
2021
name: Rust lint
21-
description: Run cargo clippy on files included in the commit. clippy should be installed before-hand.
22-
entry: cargo clippy --all --all-targets -- -D warnings
22+
description: Run Rust linter on files included in the commit.
23+
entry: ./scripts/rust-linter.sh
2324
pass_filenames: false
2425
types: [file, rust]
2526
language: system
@@ -44,3 +45,9 @@ repos:
4445
pass_filenames: true
4546
types: [file, python]
4647
language: system
48+
- id: helm-deploy
49+
name: Helm Generator
50+
description: Ensures the deploy is updated with the helm chart
51+
entry: ./scripts/check-deploy-yamls.sh
52+
pass_filenames: false
53+
language: system

Cargo.lock

Lines changed: 53 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ members = [
1111
"csi",
1212
"devinfo",
1313
"jsonrpc",
14+
"libnvme-rs",
1415
"mayastor",
1516
"mbus-api",
1617
"nvmeadm",
1718
"rpc",
1819
"sysfs",
1920
"composer",
21+
"spdk-rs",
22+
"utils/mayastor-dependencies/version-info",
2023
]

Jenkinsfile

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,20 @@ pipeline {
183183
checkout([
184184
$class: 'GitSCM',
185185
branches: scm.branches,
186-
extensions: scm.extensions.findAll{!(it instanceof jenkins.plugins.git.GitSCMSourceDefaults)} + [
187-
[$class: 'CloneOption', noTags: false, reference: '', shallow: false],
188-
],
186+
extensions: scm.extensions.findAll {
187+
!(it instanceof jenkins.plugins.git.GitSCMSourceDefaults)
188+
} + [[
189+
$class: 'CloneOption',
190+
noTags: false,
191+
reference: '', shallow: false
192+
], [
193+
$class: 'SubmoduleOption',
194+
disableSubmodules: false,
195+
parentCredentials: true,
196+
recursiveSubmodules: true,
197+
reference: '',
198+
trackingSubmodules: false
199+
]],
189200
userRemoteConfigs: scm.userRemoteConfigs
190201
])
191202
stash name: 'source', useDefaultExcludes: false
@@ -206,17 +217,17 @@ pipeline {
206217
not {
207218
anyOf {
208219
branch 'master'
209-
branch 'release/*'
210220
expression { run_linter == false }
211221
}
212222
}
213223
}
214224
steps {
215225
cleanWs()
216226
unstash 'source'
217-
sh 'nix-shell --run "cargo fmt --all -- --check" ci.nix'
218-
sh 'nix-shell --run "cargo clippy --all-targets -- -D warnings" ci.nix'
227+
sh 'nix-shell --run "./scripts/rust-style.sh" ci.nix'
228+
sh 'nix-shell --run "./scripts/rust-linter.sh" ci.nix'
219229
sh 'nix-shell --run "./scripts/js-check.sh" ci.nix'
230+
sh 'nix-shell --run "./scripts/check-deploy-yamls.sh" ci.nix'
220231
}
221232
}
222233
stage('test') {
@@ -225,7 +236,6 @@ pipeline {
225236
not {
226237
anyOf {
227238
branch 'master'
228-
branch 'release/*'
229239
}
230240
}
231241
}
@@ -288,7 +298,21 @@ pipeline {
288298
checkout([
289299
$class: 'GitSCM',
290300
branches: scm.branches,
291-
extensions: scm.extensions.findAll{!(it instanceof jenkins.plugins.git.GitSCMSourceDefaults)} + [[$class: 'CloneOption', noTags: false, reference: '', shallow: false]],
301+
extensions: scm.extensions.findAll {
302+
!(it instanceof jenkins.plugins.git.GitSCMSourceDefaults)
303+
} + [[
304+
$class: 'CloneOption',
305+
noTags: false,
306+
reference: '',
307+
shallow: false
308+
], [
309+
$class: 'SubmoduleOption',
310+
disableSubmodules: false,
311+
parentCredentials: true,
312+
recursiveSubmodules: true,
313+
reference: '',
314+
trackingSubmodules: false
315+
]],
292316
userRemoteConfigs: scm.userRemoteConfigs
293317
])
294318
}
@@ -307,6 +331,9 @@ pipeline {
307331
stage('run tests') {
308332
steps {
309333
sh 'printenv'
334+
// Cleanup any existing containers.
335+
// They could be lingering if there were previous test failures.
336+
sh 'docker system prune -f'
310337
sh 'nix-shell --run "./scripts/pytest-tests.sh" ci.nix'
311338
}
312339
}
@@ -551,11 +578,16 @@ pipeline {
551578
anyOf {
552579
branch 'master'
553580
branch 'release/*'
581+
branch 'release-*'
554582
branch 'develop'
555583
}
556584
}
557585
}
558586
steps {
587+
// Clean the workspace and unstash the source to ensure we build and push the correct images.
588+
cleanWs()
589+
unstash 'source'
590+
559591
withCredentials([usernamePassword(credentialsId: 'dockerhub', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
560592
sh 'echo $PASSWORD | docker login -u $USERNAME --password-stdin'
561593
}

bors.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
status = [ "continuous-integration/jenkins/branch" ]
2+
pr_status = [ "commitlint" ]
23
timeout_sec = 10000
34
required_approvals = 2
45
delete_merged_branches = true

chart/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: etcd
3-
repository: https://charts.bitnami.com/bitnami
3+
repository: https://raw.githubusercontent.com/bitnami/charts/eb5f9a9513d987b519f0ecd732e7031241c50328/bitnami
44
version: 6.2.3
5-
digest: sha256:55e97f18b7a20c3e6b642eaaf47bff88d498b86cae7f7a27c4325115d98b1c92
6-
generated: "2021-05-13T18:47:32.999686768+01:00"
5+
digest: sha256:90678c4c1f7298999b2122aac56ca7dbed6861c52448ce5a3ced2b25965cfeba
6+
generated: "2022-06-07T19:27:21.288544846+01:00"

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version: 0.0.1
66
# appVersion: "latest"
77
dependencies:
88
- name: etcd
9-
repository: https://charts.bitnami.com/bitnami
9+
repository: https://raw.githubusercontent.com/bitnami/charts/eb5f9a9513d987b519f0ecd732e7031241c50328/bitnami
1010
tags:
1111
- bitnami-etcd
1212
version: 6.2.3

0 commit comments

Comments
 (0)