Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[M] Change in dart/sdk[main]: Remove left-over `.packages`, clean up `pubspec.yaml` files.

0 views
Skip to first unread message

Lasse Nielsen (Gerrit)

unread,
Mar 5, 2025, 1:32:53 PMMar 5
to Kevin Moore, Ben Konyi, Paul Berry, Commit Queue, Alexander Markov, Jens Johansen, dart-analys...@google.com, dart-dc-te...@google.com, dart2js-te...@google.com, rev...@dartlang.org, vm-...@dartlang.org
Attention needed from Ben Konyi, Kevin Moore and Paul Berry

Lasse Nielsen added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Lasse Nielsen . resolved

Removing references to `.packages` and making all `pubspec.yaml` files be including in `generate_package_config.dart` (I hope).

Open in Gerrit

Related details

Attention is currently required from:
  • Ben Konyi
  • Kevin Moore
  • Paul Berry
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedCommit-Message-Has-TEST
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I7d1b3132e2d9165c8f9ffbad5780d8ff5a5ba42a
Gerrit-Change-Number: 413820
Gerrit-PatchSet: 1
Gerrit-Owner: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Ben Konyi <bko...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-CC: Alexander Markov <alexm...@google.com>
Gerrit-CC: Jens Johansen <je...@google.com>
Gerrit-Attention: Kevin Moore <kev...@google.com>
Gerrit-Attention: Ben Konyi <bko...@google.com>
Gerrit-Attention: Paul Berry <paul...@google.com>
Gerrit-Comment-Date: Wed, 05 Mar 2025 18:32:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Kevin Moore (Gerrit)

unread,
Mar 5, 2025, 1:35:21 PMMar 5
to Lasse Nielsen, Ben Konyi, Paul Berry, Commit Queue, Alexander Markov, Jens Johansen, dart-analys...@google.com, dart-dc-te...@google.com, dart2js-te...@google.com, rev...@dartlang.org, vm-...@dartlang.org
Attention needed from Ben Konyi, Lasse Nielsen and Paul Berry

Kevin Moore voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Ben Konyi
  • Lasse Nielsen
  • Paul Berry
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement is not satisfiedCommit-Message-Has-TEST
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I7d1b3132e2d9165c8f9ffbad5780d8ff5a5ba42a
Gerrit-Change-Number: 413820
Gerrit-PatchSet: 1
Gerrit-Owner: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Ben Konyi <bko...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-CC: Alexander Markov <alexm...@google.com>
Gerrit-CC: Jens Johansen <je...@google.com>
Gerrit-Attention: Lasse Nielsen <l...@google.com>
Gerrit-Attention: Ben Konyi <bko...@google.com>
Gerrit-Attention: Paul Berry <paul...@google.com>
Gerrit-Comment-Date: Wed, 05 Mar 2025 18:35:18 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Paul Berry (Gerrit)

unread,
Mar 5, 2025, 2:45:49 PMMar 5
to Lasse Nielsen, Kevin Moore, Ben Konyi, Commit Queue, Alexander Markov, Jens Johansen, dart-analys...@google.com, dart-dc-te...@google.com, dart2js-te...@google.com, rev...@dartlang.org, vm-...@dartlang.org
Attention needed from Ben Konyi, Kevin Moore and Lasse Nielsen

Paul Berry added 4 comments

File pkg/_fe_analyzer_shared/lib/src/util/resolve_relative_uri.dart
Line 20, Patchset 2 (Latest): baseUri = Uri.parse('dart:$path/');
Paul Berry . unresolved

This looks like more than just a clean-up. AFAICT, it changes the behavior so that e.g. `dart:core` becomes `dart:core/`. Previously, it became `dart:core/core.dart` (see comment on line 16).

Is this a purposeful behavioral change? If so, let's move it to its own CL so it can get proper review

File runtime/tools/dartfuzz/pubspec.yaml
Line 1, Patchset 2 (Parent):name: dartfuzz
Paul Berry . unresolved

What's the rationale for removing this file?

This also feels like more than just clean-up, so consider moving to another CL.

File tools/bots/pubspec.yaml
Line 1, Patchset 2 (Latest):name: bots
Paul Berry . unresolved

What's the rationale for adding this file?

This also feels like more than just clean-up, so consider moving to another CL.

File tools/generate_package_config.dart
Line 30, Patchset 2 (Latest): platform('runtime/tools/profiling'),
Paul Berry . unresolved

These changes also seem to go beyond what I would have expected as clean-up. I think they should be reviewed separately, in a CL that explains the purpose for the changes.

Open in Gerrit

Related details

Attention is currently required from:
  • Ben Konyi
  • Kevin Moore
  • Lasse Nielsen
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedCommit-Message-Has-TEST
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I7d1b3132e2d9165c8f9ffbad5780d8ff5a5ba42a
Gerrit-Change-Number: 413820
Gerrit-PatchSet: 2
Gerrit-Owner: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Ben Konyi <bko...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-CC: Alexander Markov <alexm...@google.com>
Gerrit-CC: Jens Johansen <je...@google.com>
Gerrit-Attention: Kevin Moore <kev...@google.com>
Gerrit-Attention: Lasse Nielsen <l...@google.com>
Gerrit-Attention: Ben Konyi <bko...@google.com>
Gerrit-Comment-Date: Wed, 05 Mar 2025 19:45:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Lasse Nielsen (Gerrit)

unread,
Mar 6, 2025, 4:26:19 AMMar 6
to Kevin Moore, Ben Konyi, Paul Berry, Commit Queue, Alexander Markov, Jens Johansen, dart-analys...@google.com, dart-dc-te...@google.com, dart2js-te...@google.com, rev...@dartlang.org, vm-...@dartlang.org
Attention needed from Ben Konyi, Kevin Moore and Paul Berry

Lasse Nielsen added 4 comments

File pkg/_fe_analyzer_shared/lib/src/util/resolve_relative_uri.dart
Line 20, Patchset 2 (Latest): baseUri = Uri.parse('dart:$path/');
Paul Berry . unresolved

This looks like more than just a clean-up. AFAICT, it changes the behavior so that e.g. `dart:core` becomes `dart:core/`. Previously, it became `dart:core/core.dart` (see comment on line 16).

Is this a purposeful behavioral change? If so, let's move it to its own CL so it can get proper review

Lasse Nielsen

There is no functional change, the `$path.dart` part had no effect on the resolution.

It doesn't change the URI of `dart:core` itself, that is still the canonical URI for the platform library. It only changes the base that other URIs are resolved against when the base is `dart:core`.
It makes no difference what's after the last `/` of the base URI when you resolve against it, that part will always be replaced.
(Unless you resolve with a completely empty URI, an empty string, which we can assume that the platform libraries won't do, and if they do, that would have created `dart:core/core.dart` which is a different URI than `dart:core`, so it wouldn't have worked anyway.)

File runtime/tools/dartfuzz/pubspec.yaml
Paul Berry . unresolved

What's the rationale for removing this file?

This also feels like more than just clean-up, so consider moving to another CL.

Lasse Nielsen

The rationale is that this is dead-config pruning.
The pubspec is not used, ever, so removing it should change nothing.

It's wasn't included by `generate_package_config.dart`, so the dependencies are not actually used for anything, code running won't see it as a package (you can't refer to it as `package:dartfuzz` anywhere in the SDK), and looking at the dependencies could be misleading, if they weren't so trivial.
Every dependency in there is also a dependency for the `tools/` package (and numeerous others): analyzer, args, matcher, and lints as dev-dependency, and the every dependency version is "any".

I chose between updating the pubspec to be useful and adding it to the generator script, or removing it, and couldn't see any benefit from adding it.

The only thing that *could* change is how `dart analyze` works on the directory,
since that's the one tool that can use `pubspec.yaml` as input instead of `package_config.json`. But with an SDK and language version of 2.10, that's clearly not happening.

File tools/bots/pubspec.yaml
Paul Berry . unresolved

What's the rationale for adding this file?

This also feels like more than just clean-up, so consider moving to another CL.

Lasse Nielsen

This one was probably not necessary.

One issue with adding the `tools/` pubspec to the generator script was that it gave the `tools/bots/compare_results.dart` script a package URI (`package:sdk_tools/bots/compare_results.dart`). When it's run (or analyzed) it has the package URI as URI, which makes its import of `../../pkg/test_runner/...` not work.

To avoid that, I added first this pubspec, figuring that since the directory has a `lib/` directory, maybe it should be a package by itself, and when that didn't work, also `lib/` in `tools/`. The latter should be enough, so I can remove this file again.

File tools/generate_package_config.dart
Line 30, Patchset 2 (Latest): platform('runtime/tools/profiling'),
Paul Berry . unresolved

These changes also seem to go beyond what I would have expected as clean-up. I think they should be reviewed separately, in a CL that explains the purpose for the changes.

Lasse Nielsen

The intended "clean up" here is to avoid having dangling `pubspec.yaml` files that are not included by `generate_package_config.dart`.
I can call it something else, but it is cleaning up a mess 😊

But I can see that I am combinging the removal of `.packages` with the clean-up of `pubspec.yaml` files and simplicification of the resolution code. I can try to split those three up.

Open in Gerrit

Related details

Attention is currently required from:
  • Ben Konyi
  • Kevin Moore
  • Paul Berry
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedCommit-Message-Has-TEST
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I7d1b3132e2d9165c8f9ffbad5780d8ff5a5ba42a
Gerrit-Change-Number: 413820
Gerrit-PatchSet: 2
Gerrit-Owner: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Ben Konyi <bko...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-CC: Alexander Markov <alexm...@google.com>
Gerrit-CC: Jens Johansen <je...@google.com>
Gerrit-Attention: Kevin Moore <kev...@google.com>
Gerrit-Attention: Paul Berry <paul...@google.com>
Gerrit-Attention: Ben Konyi <bko...@google.com>
Gerrit-Comment-Date: Thu, 06 Mar 2025 09:26:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Berry <paul...@google.com>
unsatisfied_requirement
open
diffy

Ben Konyi (Gerrit)

unread,
Mar 13, 2025, 1:37:05 PMMar 13
to Lasse Nielsen, Kevin Moore, Paul Berry, Commit Queue, Alexander Markov, Jens Johansen, dart-analys...@google.com, dart-dc-te...@google.com, dart2js-te...@google.com, rev...@dartlang.org, vm-...@dartlang.org
Attention needed from Kevin Moore, Lasse Nielsen and Paul Berry

Ben Konyi voted and added 1 comment

Votes added by Ben Konyi

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Ben Konyi . resolved

vm_service and DDS related changes LGTM.

Open in Gerrit

Related details

Attention is currently required from:
  • Kevin Moore
  • Lasse Nielsen
  • Paul Berry
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement is not satisfiedCommit-Message-Has-TEST
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I7d1b3132e2d9165c8f9ffbad5780d8ff5a5ba42a
Gerrit-Change-Number: 413820
Gerrit-PatchSet: 5
Gerrit-Owner: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Ben Konyi <bko...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-CC: Alexander Markov <alexm...@google.com>
Gerrit-CC: Jens Johansen <je...@google.com>
Gerrit-Attention: Kevin Moore <kev...@google.com>
Gerrit-Attention: Lasse Nielsen <l...@google.com>
Gerrit-Attention: Paul Berry <paul...@google.com>
Gerrit-Comment-Date: Thu, 13 Mar 2025 17:37:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Lasse Nielsen (Gerrit)

unread,
Mar 14, 2025, 11:27:05 AMMar 14
to Ben Konyi, Kevin Moore, Paul Berry, Commit Queue, Alexander Markov, Jens Johansen, dart-analys...@google.com, dart-dc-te...@google.com, dart2js-te...@google.com, rev...@dartlang.org, vm-...@dartlang.org
Attention needed from Ben Konyi, Kevin Moore and Paul Berry

Lasse Nielsen added 1 comment

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Lasse Nielsen . resolved

This CL was split into three parts, fx: https://dart-review.googlesource.com/c/sdk/+/414020
Sorry I forgot to abandon the original.

Open in Gerrit

Related details

Attention is currently required from:
  • Ben Konyi
  • Kevin Moore
  • Paul Berry
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedCommit-Message-Has-TEST
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I7d1b3132e2d9165c8f9ffbad5780d8ff5a5ba42a
Gerrit-Change-Number: 413820
Gerrit-PatchSet: 6
Gerrit-Owner: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Ben Konyi <bko...@google.com>
Gerrit-Reviewer: Kevin Moore <kev...@google.com>
Gerrit-Reviewer: Lasse Nielsen <l...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-CC: Alexander Markov <alexm...@google.com>
Gerrit-CC: Jens Johansen <je...@google.com>
Gerrit-Attention: Kevin Moore <kev...@google.com>
Gerrit-Attention: Ben Konyi <bko...@google.com>
Gerrit-Attention: Paul Berry <paul...@google.com>
Gerrit-Comment-Date: Fri, 14 Mar 2025 15:27:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Lasse Nielsen (Gerrit)

unread,
Mar 14, 2025, 11:27:08 AMMar 14
to Ben Konyi, Kevin Moore, Paul Berry, Commit Queue, Alexander Markov, Jens Johansen, dart-analys...@google.com, dart-dc-te...@google.com, dart2js-te...@google.com, rev...@dartlang.org, vm-...@dartlang.org

Lasse Nielsen abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedCommit-Message-Has-TEST
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: abandon
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages