Skip to content

Commit a47d1ae

Browse files
authored
Merge branch 'v3' into PMM-5086-12634-agent-refactor
2 parents 7586fe8 + 1719cf6 commit a47d1ae

File tree

19 files changed

+80
-180
lines changed

19 files changed

+80
-180
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
build/pmm-server-docker/RPMS/
1+
build/
22
*.swp
33
*~
44
tmp/

.gitmodules

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
# PMM Client and Server Components
12
[submodule "pmm"]
23
path = sources/pmm/src/github.com/percona/pmm
34
url = https://github.com/percona/pmm
45
branch = v3
56

67
# PMM Client
7-
88
[submodule "node_exporter"]
99
path = sources/node_exporter/src/github.com/prometheus/node_exporter
1010
url = https://github.com/percona/node_exporter.git
11-
branch = main
11+
branch = v3
1212
[submodule "mysqld_exporter"]
1313
path = sources/mysqld_exporter/src/github.com/percona/mysqld_exporter
1414
url = https://github.com/percona/mysqld_exporter.git
@@ -39,7 +39,6 @@
3939
branch = release-v3.5.2
4040

4141
# PMM Server
42-
4342
[submodule "grafana-dashboards"]
4443
path = sources/grafana-dashboards
4544
url = https://github.com/percona/grafana-dashboards
@@ -52,6 +51,10 @@
5251
path = sources/pmm-dump
5352
url = https://github.com/percona/pmm-dump
5453
branch = v3
54+
[submodule "watchtower"]
55+
path = sources/watchtower/src/github.com/percona/watchtower
56+
url = https://github.com/percona/watchtower
57+
branch = main
5558

5659
## PMM Tests
5760
[submodule "pmm-qa"]

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ help: ## Display this help message.
1414
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | \
1515
awk -F ':.*?## ' 'NF==2 {printf " %-26s%s\n", $$1, $$2}'
1616

17-
submodules: ## Update all sumodules .
17+
submodules: ## Update all sumodules.
1818
git submodule update --init --remote --jobs 10
1919
git submodule status
2020

21-
deps: ## Get deps from repos
21+
deps: ## Get deps from repos.
2222
python3 ci.py
2323

24-
trigger:
25-
git commit -m 'Trigger FB' --allow-empty
24+
trigger: ## Make an empty commit to trigger the build.
25+
git commit -m 'chore: trigger FB' --allow-empty
2626
git push
2727

28-
prepare: ## Create new FB (new style)
28+
prepare: ## Create a new FB (new style).
2929
python3 ci.py -g --prepare $(RUN_ARGS)
3030

3131
clean: ## Clean build results.
@@ -36,8 +36,8 @@ purge: ## Clean cache and leftovers. Please run this when s
3636
git submodule update
3737
git submodule foreach 'git reset --hard && git clean -xdff'
3838

39-
fb: ## Creates feature build branch.
40-
# Usage: make fb mainBranch=v3 featureBranch=PMM-XXXX-name submodules="pmm pmm-managed"
39+
fb: ## Create a feature build branch.
40+
# Usage: make fb mainBranch=v3 featureBranch=PMM-XXXX-branch-name submodules="pmm pmm-managed"
4141
$(eval MAIN_BRANCH = $(or $(mainBranch),v3))
4242
git checkout $(MAIN_BRANCH)
4343
make purge

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ to our build system managed by Jenkins as it helps pull the right branches from
55

66
# Installation of dependencies
77

8-
If you build with Python's script then you need to install the dependencies:
8+
If you intend to build PMM with 'ci.py' Python script, then you need to install the dependencies:
99

10-
```
10+
```shell
1111
pip install -r requirements.txt
1212
```
1313

@@ -18,29 +18,29 @@ To create a feature build (FB) you have to edit `ci.yml` and specify the branche
1818
```yaml
1919
deps:
2020
- name: pmm
21-
branch: PMM-0000-fix-everything
21+
branch: PMM-0000-feature-branch
2222
- name: pmm-qa
23-
branch: PMM-0000-fix-everything-and-even-more
23+
branch: PMM-0000-bugfix-branch
2424
```
2525
26-
To build from a fork, you need to specify `url` for the dependency, for example:
26+
To build from a fork, you need to additionally specify `url` for the dependency, for example:
2727

2828
```yaml
2929
deps:
3030
- name: pmm-server
3131
url: https://github.com/<your-account>/pmm-server
32-
branch: PMM-0000-fix-everything
32+
branch: PMM-0000-feature-branch
3333
```
3434

35-
Next, you will commit changes to git and push them to the repo:
35+
Next, commit your changes to git and push them to the repo:
3636

37-
```
37+
```shell
3838
git add ci.yml
3939
git commit -m 'use custom branches'
4040
git push
4141
```
4242

43-
Whenever you commit and push to a feature branch, a Jenkins job will be triggered and it will start building your feature. You can follow its progress right from the PR's actions (at the bottom of each PR).
43+
Whenever you commit and push to a feature branch, a Jenkins job will be triggered, which will start building your feature. You can follow its progress by following a github workflow link displayed at the bottom of each PR.
4444

4545
## Using a Personal Access Token (PAT)
4646

@@ -54,21 +54,23 @@ The token requires the following permissions:
5454

5555
It is recommended to set an expiration date for your token.
5656

57-
if you use zsh:
57+
To make the Github token available to `ci.py`, add the following lines to your shell script:
58+
59+
if you use `zsh` shell:
5860

5961
```console
6062
echo 'export GITHUB_API_TOKEN=********' >> ~/.zshrc
6163
source ~/.zshrc
6264
```
6365

64-
if you use bash:
66+
if you use `bash` shell:
6567

6668
```console
6769
echo 'export GITHUB_API_TOKEN=********' >> ~/.bash_profile
6870
source ~/.bash_profile
6971
```
7072

71-
NOTE: Please make sure you don't commit your PAT to github. Should the PAT accidentally leak out, please revoke it asap and re-create it.
73+
NOTE: Please make sure you DO NOT commit your PAT to github. Should the PAT accidentally leak out, please revoke it asap and re-create it.
7274

7375
## FAQ
7476

@@ -77,15 +79,15 @@ NOTE: Please make sure you don't commit your PAT to github. Should the PAT accid
7779
If you use the same branch name in all repos then you can run:
7880

7981
```console
80-
make prepare <you branch name>
82+
make prepare <your-branch-name>
8183
```
8284

83-
Branches with "you branch name" will be used for all repos or the default branch (usually called `main`) if the branch with this name isn't found in the repo.
85+
Branch "your-branch-name" will be used for every submodule repo. If not found, the repo's default branch (usually `main`) will be used.
8486

85-
If you want to create a FB from a fork, you can pass an environment variable "FORK_OWNER" which should be equal to your username in github and run:
87+
If you want to create a FB from a fork, you can pass an environment variable "FORK_OWNER", which should be set to your github username:
8688

8789
```console
88-
FORK_OWNER=<your username> make prepare <you branch name>
90+
FORK_OWNER=<your username> make prepare <your-branch-name>
8991
```
9092

9193
### I got an error "...branch has no upstream branch"

ci-default.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)