Skip to content

Conversation

LinPr
Copy link

@LinPr LinPr commented Aug 11, 2025

CHORE: Support build docker image locally with make docker-build command

@LinPr LinPr requested a review from a team as a code owner August 11, 2025 02:47
@LinPr LinPr requested review from BupycHuk and JiriCtvrtka and removed request for a team August 11, 2025 02:47
@@ -71,7 +72,10 @@ init: ## Install linters
cd tools && go generate -x -tags=tools

build: ## Build exporter binary using plain go build.
go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/mongodb_exporter
CGO_ENABLED=0 go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/mongodb_exporter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this here though?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just make sure it is static builded, make it more portable, sometimes I want to copy the builded binary to another machine, I can run it without considering the enviroment of glibc or musl

Copy link

codecov bot commented Aug 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.10%. Comparing base (dc46ed5) to head (80497ba).
⚠️ Report is 126 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (dc46ed5) and HEAD (80497ba). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (dc46ed5) HEAD (80497ba)
agent 10 7
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1138      +/-   ##
==========================================
- Coverage   70.88%   65.10%   -5.79%     
==========================================
  Files          28       29       +1     
  Lines        3569     3092     -477     
==========================================
- Hits         2530     2013     -517     
- Misses        904      939      +35     
- Partials      135      140       +5     
Flag Coverage Δ
agent 65.10% <ø> (-5.79%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants