Request permission for running tools/run-swarmed.py tests

0 views
Skip to first unread message

Fāng-ruì Sòng

unread,
Jun 3, 2021, 5:19:56 PM6/3/21
to luci...@chromium.org
Hello,

I occasionally help the toolchain team on improving the llvm-project
toolchain but don't personally have a @chromium.org account.
E.g. https://reviews.llvm.org/D103372#2794795 I need rnk@'s help on
verifying my compiler change's impact for Chrome.

I think it'd be good for me to do testing by myself. Therefore I
followed the instructions on
https://chromium.googlesource.com/chromium/src/+/HEAD/docs/win_cross.md#running-tests-on-swarming
The test command fails because presumably I don't have permission.
May I request the permission?

% python tools/swarming_client/auth.py login
--service=https://isolateserver.appspot.com --auth-no-local-webserver
Logged in as 'user:mas...@google.com'.
% python tools/swarming_client/auth.py login
--service=https://chromium-swarm.appspot.com --auth-no-local-webserver
Logged in as 'user:mas...@google.com'.

("Right now, only users Chromium team members can use the
infrastructure directly. Note that the whole Swarming infrastructure
is open source so if any other company would help to recreate the same
infrastructure internally, send us a note at
swarmi...@googlegroups.com")


BTW: on https://www.chromium.org/developers/testing/isolated-testing/for-swes#TOC-Login-on-the-services
> That's it. Feel free to contact the team at iso...@chromium.org for any chromium open source specific questions.

iso...@chromium.org appears to be stale now. It should be luci...@chromium.org


% tools/run-swarmed.py out/win base_unittests
/usr/local/google/home/maskray/chromium/src/tools/luci-go/isolate
check -i out/win/base_unittests.isolate
Isolate: /usr/local/google/home/maskray/chromium/src/out/win/base_unittests.isolate
Isolated:
Config: map[]
Path: map[EXECUTABLE_SUFFIX:]
If you get authentication errors, follow:
https://www.chromium.org/developers/testing/isolated-testing/for-swes#TOC-Login-on-the-services
Uploading to isolate server, this can take a while...
[I2021-06-03T13:57:30.335779-07:00 3542213 0 client.go:108] context
metadata: client.ContextMetadata{ActionID:"946d9550-1dbe-4b0d-a5de-15fda80b289e",
InvocationID:"c4cd9a88-46c3-43cb-8814-2edf145ca15f",
CorrelatedInvocationID:"", ToolName:"isolate", ToolVersion:""}
isolate: original error: interactive login is required

goroutine 1:
#0 go.chromium.org/luci/auth/auth.go:61 - auth.init()
#1 runtime/proc.go:6309 - runtime.doInit()
#2 runtime/proc.go:6286 - runtime.doInit()
#3 runtime/proc.go:208 - runtime.main()
reason: failed to get PerRPCCredentials

#4 runtime/asm_amd64.s:1371 - runtime.goexit()
Traceback (most recent call last):
File "tools/run-swarmed.py", line 313, in <module>
sys.exit(main())
File "tools/run-swarmed.py", line 260, in main
'-isolate', isolate, '-dump-json', archive_json
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['tools/luci-go/isolate',
'archive', '-cas-instance', 'chromium-swarm', '-isolate',
'out/win/base_unittests.isolate', '-dump-json',
'out/win/base_unittests.archive.json']' returned non-zero exit status
1


--
宋方睿
Reply all
Reply to author
Forward
0 new messages