To ensure code stability and avoid regressions, AI agents MUST perform the following verification steps locally before pushing changes.
The project uses a custom task runner. Execute the buildbot task to perform linting, formatting checks, code generation validation, and full test execution.
dart run tool/task.dart buildbot
IMPORTANT: If buildbot fails with “generated files needed to be rebuilt”, run:
dart run tool/task.dart build
Then commit the resulting changes before rerunning buildbot. Make sure you rebuild before claiming a task is complete.
If you modified canonicalization or documentation rendering, verify these specific test groups:
dart run test test/canonical_for_test.dart and dart run test test/model_utils_test.dart.test/options_test.dart). If your changes cause new warnings, verify if they are legitimate or if canonicalization is failing.model_special_cases_test.dart). If these fail due to missing executables, it may be an environment issue rather than a logic regression.dart analyze . and dart format . before final submission.