Skip to content

Failing postsubmit test: 'FormatException: No value was provided for required key: out_dir_shared' #158120

@victorsanni

Description

@victorsanni

Type of Request

bug

Infrastructure Environment

Postsubmit tests (LUCI)

What is happening?

Error logs
05:25 +30: test/integration.shard/isolated/native_assets_test.dart: flutter build apk succeeds without libraries
05:38 +30 -1: test/integration.shard/isolated/native_assets_test.dart: flutter build apk succeeds without libraries [E]
  Exception: flutter build failed: 1
  Unhandled exception:
  FormatException: No value was provided for required key: out_dir_shared
  #0      MapJsonUtils.get (package:native_assets_cli/src/json_utils.dart:50:7)
  #1      MapJsonUtils.path (package:native_assets_cli/src/json_utils.dart:25:48)
  #2      new HookConfig (package:native_assets_cli/src/config.dart:88:38)
  #3      new BuildConfig (package:native_assets_cli/src/config.dart)
  #4      build (package:native_assets_cli/src/api/build.dart:99:18)
  #5      main (file:///Volumes/Work/s/w/ir/x/t/UUbYLX/package_with_native_assets/hook/build.dart:4:9)
  #6      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
  #7      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
  Building native assets for package:package_with_native_assets failed.
  file:///Volumes/Work/s/w/ir/x/t/UUbYLX/package_with_native_assets/hook/build.dart returned with exit code: 255.
  To reproduce run:
  /Volumes/Work/s/w/ir/x/w/flutter/bin/dart --packages=/Volumes/Work/s/w/ir/x/t/UUbYLX/package_with_native_assets/.dart_tool/package_config.json /Volumes/Work/s/w/ir/x/t/UUbYLX/package_with_native_assets/.dart_tool/native_assets_builder/545fcee0f93c80dfaac63b71612fc26c/hook.dill --config=/Volumes/Work/s/w/ir/x/t/UUbYLX/package_with_native_assets/.dart_tool/native_assets_builder/545fcee0f93c80dfaac63b71612fc26c/config.json
  stderr:
  Unhandled exception:
  FormatException: No value was provided for required key: out_dir_shared
  #0      MapJsonUtils.get (package:native_assets_cli/src/json_utils.dart:50:7)
  #1      MapJsonUtils.path (package:native_assets_cli/src/json_utils.dart:25:48)
  #2      new HookConfig (package:native_assets_cli/src/config.dart:88:38)
  #3      new BuildConfig (package:native_assets_cli/src/config.dart)
  #4      build (package:native_assets_cli/src/api/build.dart:99:18)
  #5      main (file:///Volumes/Work/s/w/ir/x/t/UUbYLX/package_with_native_assets/hook/build.dart:4:9)
  #6      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
  #7      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
  
  stdout:
  
  
  Target native_assets failed: Error: Building native assets failed. See the logs for more details.
  
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:compileFlutterBuildDebug'.
  > Process 'command '/Volumes/Work/s/w/ir/x/w/flutter/bin/flutter'' finished with non-zero exit value 1
  
  * 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.
  
  BUILD FAILED in 9s
  Gradle task assembleDebug failed with exit code 1
  
  Resolving dependencies...
  Downloading packages...
    async 2.11.0 (2.12.0 available)
    boolean_selector 2.1.1 (2.1.2 available)
    characters 1.3.0 (1.3.1 available)
    clock 1.1.1 (1.1.2 available)
    collection 1.19.0 (1.19.1 available)
    fake_async 1.3.1 (1.3.2 available)
    matcher 0.12.16+1 (0.12.17 available)
    material_color_utilities 0.11.1 (0.12.0 available)
    meta 1.15.0 (1.16.0 available)
    path 1.9.0 (1.9.1 available)
    string_scanner 1.3.0 (1.4.0 available)
    vm_service 14.3.0 (14.3.1 available)
  Got dependencies!
  12 packages have newer versions incompatible with dependency constraints.
  Try `flutter pub outdated` for more information.
  
  Running Gradle task 'assembleDebug'...                          
  Running Gradle task 'assembleDebug'...                             10.2s
  
  test/integration.shard/isolated/native_assets_test.dart 241:11       main.<fn>.<fn>
  ===== asynchronous gap ===========================
  test/integration.shard/isolated/native_assets_test_utils.dart 275:5  inTempDir
  ===== asynchronous gap ===========================
  test/integration.shard/isolated/native_assets_test.dart 227:7        main.<fn>

Steps to reproduce

No response

Expected results

No response

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: disabled testTracks the restoration of a disabled testfyi-infraFor the attention of Infrastructure teamfyi-macosFor the attention of macOS platform teamteam-toolOwned by Flutter Tool team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions