Skip to content

[plugins] [ci] Plugins with custom analysis_options.yaml are failing analyze test in flutter/flutter. #78994

@ditman

Description

@ditman

The flutter/plugins roller is failing pre-submit:

Activated flutter_plugin_tools 0.0.45+3.
▌09:47:03▐ ELAPSED TIME: 5.143s for ../../../k/flutter/bin/cache/dart-sdk/bin/pub global activate flutter_plugin_tools in ../../tmp/t/pluginsDYZTNQ
▌09:47:03▐ RUNNING: cd ../../tmp/t/pluginsDYZTNQ; ../../../k/flutter/bin/cache/dart-sdk/bin/pub global run flutter_plugin_tools analyze
Verifying analysis settings...
Found an extra analysis_options.yaml in /b/s/w/ir/tmp/t/pluginsDYZTNQ/packages/android_alarm_manager/analysis_options.yaml.
If this was deliberate, pass the package to the analyze command with the --custom-analysis flag and try again.

https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20flutter_plugins/5356/overview

It seems that the issue was introduced by this change:

flutter/plugins#3703

We need to configure the analysis command to accept custom analysis_options.yaml files, either here:

  • flutter/dev/bots/test.dart

    Lines 851 to 860 in 2e06ed0

    await runCommand(
    pub,
    <String>[
    'global',
    'run',
    'flutter_plugin_tools',
    'analyze',
    ],
    workingDirectory: checkout.path,
    );
  • Or publish a new version of flutter_plugin_tools which allows for custom yaml files.

Metadata

Metadata

Assignees

Labels

packageflutter/packages repository. See also p: labels.team-infraOwned by Infrastructure team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions