Skip to content

Commit

Permalink
PMM-13487 Remove redundant export in the specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Nov 30, 2024
1 parent 7df0b44 commit 28e1d2c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
.modules/
bin/
dist/
build/
.env
.netrc
pmm-agent-dev.yaml
Expand Down
8 changes: 4 additions & 4 deletions build/local/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Usage: $BASE_NAME [OPTIONS]
Options:
--init Clone the source, initialize directories, check for pre-requisites and exit
--platform <platform> Build for a specific platform (defaults to linux/amd64)
--no-update Do not fetch the latest changes from the repo
--update-only Just fetch the latest changes from the repo and halt
--no-update Do not fetch the latest changes from the repo before building
--update-only Just fetch the latest changes from the repo and exit
--client-only Build only PMM Client (client binaries + docker)
--no-client Do not build PMM Client (this will use local cache)
--no-client-docker Do not build PMM Client docker image (default)
--log-file <path> Save build logs to a file located at <path> (defaults to $PWD/build.log)
Note: the log file will get reset on every subsequent run
--release-build Make it a release build (otherwise it's a feature build)
-d --debug Log output in debug mode, which also prints the commands
-d --debug Turn on a more verbose output mode, useful for troubleshooting
-h --help Display help
Please note, the script will perform the update of submodules by default on every run unless the '--no-update' option is specified.
Expand Down Expand Up @@ -527,7 +527,7 @@ main() {
echo
echo "Done building PMM artifacts."
echo ---
echo "Total execution time, sec: $(($(date +%s) - $START_TIME))"
echo "Total execution time: $(print_duration $(($(date +%s) - $START_TIME)))"
echo ---

cleanup
Expand Down
3 changes: 1 addition & 2 deletions build/packages/rpm/server/SPECS/percona-qan-api2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Refer to PMM docs for more information - https://docs.percona.com/percona-monito
%build
export PMM_RELEASE_VERSION=%{full_pmm_version}
export PMM_RELEASE_FULLCOMMIT=%{commit}
export PMM_RELEASE_BRANCH=""

make -C qan-api2 release

Expand All @@ -48,7 +47,7 @@ install -p -m 0755 ./bin/qan-api2 %{buildroot}%{_sbindir}/%{name}
%doc qan-api2/README.md

%changelog
* Wed Apr 1 2024 Alex Demidoff <[email protected]> - 3.0.0-18
* Mon Apr 1 2024 Alex Demidoff <[email protected]> - 3.0.0-18
- PMM-12899 Use module and build cache

* Mon Nov 7 2022 Alexander Tymchuk <[email protected]> - 2.0.0-17
Expand Down
1 change: 0 additions & 1 deletion build/packages/rpm/server/SPECS/pmm-managed.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ See PMM docs for more information.
%build
export PMM_RELEASE_VERSION=%{full_pmm_version}
export PMM_RELEASE_FULLCOMMIT=%{commit}
export PMM_RELEASE_BRANCH=""

make -C managed release

Expand Down
1 change: 0 additions & 1 deletion build/packages/rpm/server/SPECS/pmm-update.spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ BuildArch: noarch
%build
export PMM_RELEASE_VERSION=%{full_pmm_version}
export PMM_RELEASE_FULLCOMMIT=%{commit}
export PMM_RELEASE_BRANCH=""

make -C update release

Expand Down
1 change: 0 additions & 1 deletion build/packages/rpm/server/SPECS/vmproxy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ optionally adds `extra_filters` query based on the provided configuration.
%build
export PMM_RELEASE_VERSION=%{full_pmm_version}
export PMM_RELEASE_FULLCOMMIT=%{commit}
export PMM_RELEASE_BRANCH=""

make -C vmproxy release

Expand Down
3 changes: 1 addition & 2 deletions build/scripts/build-server-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ build() {
sleep 1
done
# Only these two specs have build dependencies
# Only grafana spec needs to install build dependencies
if [[ ${spec_name} =~ ^grafana$ ]]; then
sleep 2s
sudo yum-builddep -y SOURCES/${spec_name}.spec
fi
Expand Down
6 changes: 3 additions & 3 deletions managed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default: help
help: ## Display this help message
@echo "Please use \`make <target>\` where <target> is one of:"
@grep -h '^[a-zA-Z]' $(MAKEFILE_LIST) | \
awk -F ':.*?## ' 'NF==2 {printf " %-26s%s\n", $$1, $$2}'
awk -F ':.*?## ' 'NF==2 {printf " %-30s%s\n", $$1, $$2}'
@echo

# `cut` is used to remove first `v` from `git describe` output
Expand Down Expand Up @@ -38,10 +38,10 @@ clean: ## Remove generated files
release: ## Build pmm-managed release binaries
env CGO_ENABLED=0 go build -v $(PMM_LD_FLAGS) -o $(PMM_RELEASE_PATH)/ ./cmd/...

release-encryption-rotation: ## Build PMM encryption rotation tool
release-encryption-rotation: ## Build PMM encryption rotation tool
env CGO_ENABLED=0 go build -v $(PMM_LD_FLAGS) -o $(PMM_RELEASE_PATH)/ ./cmd/pmm-encryption-rotation/...

release-starlark:
release-starlark: ## Build pmm-managed-starlark binaries
env CGO_ENABLED=0 go build -v $(PMM_LD_FLAGS) -o $(PMM_RELEASE_PATH)/ ./cmd/pmm-managed-starlark/...
$(PMM_RELEASE_PATH)/pmm-managed-starlark --version

Expand Down

0 comments on commit 28e1d2c

Please sign in to comment.