This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Upload xcresults to LUCI cloud storage #41647
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
233fc22
Upload xcresults to LUCI cloud storage
jmagman 244d39e
fix
df346c9
remove result bundle after zipped and moved
d6c732f
remove
348a709
fix py
6f7a7ca
some bash fixes
6193320
format
0493106
zip comment
c94b62b
format python
6fddd21
push and pop
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
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 |
|---|---|---|
|
|
@@ -41,25 +41,58 @@ fi | |
| # Can also be set via Simulator app Device > Rotate Device Automatically | ||
| defaults write com.apple.iphonesimulator RotateWindowWhenSignaledByGuest -int 1 | ||
|
|
||
| cd $SRC_DIR/out/$FLUTTER_ENGINE/scenario_app/Scenarios | ||
| SCENARIO_PATH=$SRC_DIR/out/$FLUTTER_ENGINE/scenario_app/Scenarios | ||
| pushd . | ||
| cd $SCENARIO_PATH | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I'm just realizing you didn't change this |
||
|
|
||
| RESULT_BUNDLE_FOLDER="ios_scenario_xcresult" | ||
| RESULT_BUNDLE_PATH="${SCENARIO_PATH}/${RESULT_BUNDLE_FOLDER}" | ||
|
|
||
| # Zip and upload xcresult to luci. | ||
| # First parameter ($1) is the zip output name. | ||
| zip_and_upload_xcresult_to_luci () { | ||
| # We don't want the zip to contain the abusolute path, | ||
| # so use relative path (./$RESULT_BUNDLE_FOLDER) instead. | ||
| zip -q -r $1 "./$RESULT_BUNDLE_FOLDER" | ||
| mv -f $1 $FLUTTER_TEST_OUTPUTS_DIR | ||
| exit 1 | ||
| } | ||
|
|
||
| echo "Running simulator tests with Skia" | ||
| echo "" | ||
|
|
||
| set -o pipefail && xcodebuild -sdk iphonesimulator \ | ||
| mktemp -d $RESULT_BUNDLE_PATH | ||
|
|
||
| if set -o pipefail && xcodebuild -sdk iphonesimulator \ | ||
| -scheme Scenarios \ | ||
| -resultBundlePath "$RESULT_BUNDLE_PATH/ios_scenario.xcresult" \ | ||
| -destination 'platform=iOS Simulator,OS=16.2,name=iPhone SE (3rd generation)' \ | ||
| clean test \ | ||
| FLUTTER_ENGINE="$FLUTTER_ENGINE" | ||
| FLUTTER_ENGINE="$FLUTTER_ENGINE"; then | ||
| echo "test success." | ||
| else | ||
| echo "test failed." | ||
| zip_and_upload_xcresult_to_luci "ios_scenario_xcresult.zip" | ||
| fi | ||
| rm -rf $RESULT_BUNDLE_PATH | ||
|
|
||
| echo "Running simulator tests with Impeller" | ||
| echo "" | ||
|
|
||
| # Skip testFontRenderingWhenSuppliedWithBogusFont: https://github.com/flutter/flutter/issues/113250 | ||
| set -o pipefail && xcodebuild -sdk iphonesimulator \ | ||
| if set -o pipefail && xcodebuild -sdk iphonesimulator \ | ||
| -scheme Scenarios \ | ||
| -resultBundlePath "$RESULT_BUNDLE_PATH/ios_scenario.xcresult" \ | ||
| -destination 'platform=iOS Simulator,OS=16.2,name=iPhone SE (3rd generation)' \ | ||
| clean test \ | ||
| FLUTTER_ENGINE="$FLUTTER_ENGINE" \ | ||
| -skip-testing "ScenariosUITests/BogusFontTextTest/testFontRenderingWhenSuppliedWithBogusFont" \ | ||
| INFOPLIST_FILE="Scenarios/Info_Impeller.plist" # Plist with FLTEnableImpeller=YES | ||
| INFOPLIST_FILE="Scenarios/Info_Impeller.plist"; then # Plist with FLTEnableImpeller=YES | ||
| echo "test success." | ||
| else | ||
| echo "test failed." | ||
| zip_and_upload_xcresult_to_luci "ios_scenario_impeller_xcresult.zip" | ||
| fi | ||
| rm -rf $RESULT_BUNDLE_PATH | ||
|
|
||
| popd | ||
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.
@gaaclarke Just found this is mistakenly commented out, I will create a patch to fix it.
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.
The PR landed before I can remove the auto_submit label :( I was a split second slower :(
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.
Ahh, nice job seeing the problem. This wasn't showing up as an error in CI? Do we need another test?
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.
It wouldn't as I also missed "try"