Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

set -e on assemble_apk.sh #17588

Merged
merged 2 commits into from
Apr 8, 2020
Merged

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Apr 8, 2020

Without this, CI will incorrectly think that the script has succeeded even if a sub-invocation failed.

Additional context at #17583

Copy link

@blasten blasten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +6 to +7
./flutter/tools/gn --unopt
ninja -C out/host_debug_unopt sky_engine sky_services
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blasten - I believe this is a better fix than changing the pubspec, since we have other modes that want to run jit and need debug mode built. The expectation is that everyone runs at least this for host_debug_unopt (it's a pretty fast build step, just involves copying/repackaging dart files).

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any benefit in doing this step in the LUCI recipe before assemble_apk.sh is invoked?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point that's how it worked I think. The danger is that someone "fixes" the recipe without realizing its breaking this script - this also lets the script run locally.

If this was doing actual C compilation it could be a problem too, because you have to make sure goma is available/running and LUCI likes to handle that special, but it should be fine here. These tasks just copy dart files around.

@dnfield dnfield added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Apr 8, 2020
@dnfield dnfield merged commit 0726621 into flutter:master Apr 8, 2020
@dnfield dnfield deleted the scenario_app_compile branch April 8, 2020 21:52
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 8, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 10, 2020
goderbauer pushed a commit to goderbauer/engine that referenced this pull request Apr 16, 2020
* set -e on assemble_apk.sh

* build the necessary artifacts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes platform-android waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants