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

Issue 616311 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Can't run gpu tests locally. Documentation appears out of date. Help is not useful.

Project Member Reported by erikc...@chromium.org, Jun 1 2016

Issue description

Note documentation at: https://www.chromium.org/developers/testing/gpu-testing. 

The problem is two fold. 

1. I'm guessing that some underlying infrastructure has changed with regards to finding modules/whatever and the public documentation was never updated.
2. help appears broken, and I keep pylint output?

If help worked and I could figure out how to run some gpu tests locally, I could update the public documentation. But I'd rather not dig through lots of telemetry code right now.

"""
erikchen@erikchen-macpro ~/projects/chromium/src  (webgl_pixel_test)$ ./content/test/gpu/run_gpu_test.py webgl_conformance 
************* Module webgl_conformance
F:  1, 0: No module named webgl_conformance (fatal)
"""

"""
erikchen@erikchen-macpro ~/projects/chromium/src  (webgl_pixel_test)$ ./content/test/gpu/run_gpu_test.py webgl_conformance --browser=canary
Usage:  pylint.py [options] module_or_package

  Check that a module satisfies a coding standard (and more !).

    pylint.py --help

  Display this help message and exit.

    pylint.py --help-msg <msg-id>[,<msg-id>]

  Display help messages about given message identifiers and exit.


pylint.py: error: no such option: --browser
"""

"""
erikchen@erikchen-macpro ~/projects/chromium/src  (webgl_pixel_test)$ ./content/test/gpu/run_gpu_test.py help
usage: run_gpu_test.py [command] [<options>]
Available commands are:
  help       Display help information about a command
  list       Lists the available benchmarks
  run        Run one or more benchmarks (default)
"run_gpu_test.py help <command>" to see usage information for a specific command.
"""

"""
erikchen@erikchen-macpro ~/projects/chromium/src  (webgl_pixel_test)$ ./content/test/gpu/run_gpu_test.py help run
Usage:  pylint.py [options] module_or_package

  Check that a module satisfies a coding standard (and more !).

    pylint.py --help

  Display this help message and exit.

    pylint.py --help-msg <msg-id>[,<msg-id>]

  Display help messages about given message identifiers and exit.


Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --long-help           more verbose help.

  Master:
    --rcfile=<file>     Specify a configuration file.
    -E, --errors-only   In error mode, checkers without error messages are
                        disabled and for others, only the ERROR messages are
                        displayed, and no reports are done by default
    --py3k              In Python 3 porting mode, all checkers will be
                        disabled and only messages emitted by the porting
                        checker will be displayed
    --ignore=<file>[,<file>...]
                        Add files or directories to the blacklist. They should
                        be base names, not paths. [current: CVS]
    -j <n-processes>, --jobs=<n-processes>
                        Use multiple processes to speed up Pylint. [current:
                        1]
    --extension-pkg-whitelist=<pkg[,pkg]>
                        A comma-separated list of package or module names from
                        where C extensions may be loaded. Extensions are
                        loading into the active Python interpreter and may run
                        arbitrary code [current: none]

  Commands:
    --help-msg=<msg-id>
                        Display a help message for the given message id and
                        exit. The value may be a comma separated list of
                        message ids.
    --generate-rcfile   Generate a sample configuration file according to the
                        current configuration. You can put other options
                        before this one to get them in the generated
                        configuration.

  Messages control:
    --confidence=<levels>
                        Only show warnings with the listed confidence levels.
                        Leave empty to show all. Valid levels: HIGH,
                        INFERENCE, INFERENCE_FAILURE, UNDEFINED [current:
                        none]
    -e <msg ids>, --enable=<msg ids>
                        Enable the message, report, category or checker with
                        the given id(s). You can either give multiple
                        identifier separated by comma (,) or put this option
                        multiple time. See also the "--disable" option for
                        examples.
    -d <msg ids>, --disable=<msg ids>
                        Disable the message, report, category or checker with
                        the given id(s). You can either give multiple
                        identifiers separated by comma (,) or put this option
                        multiple times (only on the command line, not in the
                        configuration file where it should appear only
                        once).You can also use "--disable=all" to disable
                        everything first and then reenable specific checks.
                        For example, if you want to run only the similarities
                        checker, you can use "--disable=all
                        --enable=similarities". If you want to run only the
                        classes checker, but have no Warning level messages
                        displayed, use"--disable=all --enable=classes
                        --disable=W"

  Reports:
    -f <format>, --output-format=<format>
                        Set the output format. Available formats are text,
                        parseable, colorized, msvs (visual studio) and html.
                        You can also give a reporter class, eg
                        mypackage.mymodule.MyReporterClass. [current: text]
    -r <y_or_n>, --reports=<y_or_n>
                        Tells whether to display a full report or only the
                        messages [current: no]
    --msg-template=<template>
                        Template used to display messages. This is a python
                        new-style format string used to format the message
                        information. See doc for all details
"""
 
"""
erikchen@erikchen-macpro ~/projects/chromium/src  (webgl_pixel_test)$ ./content/test/gpu/run_gpu_test.py run help
************* Module run
F:  1, 0: No module named run (fatal)
************* Module help
F:  1, 0: No module named help (fatal)
"""
Did you forget to do gclient sync? It works just fine for me. It's possible that you have some stale pyc files that messed up everything.
Tomorrow maybe ping me & I will take a look in person.
Nope.

gclient sync
find . -name "*.pyc" | xargs rm

erikchen@erikchen-macpro ~/projects/chromium/src  (webgl_pixel_test)$ find . -name "*.pyc" | wc -l
       0

Still same problem...

I've tried three different repositories on two different machines.
Status: WontFix (was: Assigned)
kbr@ helped debug. The problem was that my PYTHONPATH included depot_tools. 

Sign in to add a comment