Skip to content

Commit

Permalink
Merge branch 'inject-build-pgo-profile' into inject-build-pgo-profile…
Browse files Browse the repository at this point in the history
…-test
  • Loading branch information
1pkg committed Oct 1, 2024
2 parents ef8a9e6 + 0ed821e commit 8ad8895
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
GOBENCH_HOST: ${{ secrets.GOBENCH_HOST }}
# temporarily override to get faster feedback
BENCHMARK_WARMUP_TIME: 1m
BENCHMARK_COUNT: 2
BENCHMARK_TIME: 1m
BENCHMARK_COUNT: 1
BENCHMARK_TIME: 10s
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:

- name: Tear down benchmark environment
if: always()
run: make destroy
run: make init destroy

# Notify failure to Slack only on schedule (nightly run)
- if: failure() && github.event_name == 'schedule'
Expand Down
8 changes: 4 additions & 4 deletions testing/benchmark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,20 @@ cleanup-elasticsearch:
@ curl -u $(ELASTICSEARCH_USER):$(ELASTICSEARCH_PASS) -XDELETE $(ELASTICSEARCH_URL)/_data_stream/$(APM_DATA_STREAMS)

# This target is intended to be run from CI to create a PGO update PR.
PGO_BRANCH = update-pgo-$(shell date +%s)
.PHONY: push-pgo-pr
push-pgo-pr:
@cd $(WORKSPACE_PATH)
@git config user.email "[email protected]"
@git config user.name "APM Server"
@git fetch origin main
@git checkout main
@BRANCH="update-pgo-$(date +%s)"
@git checkout -b $(BRANCH)
@git checkout -b $(PGO_BRANCH)
@mv $(PROFILE_PATH) x-pack/apm-server/default.pgo
@git add x-pack/apm-server/default.pgo
@git commit -m "PGO: Update default.pgo from benchmarks $(WORKFLOW)."
@git push -u origin $(BRANCH)
@gh pr create -B main -H $(BRANCH) -t "PGO: Update default.pgo" -b "Update default.pgo CPU profile from the benchmarks [workflow]($(WORKFLOW))." -R elastic/apm-server
@git push -u origin $(PGO_BRANCH)
@gh pr create -B main -H $(PGO_BRANCH) -t "PGO: Update default.pgo" -b "Update default.pgo CPU profile from the benchmarks [workflow]($(WORKFLOW))." -R elastic/apm-server

##############################################################################
# Target for creating a .tfvars file, defining the custom Docker images to
Expand Down

0 comments on commit 8ad8895

Please sign in to comment.