Status Update
Comments
ck...@google.com <ck...@google.com> #2
Generated Metadata
- Summary: The Apps Script project is unexpectedly requesting the
script.container.ui
authorization scope when the word 'show' is present in a comment andSpreadsheetApp.getActive()
is invoked. This behavior is unexpected and should be investigated. - Tags:
Additional resources:
https://stackoverflow.com/.../unexpected-error-while-getting-the-method-or... https://stackoverflow.com/.../were-sorry-a-server-error-occurred-while-read... https://stackoverflow.com/.../google-add-on-script-throws-server-error-whe... https://stackoverflow.com/.../authorisation-is-required-to-perform-that-actio... https://stackoverflow.com/.../permission-denied-when-trying-to-create-a-spr...
ma...@google.com <ma...@google.com> #3
ag...@google.com <ag...@google.com>
ma...@google.com <ma...@google.com> #5
I have reported this to the engineering team and future updates will be shared here. Thank you for your patience.
ag...@google.com <ag...@google.com> #6
wn...@google.com <wn...@google.com> #7
Making it a list assignment instead of a direct assignment fixes it immediately with no changes to gn_ast, though that does mean individual deps will be added to each split target over time. Is that acceptable?
diff --git i/chrome/android/javatests/BUILD.gn w/chrome/android/javatests/BUILD.gn
index 23c28e94caa84..cf4086e62fc69 100644
--- i/chrome/android/javatests/BUILD.gn
+++ w/chrome/android/javatests/BUILD.gn
@@ -1375,7 +1375,10 @@ android_library("chrome_test_java_org.chromium.chrome.browser.tasks") {
"//chrome/android/features/tab_ui/javatests/src/org/chromium/chrome/browser/tasks/tab_management/TestRecyclerViewSimpleViewBinder.java",
]
- deps = chrome_test_java_deps
+ deps = [
+ "//third_party/android_deps:espresso_java",
+ chrome_test_java_deps,
+ ]
}
android_library("chrome_test_java_org.chromium.chrome.browser.toolbar") {
ag...@google.com <ag...@google.com> #8
I think that's actually preferable. We just did the big list to save time.
ma...@google.com <ma...@google.com> #9
wn...@google.com <wn...@google.com> #10
Awesome, that's a lot easier of a fix. This command can find potential issues for gn_editor:
$ git grep " deps = [^\[]" -- "**BUILD.gn"
I'll fix the android ones at least.
dx...@google.com <dx...@google.com> #11
Project: chromium/src
Branch: main
Author: Peter Wen
Link:
android: Make deps assignment a list where possible
Expand for full commit details
The places where it makes sense for gn_editor to work and append to a
list (e.g. deps = [ target ] becomes deps = [ target, new_target ]),
gn_editor expects the assignment to be a GN list instead of just a
direct variable assignment. When it's a direct variable assignment,
gn_editor assumes that it should not change and expects the user to
manually figure out which variable(s) the new dep should be added to.
In the case of the deps lists in this CL, however, these are expected to
change and new deps needed for individual targets going forward, so
these need to be a pure list assignment in order for gn_editor to append
to the existing list.
R=martinkong@google.com
Bug: 406536423
Change-Id: I0b81d34b1ae5fd56ca20430aae7e03f6f9409d3b
Fixed: 406536423
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6427941
Commit-Queue: Martin Kong <martinkong@google.com>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Reviewed-by: Martin Kong <martinkong@google.com>
Cr-Commit-Position: refs/heads/main@{#1442310}
Files:
- M
chrome/android/BUILD.gn
- M
chrome/android/javatests/BUILD.gn
- M
chrome/android/junit/BUILD.gn
Hash: e9f54082761502efc72dadc8cf8f3f203e94ffa8
Date: Thu Apr 3 18:26:28 2025
Description
I just changed a test file after the build file refactorings in b/40286190 and it seems to cause trouble for the build/gn_editor script.
I added a dependency on
espresso
to build a custom view matcher. I got a recommendation to run the following command, but then the command failed.it turns out this wasn't required due to a typo, but it is concerning that the script didn't just find the target out of the box...
Expectation:
Script "just works"
Actual behavior:
Manual intervention required.