Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@johnmccutchan
Copy link
Contributor

  • Invokes lints for dart, python, c, and java.
  • Captures all output of executions into an artifacts file (a json file).
  • Runs lints concurrently.
  • Cool status display while running.
  • Tests.

Copy link
Contributor

@matanlurey matanlurey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable.

Most of my comments are optional, feel free to do the ones you have time for, and I'd leave TODOs the ones you agree with but want to us to collectively handle post-merge.

// TODO(loic-sharma): Relax this restriction.
if (environment.platform.isWindows) {
environment.logger
.error('lint command is not supported on Windows (for now).');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider just adding a logger.fatal that:

  • Throws FatalError(...)
  • The root program catches it, displays it (in verbose mode, with a stack trace), and returns 1

return 1;
}
final bool verbose = globalResults![verboseFlag] as bool;
final ProcessQueue pq = ProcessQueue(environment);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zach has some similar classes for this in other parts of tools/, I'd check if we could either use it, or at least make sure we're not creating multiple things to do roughly the same thing (I'd look in tools/clang_tidy as a start).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

/// Returns the dart-sdk/bin directory.
String findDartBinDirectory(Environment env) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bin/et{.bat} invokes the engine tool entrypoint using the prebuilt dart binary under prebuilts, so you might also just use the parent directory of env.platform.resolvedExecutable for this.

@johnmccutchan johnmccutchan added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 12, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 12, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented Mar 12, 2024

auto label is removed for flutter/engine/51238, Failed to merge flutter/engine/51238 with Pull request flutter/engine/51238 could not be merged: Head branch is out of date. Review and try the merge again..

- Invokes lints for dart, python, c, and java.
- Captures all output of executions into an artifacts file (a json file).
- Runs lints concurrently.
- Cool status display while running.
- Tests.
@johnmccutchan johnmccutchan merged commit 2871c26 into flutter:main Mar 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants