Make "All rights reserved" Optional in the License [chromium/tools/depot_tools : main]

0 views
Skip to first unread message

Robert Liao (Gerrit)

unread,
Aug 5, 2022, 4:00:36 PM8/5/22
to chops-source-team...@google.com, Bruce Dawson, Mike Frysinger, chromium...@chromium.org

Attention is currently required from: Bruce Dawson.

Patch set 1:Auto-Submit +1Commit-Queue +1

View Change

1 comment:

  • Patchset:

To view, visit change 3811744. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I52a9deab99539ea90403798606c7bbeb261df994
Gerrit-Change-Number: 3811744
Gerrit-PatchSet: 1
Gerrit-Owner: Robert Liao <rob...@chromium.org>
Gerrit-Reviewer: Bruce Dawson <bruce...@chromium.org>
Gerrit-Reviewer: Robert Liao <rob...@chromium.org>
Gerrit-CC: Mike Frysinger <vap...@chromium.org>
Gerrit-Attention: Bruce Dawson <bruce...@chromium.org>
Gerrit-Comment-Date: Fri, 05 Aug 2022 20:00:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Mike Frysinger (Gerrit)

unread,
Aug 5, 2022, 4:06:08 PM8/5/22
to Robert Liao, chops-source-team...@google.com, LUCI CQ, Bruce Dawson, Mike Frysinger, chromium...@chromium.org

Attention is currently required from: Bruce Dawson, Robert Liao.

View Change

1 comment:

  • File presubmit_canned_checks.py:

    • Patch Set #1, Line 656: # removed from all files.

      it's not clear whether it will be removed. the check we've deployed in CrOS is ban it from files using a copyright year of 2023+.

To view, visit change 3811744. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I52a9deab99539ea90403798606c7bbeb261df994
Gerrit-Change-Number: 3811744
Gerrit-PatchSet: 1
Gerrit-Owner: Robert Liao <rob...@chromium.org>
Gerrit-Reviewer: Bruce Dawson <bruce...@chromium.org>
Gerrit-Reviewer: Robert Liao <rob...@chromium.org>
Gerrit-CC: Mike Frysinger <vap...@chromium.org>
Gerrit-Attention: Bruce Dawson <bruce...@chromium.org>
Gerrit-Attention: Robert Liao <rob...@chromium.org>
Gerrit-Comment-Date: Fri, 05 Aug 2022 20:06:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Bruce Dawson (Gerrit)

unread,
Aug 9, 2022, 12:30:21 AM8/9/22
to Robert Liao, chops-source-team...@google.com, LUCI CQ, Mike Frysinger, chromium...@chromium.org

Attention is currently required from: Mike Frysinger, Robert Liao.

View Change

2 comments:

  • Patchset:

  • File presubmit_canned_checks.py:

    • it's not clear whether it will be removed. […]

      Should we do the same here and disallow "All rights reserved" if the copyright year is 2023 or higher? Otherwise I know that copy/paste means that it will continue to show up in some new files.

To view, visit change 3811744. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I52a9deab99539ea90403798606c7bbeb261df994
Gerrit-Change-Number: 3811744
Gerrit-PatchSet: 1
Gerrit-Owner: Robert Liao <rob...@chromium.org>
Gerrit-Reviewer: Bruce Dawson <bruce...@chromium.org>
Gerrit-Reviewer: Robert Liao <rob...@chromium.org>
Gerrit-CC: Mike Frysinger <vap...@chromium.org>
Gerrit-Attention: Mike Frysinger <vap...@chromium.org>
Gerrit-Attention: Robert Liao <rob...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Aug 2022 04:30:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Mike Frysinger <vap...@chromium.org>
Gerrit-MessageType: comment

Bruce Dawson (Gerrit)

unread,
Aug 10, 2022, 11:42:45 AM8/10/22
to Robert Liao, chops-source-team...@google.com, LUCI CQ, Mike Frysinger, chromium...@chromium.org

Attention is currently required from: Mike Frysinger, Robert Liao.

Patch set 1:Code-Review +1Commit-Queue +2

View Change

1 comment:

  • File presubmit_canned_checks.py:

    • Should we do the same here and disallow "All rights reserved" if the copyright year is 2023 or highe […]

      That can be fixed later - this needs to be landed now to avoid conflicts with the already-made changes to boilerplate.py (https://crrev.com/c/3808222).

To view, visit change 3811744. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I52a9deab99539ea90403798606c7bbeb261df994
Gerrit-Change-Number: 3811744
Gerrit-PatchSet: 1
Gerrit-Owner: Robert Liao <rob...@chromium.org>
Gerrit-Reviewer: Bruce Dawson <bruce...@chromium.org>
Gerrit-Reviewer: Robert Liao <rob...@chromium.org>
Gerrit-CC: Mike Frysinger <vap...@chromium.org>
Gerrit-Attention: Mike Frysinger <vap...@chromium.org>
Gerrit-Attention: Robert Liao <rob...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 15:42:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Mike Frysinger <vap...@chromium.org>
Comment-In-Reply-To: Bruce Dawson <bruce...@chromium.org>
Gerrit-MessageType: comment

LUCI CQ (Gerrit)

unread,
Aug 10, 2022, 11:55:44 AM8/10/22
to Robert Liao, chops-source-team...@google.com, Bruce Dawson, Mike Frysinger, chromium...@chromium.org

LUCI CQ submitted this change.

View Change


Approvals: Robert Liao: Send CL to CQ automatically after approval Bruce Dawson: Looks good to me; Commit
Make "All rights reserved" Optional in the License

This update is per http://crrev.com/1031130 where OSS licensing
requested removal of "All rights reserved" from new files.

Change-Id: I52a9deab99539ea90403798606c7bbeb261df994
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3811744
Commit-Queue: Bruce Dawson <bruce...@chromium.org>
Auto-Submit: Robert Liao <rob...@chromium.org>
Reviewed-by: Bruce Dawson <bruce...@chromium.org>
---
M presubmit_canned_checks.py
1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py
index 38a2682..2c96eb1 100644
--- a/presubmit_canned_checks.py
+++ b/presubmit_canned_checks.py
@@ -652,9 +652,11 @@
key_line = ('Use of this source code is governed by a BSD-style license '
'that can be')
# The (c) is deprecated, but tolerate it until it's removed from all files.
+ # "All rights reserved" is also deprecated, but tolerate it until it's
+ # removed from all files.
license_re = (
- r'.*? Copyright (\(c\) )?%(year)s The %(project)s Authors\. '
- r'All rights reserved\.\r?\n'
+ r'.*? Copyright (\(c\) )?%(year)s The %(project)s Authors\.'
+ r'( All rights reserved\.)?\r?\n'
r'.*? %(key_line)s\r?\n'
r'.*? found in the LICENSE file\.(?: \*/)?\r?\n'
) % {

To view, visit change 3811744. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/tools/depot_tools
Gerrit-Branch: main
Gerrit-Change-Id: I52a9deab99539ea90403798606c7bbeb261df994
Gerrit-Change-Number: 3811744
Gerrit-PatchSet: 2
Gerrit-Owner: Robert Liao <rob...@chromium.org>
Gerrit-Reviewer: Bruce Dawson <bruce...@chromium.org>
Gerrit-Reviewer: Robert Liao <rob...@chromium.org>
Gerrit-CC: Mike Frysinger <vap...@chromium.org>
Gerrit-MessageType: merged
Reply all
Reply to author
Forward
0 new messages