Skip to content

Commit da3bd6c

Browse files
Merge pull request #1158 from percona/release-2.10.0
Release 2.10.0
2 parents 3ca2992 + 92dfac3 commit da3bd6c

File tree

1,947 files changed

+499881
-137089
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,947 files changed

+499881
-137089
lines changed

.github/pr-badge.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
label: "JIRA"
2+
url: "https://jira.percona.com/browse/$issuePrefix"
3+
message: "$issuePrefix"
4+
color: "green"
5+
when: "$issuePrefix"

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on:
3232
paths-ignore:
3333
- "e2e-tests/**"
3434
- "packaging/**"
35-
- "version/**"
35+
- "version/**"
3636

3737
jobs:
3838
test:
@@ -45,7 +45,7 @@ jobs:
4545
test: [logical, physical, incremental, external]
4646
env:
4747
PBM_BRANCH: ${{ github.event.inputs.pbm_branch || github.ref_name }}
48-
GO_VER: ${{ github.event.inputs.go_ver || '1.22-bullseye' }}
48+
GO_VER: ${{ github.event.inputs.go_ver || '1.23-bullseye' }}
4949
PR_NUMBER: ${{ github.event.number|| github.event.inputs.pr_ver }}
5050
MAKE_TARGET: 'build-cover'
5151
steps:

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-go@v4
2020
with:
21-
go-version: "1.22"
21+
go-version: "1.23"
2222
- name: test
2323
run: go test -v ./... -covermode=atomic -coverprofile=cover.out
2424

.github/workflows/reviewdog.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ jobs:
5151
- uses: actions/checkout@v4
5252
- uses: actions/setup-go@v4
5353
with:
54-
go-version: "1.22"
54+
go-version: "1.23"
5555
- name: golangci-lint
5656
uses: reviewdog/action-golangci-lint@v2
5757
with:
5858
reporter: github-pr-review
5959
level: error
60-
golangci_lint_version: v1.64.8
6160

6261
gofmt:
6362
name: runner / gofmt
@@ -66,7 +65,7 @@ jobs:
6665
- uses: actions/checkout@v4
6766
- uses: actions/setup-go@v4
6867
with:
69-
go-version: "1.22"
68+
go-version: "1.23"
7069
- run: go install golang.org/x/tools/cmd/goimports@latest
7170
- run: go install mvdan.cc/gofumpt@latest
7271
- run: goimports -w -local "github.com/percona" $(find . -not -path "*/vendor/*" -name "*.go")
@@ -82,7 +81,7 @@ jobs:
8281
- uses: actions/checkout@v4
8382
- uses: actions/setup-go@v4
8483
with:
85-
go-version: "1.22"
84+
go-version: "1.23"
8685
- run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
8786
- run: shfmt -f . | grep -v 'vendor' | xargs shfmt -w -s
8887
- name: suggester / shfmt

.github/workflows/trivy.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@ jobs:
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
14-
15-
- name: Run Trivy vulnerability scanner in repo mode
16-
uses: aquasecurity/trivy-action@master
1714
with:
18-
scan-type: "fs"
19-
ignore-unfixed: true
20-
format: "sarif"
21-
output: "trivy-results.sarif"
22-
severity: "CRITICAL,HIGH"
15+
ref: ${{ github.event.pull_request.head.sha }}
2316

24-
- name: Upload Trivy scan results to GitHub Security tab
25-
uses: github/codeql-action/upload-sarif@v2
26-
with:
27-
sarif_file: "trivy-results.sarif"
17+
- name: Download latest trivy
18+
run: |
19+
mkdir -p ${{ github.workspace }}/trivy
20+
LATEST_TRIVY_VERSION=$(curl --retry 5 --retry-connrefused --retry-delay 5 --fail -s https://api.github.com/repos/aquasecurity/trivy/releases/latest | jq -r .tag_name)
21+
TRIVY_VERSION_STRIPPED=$(echo "$LATEST_TRIVY_VERSION" | sed 's/^v//')
22+
wget --tries=5 --retry-connrefused --waitretry=5 -O ${{ github.workspace }}/trivy/trivy.tar.gz \
23+
https://github.com/aquasecurity/trivy/releases/download/$LATEST_TRIVY_VERSION/trivy_${TRIVY_VERSION_STRIPPED}_Linux-64bit.tar.gz && break || sleep 5
24+
tar -xzf ${{ github.workspace }}/trivy/trivy.tar.gz -C ${{ github.workspace }}/trivy
25+
26+
- name: Generate SBOM
27+
run: ${{ github.workspace }}/trivy/trivy fs --format cyclonedx --output ${{ github.workspace }}/sbom.json ${{ github.workspace }}
28+
29+
- name: Run trivy scan on SBOM
30+
run: ${{ github.workspace }}/trivy/trivy sbom ${{ github.workspace }}/sbom.json --severity HIGH,CRITICAL --ignore-unfixed --exit-code=1

.golangci.yml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
1+
version: "2"
12
linters:
2-
presets:
3-
- bugs
4-
- error
5-
- unused
63
enable:
74
- errname
85
- predeclared
9-
- stylecheck
10-
# - ireturn
11-
# - gomnd
6+
- staticcheck
127
- misspell
138
- nilerr
149
- nilnil
1510
- lll
16-
# - gocritic
17-
- typecheck
18-
# - goconst
1911
- gochecknoinits
20-
# - forbidigo
2112
- nonamedreturns
2213
disable:
2314
- contextcheck
2415
- exhaustive
2516
- gosec
2617
- wrapcheck
27-
28-
linters-settings:
29-
govet:
30-
disable:
31-
- composites
32-
misspell:
33-
locale: "US"
18+
settings:
19+
govet:
20+
disable:
21+
- composites
22+
misspell:
23+
locale: US
24+
exclusions:
25+
generated: lax
26+
presets:
27+
- comments
28+
- common-false-positives
29+
- legacy
30+
- std-error-handling
31+
paths:
32+
- third_party$
33+
- builtin$
34+
- examples$
35+
formatters:
36+
exclusions:
37+
generated: lax
38+
paths:
39+
- third_party$
40+
- builtin$
41+
- examples$

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Otherwise, we will contact you for additional information or with the request to
5353

5454
To build Percona Backup for MongoDB from source code, you require the following:
5555

56-
* Go 1.22 or above. See [Installing and setting up Go tools](
56+
* Go 1.23 or above. See [Installing and setting up Go tools](
5757
https://golang.org/doc/install) for more information
5858
* make
5959
* ``krb5-devel`` for Red Hat Enterprise Linux / CentOS or ``libkrb5-dev`` for Debian / Ubuntu. This package is required for Kerberos authentication in Percona Server for MongoDB.

Makefile

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build-pbm build-agent build install install-pbm install-agent test
1+
.PHONY: build-pbm build-agent build install install-pbm install-agent test completion completion-bash completion-zsh
22

33
GOOS?=$(shell go env GOOS)
44
GOMOD?=on
@@ -129,3 +129,28 @@ install-agent-cover:
129129
$(ENVS) go install -cover -ldflags="$(LDFLAGS)" $(BUILD_FLAGS) ./cmd/pbm-agent
130130
install-stest-cover:
131131
$(ENVS) go install -cover -ldflags="$(LDFLAGS)" $(BUILD_FLAGS) ./cmd/pbm-speed-test
132+
133+
# COMPLETION SCRIPTS
134+
completion: completion-bash completion-zsh
135+
136+
completion-dir-bash:
137+
mkdir -p ./bin/completions/bash
138+
139+
completion-dir-zsh:
140+
mkdir -p ./bin/completions/zsh
141+
142+
completion-bash: completion-dir-bash completion-bash-pbm completion-bash-agent completion-bash-stest
143+
completion-bash-pbm:
144+
./bin/pbm completion bash > ./bin/completions/bash/pbm
145+
completion-bash-agent:
146+
./bin/pbm-agent completion bash > ./bin/completions/bash/pbm-agent
147+
completion-bash-stest:
148+
./bin/pbm-speed-test completion bash > ./bin/completions/bash/pbm-speed-test
149+
150+
completion-zsh: completion-dir-zsh completion-zsh-pbm completion-zsh-agent completion-zsh-stest
151+
completion-zsh-pbm:
152+
./bin/pbm completion zsh > ./bin/completions/zsh/_pbm
153+
completion-zsh-agent:
154+
./bin/pbm-agent completion zsh > ./bin/completions/zsh/_pbm-agent
155+
completion-zsh-stest:
156+
./bin/pbm-speed-test completion zsh > ./bin/completions/zsh/_pbm-speed-test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Percona Backup for MongoDB
22
[![Go Report Card](https://goreportcard.com/badge/github.com/percona/percona-backup-mongodb)](https://goreportcard.com/report/github.com/percona/percona-backup-mongodb) [![CLA assistant](https://cla-assistant.percona.com/readme/badge/percona/percona-backup-mongodb)](https://cla-assistant.percona.com/percona/percona-backup-mongodb)
33

4-
![PBM logo](backup-mongo.jpeg)
4+
![PBM logo](percona-backup-for-mongodb.png)
55

66
Percona Backup for MongoDB (PBM) is a distributed, low-impact solution for achieving
77
consistent backups of MongoDB sharded clusters and replica sets. Percona Backup for MongoDB supports Percona Server for MongoDB and MongoDB Community Edition v5.0 and higher.

backup-mongo.jpeg

-21.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)