
dart-log-failure-parser
β Officialβ 177,640by flutter Β· part of flutter/flutter
Parse failures from Dart and Flutter test logs.
This is the playbook your agent receives when the skill activates β you don't need to read it to use the skill, but it's here to audit before installing.
Dart Log Failure Parser
Workflow
1. Analyze Raw Log Output
Analyze the raw log output for failure details. Do not skim the output; check the entire log. The description of findings should include specific details for the failures (e.g., unformatted files, specific test names), not just the top-level command that failed.
2. Look for Failure Patterns
Pattern A: Error Blocks (e.g., Linux Analyze)
Search for blocks starting with β‘ERROR #.
Example:
βββ‘ERROR #1βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Command: bin/cache/dart-sdk/bin/dart --enable-asserts /b/s/w/ir/x/w/flutter/dev/bots/analyze_snippet_code.dart --verbose
β Command exited with exit code 255 but expected zero exit code.
β Working directory: /b/s/w/ir/x/w/flutter
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββPattern B: Task Result JSON
Search for "Task result:" followed by a JSON object. Example:
Task result:
{
"success": false,
"reason": "Task failed: PathNotFoundException: Cannot open file..."
}Pattern C: Failing Tests List
For general Dart tests, look for a list at the end of the log starting with "Failing tests:". Example:
Failing tests:
test/general.shard/cache_test.dart: FontSubset artifacts for all platforms on arm64 hosts
test/general.shard/cache_test.dart: FontSubset artifacts on arm64 linuxPattern D: Build Failures
For build failures (e.g., engine tests failing at compile time), look for the following indicators in the logs or API summaries:
- Lines starting with
FAILED:(indicates a Ninja target failed). - Compiler error messages (e.g.,
error:,fatal error:). - Linker error messages (e.g.,
undefined reference to). - Summary messages in the check-runs API output like
1 build failed: [<build_name>].
npx skills add flutter/flutter --skill "dart-log-failure-parser" --full-depthRun this in your project β your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under BSD-3-Clauseβ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub β