forked from pulumi/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More robust perf matrix (pulumi#1265)
* Add helper Make targets for testing individual examples * Use gotestfmt, tolerate failure, upload traces artifact * Update trace-tool dep to tolerate CSV parse issues * Add GITHUB_TOKEN * Install known version * Add GITHUB_TOKE * Fix syntax * Forgot -json switch
- Loading branch information
Showing
4 changed files
with
39 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,14 @@ jobs: | |
- run: echo "Currently Pulumi $(pulumi version) is installed" | ||
- name: Install Testing Dependencies | ||
run: make ensure | ||
- name: Install gotestfmt | ||
uses: jaxxstorm/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
repo: haveyoudebuggedit/gotestfmt | ||
tag: v2.3.2 | ||
cache: enable | ||
- name: Create a Folder for Collecting Traces | ||
run: |- | ||
mkdir "$PWD/traces" | ||
|
@@ -74,7 +82,19 @@ jobs: | |
echo "PULUMI_TRACING_TAG_PULUMI_VERSION=$(pulumi version)" >> $GITHUB_ENV | ||
echo "PULUMI_TRACING_DIR=$PWD/traces" >> $GITHUB_ENV | ||
- name: Run Performance Matrix | ||
run: make performance_test_set | ||
# Even if some Go tests fail, others may have succeded and | ||
# produced perf data; continue to try to upload it. | ||
continue-on-error: true | ||
shell: bash | ||
run: | | ||
set -euo pipefail | ||
cd misc/test && go test . --timeout 4h -count=1 -json -short -parallel 40 --tags=Performance 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
- name: Upload traces GHA artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: traces | ||
path: traces | ||
retention-days: 14 | ||
- name: Upload Traces to s3:https://cli-performance-metrics | ||
run: |- | ||
F="$PWD/traces/metrics.parquet.snappy" | ||
|
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