-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into 20240626_add-collec…
…tion-rules-handling
- Loading branch information
Showing
209 changed files
with
3,859 additions
and
3,943 deletions.
There are no files selected for viewing
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
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,16 @@ | ||
on: issue_comment | ||
|
||
jobs: | ||
pyrobench: | ||
name: Run Pyrobench on demand by PR comment | ||
if: ${{ (github.event.issue.pull_request) && contains(github.event.comment.body, '@pyrobench') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- name: Pyrobench | ||
uses: grafana/pyrobench@main | ||
with: | ||
github_context: ${{ toJson(github) }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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
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 |
---|---|---|
|
@@ -77,13 +77,10 @@ build: frontend/build go/bin ## Do a production build (requiring the frontend bu | |
build-dev: ## Do a dev build (without requiring the frontend) | ||
$(MAKE) EMBEDASSETS="" go/bin | ||
|
||
.PHONY: frontend/build | ||
frontend/build: frontend/deps ## Do a production build for the frontend | ||
yarn build | ||
|
||
.PHONY: frontend/deps | ||
frontend/deps: | ||
yarn --frozen-lockfile | ||
.PHONY: frontend/build | ||
frontend/build: | ||
docker build -f cmd/pyroscope/frontend.Dockerfile --output=public/build . | ||
|
||
.PHONY: release | ||
release/prereq: $(BIN)/goreleaser ## Ensure release pre requesites are met | ||
|
@@ -165,7 +162,7 @@ check/go/mod: go/mod | |
|
||
|
||
define docker_buildx | ||
docker buildx build $(1) --platform $(IMAGE_PLATFORM) $(BUILDX_ARGS) --build-arg=revision=$(GIT_REVISION) -t $(IMAGE_PREFIX)$(shell basename $(@D)) -t $(IMAGE_PREFIX)$(shell basename $(@D)):$(IMAGE_TAG) -f cmd/$(shell basename $(@D))/$(2)Dockerfile . | ||
docker buildx build $(1) --platform $(IMAGE_PLATFORM) $(BUILDX_ARGS) --build-arg=revision=$(GIT_REVISION) -t $(IMAGE_PREFIX)$(shell basename $(@D)):$(2)latest -t $(IMAGE_PREFIX)$(shell basename $(@D)):$(2)$(IMAGE_TAG) -f cmd/$(shell basename $(@D))/$(2)Dockerfile . | ||
endef | ||
|
||
define deploy | ||
|
@@ -191,6 +188,12 @@ docker-image/pyroscope/build-debug: GOARCH=amd64 | |
docker-image/pyroscope/build-debug: frontend/build go/bin-debug $(BIN)/linux_amd64/dlv | ||
$(call docker_buildx,--load,debug.) | ||
|
||
.PHONY: docker-image/pyroscope/push-debug | ||
docker-image/pyroscope/push-debug: GOOS=linux | ||
docker-image/pyroscope/push-debug: GOARCH=amd64 | ||
docker-image/pyroscope/push-debug: frontend/build go/bin-debug $(BIN)/linux_amd64/dlv | ||
$(call docker_buildx,--push,debug.) | ||
|
||
.PHONY: docker-image/pyroscope/build | ||
docker-image/pyroscope/build: GOOS=linux | ||
docker-image/pyroscope/build: GOARCH=amd64 | ||
|
@@ -260,11 +263,11 @@ $(BIN)/buf: Makefile | |
|
||
$(BIN)/golangci-lint: Makefile | ||
@mkdir -p $(@D) | ||
GOBIN=$(abspath $(@D)) $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.2 | ||
GOBIN=$(abspath $(@D)) $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1 | ||
|
||
$(BIN)/protoc-gen-go: Makefile go.mod | ||
@mkdir -p $(@D) | ||
GOBIN=$(abspath $(@D)) $(GO) install google.golang.org/protobuf/cmd/[email protected].1 | ||
GOBIN=$(abspath $(@D)) $(GO) install google.golang.org/protobuf/cmd/[email protected].2 | ||
|
||
$(BIN)/protoc-gen-connect-go: Makefile go.mod | ||
@mkdir -p $(@D) | ||
|
@@ -327,7 +330,7 @@ $(BIN)/gotestsum: Makefile go.mod | |
@mkdir -p $(@D) | ||
GOBIN=$(abspath $(@D)) $(GO) install gotest.tools/[email protected] | ||
|
||
DLV_VERSION=v1.21.0 | ||
DLV_VERSION=v1.23.0 | ||
|
||
$(BIN)/dlv: Makefile go.mod | ||
@mkdir -p $(@D) | ||
|
@@ -357,7 +360,7 @@ helm/lint: $(BIN)/helm | |
$(BIN)/helm lint ./operations/pyroscope/helm/pyroscope/ | ||
|
||
helm/docs: $(BIN)/helm | ||
docker run --rm --volume "$(CURDIR)/operations/pyroscope/helm:/helm-docs" -u "$(shell id -u)" jnorwood/helm-docs:v1.13.1 | ||
docker run --rm --volume "$(CURDIR)/operations/pyroscope/helm:/helm-docs" -u "$(shell id -u)" jnorwood/helm-docs:v1.8.1 | ||
|
||
.PHONY: goreleaser/lint | ||
goreleaser/lint: $(BIN)/goreleaser | ||
|
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
Oops, something went wrong.