Skip to content

Commit

Permalink
[PBM-1177] remove MongoDB 4.2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
defbin committed Sep 13, 2023
1 parent 22ee6b9 commit 52f870d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
psmdb: ["4.2", "4.4", "5.0", "6.0"]
psmdb: ["4.4", "5.0", "6.0"]
test: [logical, physical, incremental, external]
env:
PBM_BRANCH: ${{ github.event.inputs.pbm_branch || 'main' }}
Expand Down
18 changes: 9 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ Welcome to Percona Backup for MongoDB!
2. [Submitting a pull request](#submitting-a-pull-request)
3. [Contributing to documentation](#contributing-to-documentation)

We're glad that you would like to become a Percona community member and participate in keeping open source open.
We're glad that you would like to become a Percona community member and participate in keeping open source open.

Percona Backup for MongoDB (PBM) is a distributed, low-impact solution for achieving consistent backups of MongoDB sharded clusters and replica sets.

You can contribute in one of the following ways:

1. Reach us on our [Forums](https://forums.percona.com) and [Discord]([https://discord.gg/mQEyGPkNbR](https://discord.gg/mQEyGPkNbR)).
2. [Submit a bug report or a feature request](https://github.com/percona/percona-backup-mongodb/blob/main/README.md)
2. [Submit a bug report or a feature request](https://github.com/percona/percona-backup-mongodb/blob/main/README.md)
3. Submit a pull request (PR) with the code patch
4. Contribute to documentation
4. Contribute to documentation

## Prerequisites

Expand All @@ -33,20 +33,20 @@ Please make sure to read and agree to our [Code of Conduct](https://github.com/p

## Submitting a pull request

All bug reports, enhancements and feature requests are tracked in [Jira issue tracker](https://jira.percona.com/projects/PBM). Though not mandatory, we encourage you to first check for a bug report among Jira issues and in the PR list: perhaps the bug has already been addressed.
All bug reports, enhancements and feature requests are tracked in [Jira issue tracker](https://jira.percona.com/projects/PBM). Though not mandatory, we encourage you to first check for a bug report among Jira issues and in the PR list: perhaps the bug has already been addressed.

For feature requests and enhancements, we do ask you to create a Jira issue, describe your idea and discuss the design with us. This way we align your ideas with our vision for the product development.

If the bug hasn’t been reported / addressed, or we’ve agreed on the enhancement implementation with you, do the following:

1. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) this repository
2. Clone this repository on your machine.
2. Clone this repository on your machine.
3. Create a separate branch for your changes. If you work on a Jira issue, please include the issue number in the branch name so it reads as ``<JIRAISSUE>-my_branch``. This makes it easier to track your contribution.
4. Make your changes. Please follow the guidelines outlined in the [Go Code Review Comments](https://github.com/golang/go/wiki/CodeReviewComments) to improve code readability.
5. Test your changes locally. See the [Running tests locally](#running-tests-locally) section for more information
6. Commit the changes. Add the Jira issue number at the beginning of your message subject so that is reads as `<JIRAISSUE> - My subject`. The [commit message guidelines](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53) will help you with writing great commit messages
7. Open a PR to Percona
8. Our team will review your code and if everything is correct, will merge it.
8. Our team will review your code and if everything is correct, will merge it.
Otherwise, we will contact you for additional information or with the request to make changes.

### Building Percona Backup for MongoDB
Expand Down Expand Up @@ -104,7 +104,7 @@ To save time on tests execution during development, we recommend running genera
$ MONGODB_VERSION=4.4 ./run-sharded
```

``$ MONGODB_VERSION`` stands for the Percona Server for MongoDB version Percona Backup for MongoDB is running with. Default is 4.2.
``$ MONGODB_VERSION`` stands for the Percona Server for MongoDB version Percona Backup for MongoDB is running with. Default is 4.4.

After the development is complete and you are ready to submit a pull request, run all tests using the following command:

Expand All @@ -116,9 +116,9 @@ You can run tests on your local machine with whatever operating system you have.

## Contributing to documentation

We welcome contributions to our [documentation](https://docs.percona.com/percona-backup-mongodb/index.html).
We welcome contributions to our [documentation](https://docs.percona.com/percona-backup-mongodb/index.html).

Documentation source files are in the [dedicated docs repository](https://github.com/percona/pbm-docs). The contents of the `doc` folder is outdated and will be removed.
Documentation source files are in the [dedicated docs repository](https://github.com/percona/pbm-docs). The contents of the `doc` folder is outdated and will be removed.

Please follow the [Docs contributing guidelines](https://github.com/percona/pbm-docs/CONTRBUTING.md) for how to contribute to documentation.

Expand Down
69 changes: 0 additions & 69 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,6 @@ pipeline {
}
}
parallel {
stage('New cluster 4.2 logical') {
agent {
label 'docker'
}
steps {
script {
if ( AUTHOR_NAME == 'null' ) {
AUTHOR_NAME = sh(script: "git show -s --pretty=%ae | awk -F'@' '{print \$1}'", , returnStdout: true).trim()
}
}

prepareCluster('sharded', '42-newc-logic', '4.2')
runTest('New cluster', 'run-new-cluster', '4.2', 'logical')
}
}
stage('New cluster 4.4 logical') {
agent {
label 'docker'
Expand Down Expand Up @@ -126,15 +111,6 @@ pipeline {
}
}

stage('Sharded 4.2 logical') {
agent {
label 'docker-32gb'
}
steps {
prepareCluster('sharded', '42-shrd-logic', '4.2')
runTest('Sharded', 'run-sharded', '4.2', 'logical')
}
}
stage('Sharded 4.4 logical') {
agent {
label 'docker-32gb'
Expand Down Expand Up @@ -163,15 +139,6 @@ pipeline {
}
}

stage('Non-sharded 4.2 logical') {
agent {
label 'docker'
}
steps {
prepareCluster('rs', '42-rs-logic', '4.2')
runTest('Non-sharded', 'run-rs', '4.2', 'logical')
}
}
stage('Non-sharded 4.4 logical') {
agent {
label 'docker'
Expand Down Expand Up @@ -200,15 +167,6 @@ pipeline {
}
}

stage('Single-node 4.2 logical') {
agent {
label 'docker'
}
steps {
prepareCluster('single', '42-single-logic', '4.2')
runTest('Single-node', 'run-single', '4.2', 'logical')
}
}
stage('Single-node 4.4 logical') {
agent {
label 'docker'
Expand Down Expand Up @@ -237,15 +195,6 @@ pipeline {
}
}

stage('Sharded 4.2 physical') {
agent {
label 'docker-32gb'
}
steps {
prepareCluster('sharded', '42-shrd-phys', '4.2')
runTest('Sharded', 'run-sharded', '4.2', 'physical')
}
}
stage('Sharded 4.4 physical') {
agent {
label 'docker-32gb'
Expand Down Expand Up @@ -274,15 +223,6 @@ pipeline {
}
}

stage('Non-sharded 4.2 physical') {
agent {
label 'docker'
}
steps {
prepareCluster('rs', '42-rs-phys', '4.2')
runTest('Non-sharded', 'run-rs', '4.2', 'physical')
}
}
stage('Non-sharded 4.4 physical') {
agent {
label 'docker'
Expand Down Expand Up @@ -311,15 +251,6 @@ pipeline {
}
}

stage('Single-node 4.2 physical') {
agent {
label 'docker'
}
steps {
prepareCluster('single', '42-single-phys', '4.2')
runTest('Single-node', 'run-single', '4.2', 'physical')
}
}
stage('Single-node 4.4 physical') {
agent {
label 'docker'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CGO_ENABLED?=0
GITCOMMIT?=$(shell git rev-parse HEAD 2>/dev/null)
GITBRANCH?=$(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
BUILDTIME?=$(shell TZ=UTC date "+%Y-%m-%d_%H:%M_UTC")
MONGO_TEST_VERSION?=4.2
MONGO_TEST_VERSION?=4.4

define ENVS
GO111MODULE=$(GOMOD) \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
![PBM logo](doc/source/images/backup-mongo.jpeg)

Percona Backup for MongoDB (PBM) is a distributed, low-impact solution for achieving
consistent backups of MongoDB sharded clusters and replica sets. Percona Backup for MongoDB supports Percona Server for MongoDB and MongoDB Community Edition v3.6 and higher.
consistent backups of MongoDB sharded clusters and replica sets. Percona Backup for MongoDB supports Percona Server for MongoDB and MongoDB Community Edition v4.4 and higher.

For more information about PBM components and how to use it, see
[Percona Backup for MongoDB documentation](https://docs.percona.com/percona-backup-mongodb/)
Expand Down Expand Up @@ -80,7 +80,7 @@ When submitting a bug report or a feature, please attach the following informati
## Licensing
Percona is dedicated to **keeping open source open**. Wherever possible, we strive to include permissive licensing for both our software and documentation. For this project, we are using the Apache License 2.0 license.
Percona is dedicated to **keeping open source open**. Wherever possible, we strive to include permissive licensing for both our software and documentation. For this project, we are using the Apache License 2.0 license.
## How to get involved
Expand Down

0 comments on commit 52f870d

Please sign in to comment.