Skip to content

Cirrus build-apks task can blow up due to commit message  #24935

@amirh

Description

@amirh

flutter/plugins#949 was consistently failing the build-apks task.
I could not find something useful in the logs (see below).

After some tinkering I found out that changing both the commit message for flutter/plugins@4a5ce03 and the PR description makes Cirrus pass.

I don't know for sure but it looks like some bad character in the commit message or PR description can blow up the task.

cc @gspencergoog @cbracken

./script/incremental_build.sh build-examples --apk
Checking for changed packages from e0afdaa32e8263c3caf581e84da2e8526d21d679
Detected changes in the following 1 package(s):
webview_flutter


BUILDING APK for webview_flutter/example
Running "flutter packages get" in example...                     0.8s
Contents of .packages:
# Generated by pub on 2018-11-30 23:41:27.496900.
async:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib/
boolean_selector:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.4/lib/
charcode:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/
collection:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/
flutter:file:///home/cirrus/sdks/flutter/packages/flutter/lib/
flutter_test:file:///home/cirrus/sdks/flutter/packages/flutter_test/lib/
matcher:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.3+1/lib/
meta:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/meta-1.1.6/lib/
path:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/path-1.6.2/lib/
quiver:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.1/lib/
sky_engine:file:///home/cirrus/sdks/flutter/bin/cache/pkg/sky_engine/lib/
source_span:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/source_span-1.4.1/lib/
stack_trace:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/
stream_channel:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/stream_channel-1.6.8/lib/
string_scanner:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.4/lib/
term_glyph:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.0.1/lib/
test_api:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.1/lib/
typed_data:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/
vector_math:file:///home/cirrus/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/
webview_flutter:../lib/
webview_flutter_example:lib/

Contents of pubspec.lock:
# Generated by pub
# See https://www.dartlang.org/tools/pub/glossary#lockfile
packages:
  async:
    dependency: transitive
    description:
      name: async
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.0.8"
  boolean_selector:
    dependency: transitive
    description:
      name: boolean_selector
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.0.4"
  charcode:
    dependency: transitive
    description:
      name: charcode
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.1.2"
  collection:
    dependency: transitive
    description:
      name: collection
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.14.11"
  flutter:
    dependency: "direct main"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_test:
    dependency: "direct dev"
    description: flutter
    source: sdk
    version: "0.0.0"
  matcher:
    dependency: transitive
    description:
      name: matcher
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.12.3+1"
  meta:
    dependency: transitive
    description:
      name: meta
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.1.6"
  path:
    dependency: transitive
    description:
      name: path
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.6.2"
  quiver:
    dependency: transitive
    description:
      name: quiver
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.0.1"
  sky_engine:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.99"
  source_span:
    dependency: transitive
    description:
      name: source_span
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.4.1"
  stack_trace:
    dependency: transitive
    description:
      name: stack_trace
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.9.3"
  stream_channel:
    dependency: transitive
    description:
      name: stream_channel
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.6.8"
  string_scanner:
    dependency: transitive
    description:
      name: string_scanner
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.0.4"
  term_glyph:
    dependency: transitive
    description:
      name: term_glyph
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.0.1"
  test_api:
    dependency: transitive
    description:
      name: test_api
      url: "https://pub.dartlang.org"
    source: hosted
    version: "0.2.1"
  typed_data:
    dependency: transitive
    description:
      name: typed_data
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.1.6"
  vector_math:
    dependency: transitive
    description:
      name: vector_math
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.0.8"
  webview_flutter:
    dependency: "direct main"
    description:
      path: ".."
      relative: true
    source: path
    version: "0.0.1"
sdks:
  dart: ">=2.0.0 <3.0.0"
  flutter: ">=0.11.9 <2.0.0"

Initializing gradle...                                           6.1s
Resolving dependencies...                                       
* Error running Gradle:
ProcessException: Process "/tmp/cirrus-ci-build/packages/webview_flutter/example/android/gradlew" exited abnormally:
Starting a Gradle Daemon (subsequent builds will be faster)

The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=c65951d5-e2c8-45a2-827e-6fbac2c45ac5, currentDir=/tmp/cirrus-ci-build/packages/webview_flutter/example/android}
Attempting to read last messages from the daemon log...
Daemon pid: 971
  log file: /home/cirrus/.gradle/daemon/4.10.2/daemon-971.out.log
----- Last  20 lines from daemon log file - daemon-971.out.log -----
23:41:35.203 [INFO] [org.gradle.launcher.daemon.server.DaemonRegistryUpdater] Marking the daemon as busy, address: [0f9c9675-cda7-42ed-ae46-d8fa5a126f9b port:34115, addresses:[/0:0:0:0:0:0:0:1%lo, /127.0.0.1]]
23:41:35.203 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Marking busy by address: [0f9c9675-cda7-42ed-ae46-d8fa5a126f9b port:34115, addresses:[/0:0:0:0:0:0:0:1%lo, /127.0.0.1]]
23:41:35.204 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
23:41:35.204 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
23:41:35.206 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
23:41:35.206 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] resetting idle timer
23:41:35.206 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes.
23:41:35.207 [INFO] [org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy] Daemon is about to start building Build{id=c65951d5-e2c8-45a2-827e-6fbac2c45ac5, currentDir=/tmp/cirrus-ci-build/packages/webview_flutter/example/android}. Dispatching build started information...
23:41:35.207 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 17: dispatching class org.gradle.launcher.daemon.protocol.BuildStarted
23:41:35.209 [DEBUG] [org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment] Configuring env variables: {PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/tools/bin:/opt/android-sdk-linux/platform-tools:/home/cirrus/sdks/flutter/bin:/home/cirrus/sdks/flutter/bin/cache/dart-sdk/bin, CIRRUS_WORKING_DIR=/tmp/cirrus-ci-build, CIRRUS_BASE_BRANCH=master, CIRRUS_TASK_NAME=build-apks+java-test, ANDROID_HOME=/opt/android-sdk-linux, CIRRUS_USER_COLLABORATOR=true, CIRRUS_DEFAULT_BRANCH=master, PWD=/tmp/cirrus-ci-build/packages/webview_flutter/example/android, CIRRUS_REPO_NAME=plugins, CIRRUS_OS=linux, KUBERNETES_PORT_443_TCP=tcp://10.11.240.1:443, OLDPWD=/tmp/cirrus-ci-build/packages/webview_flutter/example/android, ANDROID_PLATFORM_VERSION=26, PLUGIN_SHARDING=--shardIndex 0 --shardCount 2, CI_NODE_TOTAL=7, ANDROID_BUILD_TOOLS_VERSION=26.0.2, CONTINUOUS_INTEGRATION=true, JAVA_DEBIAN_VERSION=8u151-b12-1~deb9u1, CIRRUS_REPO_CLONE_URL=https://github.com/flutter/plugins.git, CIRRUS_REPO_FULL_NAME=flutter/plugins, CIRRUS_REPO_OWNER=flutter, KUBERNETES_SERVICE_PORT_HTTPS=443, SHLVL=3, FLUTTER_VERSION=0.5.6, CIRRUS_COMMIT_MESSAGE=[testing] Fixes webview_flutter's plugin class (camel case) name: WebviewFlutte???

???rPlugin -> WebViewFlutterPlugin.

Sending a new PR to test the assumption that the PR message makes Cirrus think that the build has failed., CIRRUS_TASK_ID=5999841001865216, KUBERNETES_PORT=tcp://10.11.240.1:443, JAVA_HOME=/docker-java-home, ANDROID_SDK_TOOLS_VERSION=4333796, CIRRUS_BUILD_ID=6275688732557312, CA_CERTIFICATES_JAVA_VERSION=20170531+nmu1, TERM=xterm-256color, FLUTTER_ROOT=/home/cirrus/sdks/flutter, FLUTTER_HOME=/home/cirrus/sdks/flutter, KUBERNETES_SERVICE_HOST=10.11.240.1, LANG=en_US.UTF-8, CIRRUS_CHANGE_IN_REPO=4a5ce03be38f7425675ecc8e2dfef6a735a4e367, CIRRUS_BRANCH=pull/951, JAVA_VERSION=8u151, CIRRUS_USER_PERMISSION=write, CI_NODE_INDEX=3, BRANCH=pull/951, CIRRUS_CI=true, KUBERNETES_PORT_443_TCP_ADDR=10.11.240.1, OS=linux, CI=true, CIRRUS_HTTP_CACHE_HOST=127.0.0.1:12321, KUBERNETES_PORT_443_TCP_PROTO=tcp, CIRRUS_CHANGE_MESSAGE=[testing] Fixes webview_flutter's plugin class (camel case) name: WebviewFlutte???

???rPlugin -> WebViewFlutterPlugin.

Sending a new PR to test the assumption that the PR message makes Cirrus think that the build has failed., KUBERNETES_SERVICE_PORT=443, HOSTNAME=cirrus-ci-task-5999841001865216-r2g97, CIRRUS_BASE_SHA=821f854f1119abfa43e21be9f5fc11ee9359a447, CIRRUS_REPO_CLONE_HOST=github.com, KUBERNETES_PORT_443_TCP_PORT=443, CIRRUS_PR=951, HOME=/home/cirrus}
23:41:35.211 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 15: received class org.gradle.launcher.daemon.protocol.CloseInput
23:41:35.212 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 15: Received IO message from client: org.gradle.launcher.daemon.protocol.CloseInput@62ee3038
----- End of the daemon log -----


FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
  Command: /tmp/cirrus-ci-build/packages/webview_flutter/example/android/gradlew app:properties

Please review your Gradle project setup in the android/ folder.



The following build are failing (see above for details):
 * webview_flutter/example (apk)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: contributor-productivityTeam-specific productivity, code health, technical debt.p: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.t: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions