Skip to content

Commit

Permalink
Merge branch 'inject-build-pgo-profile' into update-pgo-1726276668
Browse files Browse the repository at this point in the history
  • Loading branch information
1pkg committed Sep 14, 2024
2 parents 790a6a1 + 9cd645f commit 03fe92a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,19 @@ jobs:
# via a PR to update default.pgo.

- name: Copy CPU profile
if: ${{ inputs.runStandalone }}
if: ${{ inputs.runStandalone && github.ref == 'refs/heads/main' }}
run: make cp-cpuprof

- name: Upload CPU profile
if: ${{ inputs.runStandalone }}
if: ${{ inputs.runStandalone && github.ref == 'refs/heads/main' }}
uses: actions/upload-artifact@v4
with:
name: cpu-profile
path: ${{ env.WORKING_DIRECTORY }}/${{ env.BENCHMARK_CPU_OUT }}
if-no-files-found: error

- name: Open PGO PR
if: ${{ inputs.runStandalone }}
if: ${{ inputs.runStandalone && github.ref == 'refs/heads/main' }}
run: |
cd "${{ github.workspace }}"
mv "$PROFILE_PATH" x-pack/apm-server/default.pgo
Expand Down
3 changes: 1 addition & 2 deletions testing/benchmark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ MOXY_GOARCH ?= amd64
APM_SERVER_GOOS ?= linux
APM_SERVER_GOARCH ?= amd64

RUN_STANDALONE ?= false

TFVARS_SOURCE ?= terraform.tfvars.example

BENCHMARK_WARMUP_TIME ?= 5m
Expand All @@ -33,6 +31,7 @@ SSH_OPTS ?= -o LogLevel=ERROR -o StrictHostKeyChecking=no -o ServerAliveInterval
SSH_KEY ?= ~/.ssh/id_rsa_terraform
WORKER_IP = $(shell terraform output -raw public_ip)
APM_SERVER_IP = $(shell terraform output -raw apm_server_ip)
RUN_STANDALONE = $(shell echo var.run_standalone | terraform console | tr -d '"')

SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c
Expand Down

0 comments on commit 03fe92a

Please sign in to comment.