-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12,606 changed files
with
2,072,507 additions
and
291,172 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: build_analytics | ||
description: Gather and send build analytics | ||
inputs: | ||
build_preset: | ||
type: string | ||
default: "" | ||
build_target: | ||
type: string | ||
default: "" | ||
secs: | ||
type: string | ||
default: "" | ||
vars: | ||
type: string | ||
default: "" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Prepare s3cmd | ||
uses: ./.github/actions/s3cmd | ||
with: | ||
s3_bucket: ${{ fromJSON( inputs.vars ).AWS_BUCKET }} | ||
s3_endpoint: ${{ fromJSON( inputs.vars ).AWS_ENDPOINT }} | ||
s3_key_id: ${{ fromJSON( inputs.secs ).AWS_KEY_ID }} | ||
s3_key_secret: ${{ fromJSON( inputs.secs ).AWS_KEY_VALUE }} | ||
folder_prefix: ya- | ||
build_preset: ${{ inputs.build_preset }} | ||
|
||
- name: Run analytics tools | ||
shell: bash | ||
run: | | ||
set -ex | ||
# FIXME: target name may be not the same as dir name | ||
export TARGET_NAME=`basename ${{ inputs.build_target }}` | ||
export TARGET_DIR=${{ inputs.build_target }} | ||
export build_preset="${{ inputs.build_preset }}" | ||
export build_target="${{ inputs.build_target }}" | ||
./ya tool bloat --linker-map $TARGET_DIR/$TARGET_NAME.map.lld --input $TARGET_DIR/$TARGET_NAME --save-html ya_bloat_html | ||
./ydb/ci/build_bloat/main.py --build-dir . --html-dir-cpp html_cpp_impact --html-dir-headers html_headers_impact | ||
./ydb/ci/build_bloat/ydb_upload.py --html-dir-cpp html_cpp_impact --html-dir-headers html_headers_impact | ||
- name: Upload results | ||
shell: bash | ||
run: | | ||
set -ex | ||
s3cmd sync -r --acl-public --stats --no-progress --no-mime-magic --guess-mime-type --no-check-md5 "ya_bloat_html/" "$S3_BUCKET_PATH/ya_bloat_html/" | ||
echo "[ya bloat tool]($S3_URL_PREFIX/ya_bloat_html/index.html) (better use Safari, because it is too large for Chrome)" >> $GITHUB_STEP_SUMMARY | ||
s3cmd sync -r --acl-public --stats --no-progress --no-mime-magic --guess-mime-type --no-check-md5 "html_cpp_impact/" "$S3_BUCKET_PATH/html_cpp_impact/" | ||
echo "[cpp compilation time]($S3_URL_PREFIX/html_cpp_impact/index.html)" >> $GITHUB_STEP_SUMMARY | ||
s3cmd sync -r --acl-public --stats --no-progress --no-mime-magic --guess-mime-type --no-check-md5 "html_headers_impact/" "$S3_BUCKET_PATH/html_headers_impact/" | ||
echo "[headers impact]($S3_URL_PREFIX/html_headers_impact/index.html)" >> $GITHUB_STEP_SUMMARY | ||
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
Oops, something went wrong.