[XL] Change in dart/sdk[main]: DeCo. Refactor index tests, add primary constructor tests.

0 views
Skip to first unread message

Konstantin Shcheglov (Gerrit)

unread,
Jan 21, 2026, 10:33:44 AM (14 hours ago) Jan 21
to Paul Berry, Johnni Winther, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther and Paul Berry

Konstantin Shcheglov added 2 comments

Patchset-level comments
File-level comment, Patchset 4:
Paul Berry . unresolved

I don't feel that I can review this CL effectively because it combines so many renames with the addition of so many new tests. This means that in order to review it I will have to (a) skip review of the test file (which seems irresponsible), (b) track down which tests are new and which tests are old by doing a lot of searching, or (c) just go ahead and review all the tests.

What would be ideal for me is if you could split this into two CLs: one that renames the existing tests, and a follow-up CL that adds the new tests. Then, I could reassure myself that the first CL only contained renames by seeing that the diff contained an equal number of added and removed lines, and so I could focus my review effort on the second CL.

Konstantin Shcheglov

Unfortunately this is not just rename, but also re-group test situations, in a way described in the CL message. I believe the easiest approach would be just review all the tests.

Commit Message
Line 7, Patchset 4:DeCo. Refactory index tests, add primary constructor tests.
Paul Berry . resolved

Change to `Refactor`.

Konstantin Shcheglov

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Johnni Winther
  • Paul Berry
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • 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: I731033eee682e4088eadfa2e6d91adca79c00942
Gerrit-Change-Number: 474620
Gerrit-PatchSet: 5
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Attention: Paul Berry <paul...@google.com>
Gerrit-Attention: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Wed, 21 Jan 2026 15:33:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Berry <paul...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Paul Berry (Gerrit)

unread,
Jan 21, 2026, 12:44:42 PM (12 hours ago) Jan 21
to Konstantin Shcheglov, Johnni Winther, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther and Konstantin Shcheglov

Paul Berry added 1 comment

Patchset-level comments
Paul Berry . unresolved

I don't feel that I can review this CL effectively because it combines so many renames with the addition of so many new tests. This means that in order to review it I will have to (a) skip review of the test file (which seems irresponsible), (b) track down which tests are new and which tests are old by doing a lot of searching, or (c) just go ahead and review all the tests.

What would be ideal for me is if you could split this into two CLs: one that renames the existing tests, and a follow-up CL that adds the new tests. Then, I could reassure myself that the first CL only contained renames by seeing that the diff contained an equal number of added and removed lines, and so I could focus my review effort on the second CL.

Konstantin Shcheglov

Unfortunately this is not just rename, but also re-group test situations, in a way described in the CL message. I believe the easiest approach would be just review all the tests.

Paul Berry

Ok, I didn't realize it was regrouping as well as renaming. Would it be possible to have a CL that renames and regroups the existing tests, followed by one that adds the new tests?

Judging by the size of the diffs in index_test.dart (-2342, +3264), I'm guessing that there's about 2342 lines of tests that were regrouped and renamed and about 3264-2342=922 lines of tests that were added, so if the CL were split into two in the way I suggest, it would be about 2342 lines of renaming and regrouping (which I would feel comfortable giving a much less thorough review), followed by 922 lines of added tests, which I would review more thoroughly. If we can find an approach where I only have to review 922 lines thoroughly rather than 3264, I believe that would be a far more efficient use of the time I have available for code review.

Open in Gerrit

Related details

Attention is currently required from:
  • Johnni Winther
  • Konstantin Shcheglov
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • 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: I731033eee682e4088eadfa2e6d91adca79c00942
Gerrit-Change-Number: 474620
Gerrit-PatchSet: 5
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Wed, 21 Jan 2026 17:44:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Berry <paul...@google.com>
Comment-In-Reply-To: Konstantin Shcheglov <sche...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Konstantin Shcheglov (Gerrit)

unread,
Jan 21, 2026, 12:58:39 PM (11 hours ago) Jan 21
to Paul Berry, Johnni Winther, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther and Paul Berry

Konstantin Shcheglov added 1 comment

Patchset-level comments
Paul Berry . unresolved

I don't feel that I can review this CL effectively because it combines so many renames with the addition of so many new tests. This means that in order to review it I will have to (a) skip review of the test file (which seems irresponsible), (b) track down which tests are new and which tests are old by doing a lot of searching, or (c) just go ahead and review all the tests.

What would be ideal for me is if you could split this into two CLs: one that renames the existing tests, and a follow-up CL that adds the new tests. Then, I could reassure myself that the first CL only contained renames by seeing that the diff contained an equal number of added and removed lines, and so I could focus my review effort on the second CL.

Konstantin Shcheglov

Unfortunately this is not just rename, but also re-group test situations, in a way described in the CL message. I believe the easiest approach would be just review all the tests.

Paul Berry

Ok, I didn't realize it was regrouping as well as renaming. Would it be possible to have a CL that renames and regroups the existing tests, followed by one that adds the new tests?

Judging by the size of the diffs in index_test.dart (-2342, +3264), I'm guessing that there's about 2342 lines of tests that were regrouped and renamed and about 3264-2342=922 lines of tests that were added, so if the CL were split into two in the way I suggest, it would be about 2342 lines of renaming and regrouping (which I would feel comfortable giving a much less thorough review), followed by 922 lines of added tests, which I would review more thoroughly. If we can find an approach where I only have to review 922 lines thoroughly rather than 3264, I believe that would be a far more efficient use of the time I have available for code review.

Konstantin Shcheglov

I believe that there is already segregation in place. New tests are around primary constructors. Look for `_primary` and `_newHead` categories in the test method names.

Open in Gerrit

Related details

Attention is currently required from:
  • Johnni Winther
  • Paul Berry
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • 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: I731033eee682e4088eadfa2e6d91adca79c00942
Gerrit-Change-Number: 474620
Gerrit-PatchSet: 5
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Attention: Paul Berry <paul...@google.com>
Gerrit-Attention: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Wed, 21 Jan 2026 17:58:36 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Paul Berry (Gerrit)

unread,
Jan 21, 2026, 1:22:57 PM (11 hours ago) Jan 21
to Konstantin Shcheglov, Johnni Winther, Commit Queue, dart-analys...@google.com, rev...@dartlang.org
Attention needed from Johnni Winther and Konstantin Shcheglov

Paul Berry added 1 comment

Patchset-level comments
Paul Berry . unresolved

I don't feel that I can review this CL effectively because it combines so many renames with the addition of so many new tests. This means that in order to review it I will have to (a) skip review of the test file (which seems irresponsible), (b) track down which tests are new and which tests are old by doing a lot of searching, or (c) just go ahead and review all the tests.

What would be ideal for me is if you could split this into two CLs: one that renames the existing tests, and a follow-up CL that adds the new tests. Then, I could reassure myself that the first CL only contained renames by seeing that the diff contained an equal number of added and removed lines, and so I could focus my review effort on the second CL.

Konstantin Shcheglov

Unfortunately this is not just rename, but also re-group test situations, in a way described in the CL message. I believe the easiest approach would be just review all the tests.

Paul Berry

Ok, I didn't realize it was regrouping as well as renaming. Would it be possible to have a CL that renames and regroups the existing tests, followed by one that adds the new tests?

Judging by the size of the diffs in index_test.dart (-2342, +3264), I'm guessing that there's about 2342 lines of tests that were regrouped and renamed and about 3264-2342=922 lines of tests that were added, so if the CL were split into two in the way I suggest, it would be about 2342 lines of renaming and regrouping (which I would feel comfortable giving a much less thorough review), followed by 922 lines of added tests, which I would review more thoroughly. If we can find an approach where I only have to review 922 lines thoroughly rather than 3264, I believe that would be a far more efficient use of the time I have available for code review.

Konstantin Shcheglov

I believe that there is already segregation in place. New tests are around primary constructors. Look for `_primary` and `_newHead` categories in the test method names.

Paul Berry

Glad to hear there is already segregation in place. I believe that means that it would be relatively easy for you to create the two CLs I suggested. Am I understanding that correctly?

Open in Gerrit

Related details

Attention is currently required from:
  • Johnni Winther
  • Konstantin Shcheglov
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • 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: I731033eee682e4088eadfa2e6d91adca79c00942
Gerrit-Change-Number: 474620
Gerrit-PatchSet: 5
Gerrit-Owner: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Johnni Winther <johnni...@google.com>
Gerrit-Reviewer: Konstantin Shcheglov <sche...@google.com>
Gerrit-Reviewer: Paul Berry <paul...@google.com>
Gerrit-Attention: Konstantin Shcheglov <sche...@google.com>
Gerrit-Attention: Johnni Winther <johnni...@google.com>
Gerrit-Comment-Date: Wed, 21 Jan 2026 18:22:54 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages