New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 691890 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

"swarming.py query" is broken

Project Member Reported by vadimsh@chromium.org, Feb 14 2017

Issue description

(That's the reason I used custom script to fetch pending tasks when investigating large pending queues)

------
$ ./swarming.py query-list -S chromium-swarm.appspot.com
config:v1
  Configuration service.
Traceback (most recent call last):
  File "./swarming.py", line 1676, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./swarming.py", line 1668, in main
    return dispatcher.execute(OptionParserSwarming(version=__version__), args)
  File "/Users/vadimsh/infra-git/infra/luci/client/third_party/depot_tools/subcommand.py", line 251, in execute
    return command(parser, args[1:])
  File "./swarming.py", line 1414, in CMDquery_list
    for resource_name, resource in sorted(api['resources'].iteritems()):
KeyError: 'resources'
Sending the crash report ... done.
Report URL: https://chromium-swarm.appspot.com/restricted/ereporter2/errors/5381939106676736
Process exited due to exception
'resources'
----

$ ./swarming.py query tasks -S chromium-swarm.appspot.com
Failed to access https://chromium-swarm.appspot.com/api/swarming/v1/tasks?limit=200

(Guess what, there's no https://chromium-swarm.appspot.com/api/swarming/v1/tasks any more)

 
Project Member

Comment 1 by bugdroid1@chromium.org, Feb 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/external/github.com/luci/luci-py.git/+/8095740859a6af4627a0464222bd91f3f18180dc

commit 8095740859a6af4627a0464222bd91f3f18180dc
Author: maruel <maruel@chromium.org>
Date: Wed Feb 15 15:30:50 2017

Fix ./swarming.py query-list.

It regressed I don't know when.

Text wrap the descriptions at 80 cols to make them more readable. Add spacing
between resources.

R=vadimsh@chromium.org
BUG= 691890 

Review-Url: https://codereview.chromium.org/2694183003

[modify] https://crrev.com/8095740859a6af4627a0464222bd91f3f18180dc/client/swarming.py

Comment 2 by mar...@chromium.org, Feb 15 2017

Status: Fixed (was: Untriaged)

Sign in to add a comment