-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PMM-7 Updates due to pmm-update move to pmm repo
- Loading branch information
Michal Kralik
committed
Dec 8, 2022
1 parent
f20f73e
commit 9cdb1f3
Showing
49 changed files
with
143 additions
and
2,321 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ on: | |
- "managed/**" | ||
- "docs/**" | ||
- "qan-api2/**" | ||
- "update/**" | ||
- "vmproxy/**" | ||
|
||
workflow_call: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ on: | |
- "managed/**" | ||
- "docs/**" | ||
- "qan-api2/**" | ||
- "update/**" | ||
- "vmproxy/**" | ||
|
||
workflow_call: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ on: | |
- "agent/**" | ||
- "docs/**" | ||
- "qan-api2/**" | ||
- "update/**" | ||
- "vmproxy/**" | ||
|
||
workflow_call: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ on: | |
- "agent/**" | ||
- "docs/**" | ||
- "managed/**" | ||
- "update/**" | ||
- "vmproxy/**" | ||
|
||
workflow_call: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Update | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- pmm-* | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+* | ||
pull_request: | ||
paths-ignore: | ||
- "admin/**" | ||
- "agent/**" | ||
- "docs/**" | ||
- "managed/**" | ||
- "qan-api2/**" | ||
- "vmproxy/**" | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- percona/pmm-server:2.0.0 # oldest production version | ||
- percona/pmm-server:2.16.0 # version with enabled experimental repo | ||
- percona/pmm-server:2 # latest production version | ||
- perconalab/pmm-server:dev-latest # latest development version | ||
|
||
env: | ||
PMM_SERVER_IMAGE: ${{ matrix.image }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: ${{ github.workspace }}/update | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Docker Up | ||
run: docker-compose up -d | ||
|
||
- name: Install dev tools in container | ||
run: docker exec pmm-update-server /root/go/src/github.com/percona/pmm/update/.devcontainer/install-dev-tools.sh | ||
|
||
- name: Run install | ||
run: docker exec pmm-update-server make -C /root/go/src/github.com/percona/pmm/update install | ||
|
||
- name: Run license check and ansible checks | ||
run: docker exec pmm-update-server make -C /root/go/src/github.com/percona/pmm/update check | ||
|
||
- name: Run tests | ||
run: docker exec pmm-update-server make -C /root/go/src/github.com/percona/pmm/update test-race | ||
|
||
- name: Run with race detector and collect coverage information | ||
run: docker exec pmm-update-server make -C /root/go/src/github.com/percona/pmm/update run-race-cover RUN_FLAGS='-debug -check' | ||
|
||
- name: Upload coverage results | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: cover.out | ||
flags: update | ||
fail_ci_if_error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,20 +5,20 @@ | |
%define _binaries_in_noarch_packages_terminate_build 0 | ||
%define _unpackaged_files_terminate_build 0 | ||
|
||
%global repo pmm-update | ||
%global repo pmm | ||
%global provider github.com/percona/%{repo} | ||
%global import_path %{provider} | ||
%global commit 592eddf656bce32a11bd958af0a32c62bd5ea34c | ||
%global shortcommit %(c=%{commit}; echo ${c:0:7}) | ||
%define build_timestamp %(date -u +"%y%m%d%H%M") | ||
%define release 66 | ||
%define release 67 | ||
%define rpm_release %{release}.%{build_timestamp}.%{shortcommit}%{?dist} | ||
|
||
# the line below is sed'ed by build/bin/build-server-rpm to set a correct version | ||
%define full_pmm_version 2.0.0 | ||
|
||
Name: %{repo} | ||
Version: %{version} | ||
Name: pmm-update | ||
Version: %{full_pmm_version} | ||
Release: %{rpm_release} | ||
Summary: Tool for updating packages and OS configuration for PMM Server | ||
|
||
|
@@ -42,16 +42,16 @@ export PMM_RELEASE_VERSION=%{full_pmm_version} | |
export PMM_RELEASE_FULLCOMMIT=%{commit} | ||
export PMM_RELEASE_BRANCH="" | ||
|
||
cd src/github.com/percona/pmm-update | ||
cd src/github.com/percona/pmm/update | ||
make release | ||
|
||
|
||
%install | ||
install -d %{buildroot}%{_datadir}/%{name} | ||
cp -pav ./ansible %{buildroot}%{_datadir}/%{name} | ||
cp -pav ./update/ansible %{buildroot}%{_datadir}/%{name} | ||
|
||
install -d %{buildroot}%{_sbindir} | ||
cd src/github.com/percona/pmm-update | ||
cd src/github.com/percona/pmm/update | ||
install -p -m 0755 bin/pmm-update %{buildroot}%{_sbindir}/ | ||
|
||
|
||
|
@@ -63,6 +63,9 @@ install -p -m 0755 bin/pmm-update %{buildroot}%{_sbindir}/ | |
|
||
|
||
%changelog | ||
* Thu Dec 8 2022 Michal Kralik <[email protected]> - 2.34.0-67 | ||
- PMM-11207 Migrate pmm-update to monorepo | ||
|
||
* Mon May 16 2022 Nikita Beletskii <[email protected]> - 2.29.0-1 | ||
- https://per.co.na/pmm/latest | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.