-
Notifications
You must be signed in to change notification settings - Fork 193
Make PolarSignals profiling data more visible #9029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
78fe111
ps profiles
AdamGS 494222a
Simplify
AdamGS 0270890
Force frame points in benchmarks
AdamGS 3439eb0
Use newer parca version
AdamGS 2f12343
Rename binary
AdamGS 86adaa5
print parca logs
AdamGS b7e1d27
Upload debug info explicitly
AdamGS 63bc6be
Update parca config
AdamGS cfe38fb
fix
AdamGS 1d6d710
rename fix
AdamGS 7f3ef04
more error cases
AdamGS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,117 @@ | ||
| name: "Pre-upload benchmark debuginfo to Polar Signals" | ||
| description: "Install parca-debuginfo and upload built benchmark binaries to Polar Signals Cloud" | ||
|
|
||
| inputs: | ||
| paths: | ||
| description: "Newline-delimited paths to binaries whose debuginfo should be uploaded" | ||
| required: true | ||
| polarsignals-cloud-token: | ||
| description: "Polar Signals service account token" | ||
| required: true | ||
| project-id: | ||
| description: "Polar Signals Cloud project ID" | ||
| required: true | ||
| store-address: | ||
| description: "Parca-compatible debuginfo gRPC endpoint" | ||
| required: false | ||
| default: "grpc.polarsignals.com:443" | ||
| version: | ||
| description: "parca-debuginfo version to install" | ||
| required: false | ||
| default: "0.13.0" | ||
| force: | ||
| description: "Replace existing debuginfo for the same build ID" | ||
| required: false | ||
| default: "false" | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Download and verify parca-debuginfo CLI | ||
| shell: bash | ||
| env: | ||
| VERSION: ${{ inputs.version }} | ||
| run: | | ||
| set -Eeu -o pipefail | ||
|
|
||
| base_url="https://github.com/parca-dev/parca-debuginfo/releases/download/v${VERSION}" | ||
| asset="parca-debuginfo_${VERSION}_$(uname -s)_$(uname -m)" | ||
| checksums="$(mktemp)" | ||
| curl -fsSL "${base_url}/checksums.txt" -o "$checksums" | ||
|
|
||
| mkdir -p "$RUNNER_TEMP/parca-debuginfo" | ||
| cd "$RUNNER_TEMP/parca-debuginfo" | ||
|
|
||
| if curl -fsSLO "${base_url}/${asset}"; then | ||
| shasum --ignore-missing -a 256 --check "$checksums" | ||
| chmod +x "$asset" | ||
| mv "$asset" parca-debuginfo | ||
| else | ||
| archive="${asset}.tar.gz" | ||
| curl -fsSLO "${base_url}/${archive}" | ||
| shasum --ignore-missing -a 256 --check "$checksums" | ||
| tar -xzf "$archive" parca-debuginfo | ||
| chmod +x parca-debuginfo | ||
| fi | ||
|
|
||
| echo "$PWD" >> "$GITHUB_PATH" | ||
|
|
||
| - name: Upload benchmark binary debuginfo to Polar Signals | ||
| shell: bash | ||
| env: | ||
| PATHS: ${{ inputs.paths }} | ||
| POLARSIGNALS_CLOUD_TOKEN: ${{ inputs.polarsignals-cloud-token }} | ||
| PROJECT_ID: ${{ inputs.project-id }} | ||
| STORE_ADDRESS: ${{ inputs.store-address }} | ||
| FORCE: ${{ inputs.force }} | ||
| run: | | ||
| set -Eeu -o pipefail | ||
|
|
||
| token_file="$(mktemp)" | ||
| upload_log="$(mktemp)" | ||
| trap 'rm -f "$token_file" "$upload_log"' EXIT | ||
| printf "%s" "$POLARSIGNALS_CLOUD_TOKEN" > "$token_file" | ||
|
|
||
| uploaded=0 | ||
| while IFS= read -r binary; do | ||
| binary="${binary#"${binary%%[![:space:]]*}"}" | ||
| binary="${binary%"${binary##*[![:space:]]}"}" | ||
| [[ -z "$binary" ]] && continue | ||
|
|
||
| if [[ ! -f "$binary" ]]; then | ||
| echo "::error::Debuginfo upload target does not exist: $binary" | ||
| exit 1 | ||
| fi | ||
|
|
||
| cmd=( | ||
| parca-debuginfo | ||
| upload | ||
| "--store-address=$STORE_ADDRESS" | ||
| "--bearer-token-file=$token_file" | ||
| "--grpc-headers=projectID=$PROJECT_ID" | ||
| "$binary" | ||
| ) | ||
| if [[ "$FORCE" == "true" ]]; then | ||
| cmd+=(--force) | ||
| fi | ||
|
|
||
| set +e | ||
| "${cmd[@]}" > "$upload_log" 2>&1 | ||
| status=$? | ||
| set -e | ||
| cat "$upload_log" | ||
|
|
||
| if [[ "$status" -ne 0 ]]; then | ||
| if grep -Eiq "upload id mismatch|already exists|AlreadyExists|previous upload is still in-progress|not stale yet|only stale uploads can be retried" "$upload_log"; then | ||
| echo "::notice::Debuginfo upload already exists or is in progress for $binary; continuing" | ||
| else | ||
| exit "$status" | ||
| fi | ||
| fi | ||
| uploaded=$((uploaded + 1)) | ||
| done <<< "$PATHS" | ||
|
|
||
| if [[ "$uploaded" -eq 0 ]]; then | ||
| echo "::error::No debuginfo upload targets were provided" | ||
| exit 1 | ||
| fi | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ ignored = ["vortex-cuda"] | |
|
|
||
| [[bin]] | ||
| name = "datafusion-bench" | ||
| path = "src/main.rs" | ||
| test = false | ||
|
|
||
| [lib] | ||
|
|
||
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're going to hell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was true yesterday, might as well double down