Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test automation for custom handlers #35792

Implementing the set_rph_registration_mode testdriver

4cee442
Select commit
Loading
Failed to load commit list.
Merged

Test automation for custom handlers #35792

Implementing the set_rph_registration_mode testdriver
4cee442
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Community-TC Integration / tools/ unittests (Python 3.7) succeeded Nov 14, 2023 in 10m 57s

Community-TC (pull_request)

Unit tests for tools running under Python 3.7, excluding wptrunner

Details

View task in Taskcluster
View logs in Taskcluster


+ cd tools
+ run_applicable_tox
+ local OLD_TOXENV=py37
+ unset TOXENV
++ tox -l
++ grep '^py37\(\-\|$\)'
++ tr '\n' ,
+ local RUN_ENVS=py37,py37-flake8,py37-mypy,
+ [[ -n py37,py37-flake8,py37-mypy, ]]
+ tox -e py37,py37-flake8,py37-mypy,
py37: install_deps> python -I -m pip install -r /home/test/web-platform-tests/tools/requirements_pytest.txt -r /home/test/web-platform-tests/tools/requirements_tests.txt
py37: commands[0]> pytest --cov=tools --cov-report=term
============================= test session starts ==============================

platform linux -- Python 3.7.17, pytest-7.4.2, pluggy-1.2.0

cachedir: .tox/py37/.pytest_cache

rootdir: /home/test/web-platform-tests/tools

configfile: pytest.ini

plugins: anyio-3.7.1, cov-4.1.0, hypothesis-6.78.2

collecting ... 
collecting 37 items                                                            
collecting 329 items                                                           
collecting 686 items                                                           
collected 833 items                                                            



ci/tc/tests/test_decision.py ..................                          [  2%]

ci/tc/tests/test_taskgraph.py .........                                  [  3%]

ci/tc/tests/test_valid.py ..........                                     [  4%]

ci/tests/test_jobs.py ...........                                        [  5%]

gitignore/tests/test_gitignore.py ...................................... [ 10%]

.............                                                            [ 11%]

lint/tests/test_file_lints.py .......................................... [ 16%]

.........................................................                [ 23%]

lint/tests/test_lint.py .............................                    [ 27%]

lint/tests/test_path_lints.py ......................................     [ 31%]

manifest/tests/test_XMLParser.py .........                               [ 32%]

manifest/tests/test_item.py ............................................ [ 38%]

.                                                                        [ 38%]

manifest/tests/test_manifest.py ..........                               [ 39%]

manifest/tests/test_sourcefile.py ...................................... [ 44%]

........................................................................ [ 52%]

...............................................                          [ 58%]

manifest/tests/test_utils.py .                                           [ 58%]

serve/test_functional.py .                                               [ 58%]

serve/test_serve.py .s................                                   [ 60%]

third_party_modified/mozlog/tests/test_capture.py .                      [ 60%]

third_party_modified/mozlog/tests/test_errorsummary.py ..x.              [ 61%]

third_party_modified/mozlog/tests/test_formatters.py ................... [ 63%]

.............                                                            [ 65%]

third_party_modified/mozlog/tests/test_logger.py ......                  [ 65%]

third_party_modified/mozlog/tests/test_logtypes.py .........             [ 66%]

third_party_modified/mozlog/tests/test_structured.py ................... [ 69%]

..............................sss..........                              [ 74%]

third_party_modified/mozlog/tests/test_terminal_colors.py s              [ 74%]

webtransport/h3/test_capsule.py sssssss                                  [ 75%]

wptserve/tests/test_config.py .......xx................................. [ 80%]

..                                                                       [ 80%]

wptserve/tests/test_replacement_tokenizer.py ..............              [ 82%]

wptserve/tests/test_request.py .....                                     [ 82%]

wptserve/tests/test_response.py ..                                       [ 83%]

wptserve/tests/test_stash.py ..                                          [ 83%]

wptserve/tests/functional/test_cookies.py ....                           [ 83%]

wptserve/tests/functional/test_handlers.py ............................. [ 87%]

................                                                         [ 89%]

wptserve/tests/functional/test_input_file.py ..............              [ 90%]

wptserve/tests/functional/test_pipes.py ................................ [ 94%]

...                                                                      [ 95%]

wptserve/tests/functional/test_request.py ..........                     [ 96%]

wptserve/tests/functional/test_response.py ....................          [ 98%]

wptserve/tests/functional/test_server.py .........                       [ 99%]

wptserve/tests/functional/test_stash.py .                                [100%]



=============================== warnings summary ===============================

ci/tc/tests/test_valid.py: 64 warnings

  /home/test/web-platform-tests/tools/.tox/py37/lib/python3.7/site-packages/jsonschema/validators.py:1115: DeprecationWarning: The metaschema specified by $schema was not found. Using the latest draft to validate, but this will raise an error in the future.

    cls = validator_for(schema)



-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html



---------- coverage: platform linux, python 3.7.17-final-0 -----------

Name                                                  Stmts   Miss Branch BrPart  Cover

---------------------------------------------------------------------------------------

__init__.py                                               1      0      0      0   100%

ci/__init__.py                                            0      0      0      0   100%

ci/jobs.py                                               82     18     46      3    76%

ci/macos_color_profile.py                                19     19      8      0     0%

ci/make_hosts_file.py                                    12     12      0      0     0%

ci/manifest_build.py                                    131    131     40      0     0%

ci/regen_certs.py                                        37     37      4      0     0%

ci/run_tc.py                                            235    235     84      0     0%

ci/taskcluster-run.py                                    77     77     30      0     0%

ci/tc/__init__.py                                         0      0      0      0   100%

ci/tc/decision.py                                       250     62    121      5    77%

ci/tc/download.py                                        71     71     26      0     0%

ci/tc/github_checks_output.py                            13      5      2      1    60%

ci/tc/sink_task.py                                       39     39     14      0     0%

ci/tc/taskgraph.py                                      120      9     66      9    90%

ci/update_built.py                                       37     37     14      0     0%

conftest.py                                              12      0      2      0   100%

docker/__init__.py                                        0      0      0      0   100%

docker/frontend.py                                       95     95     40      0     0%

docker/retry.py                                          39     39     10      0     0%

gitignore/__init__.py                                     0      0      0      0   100%

gitignore/gitignore.py                                  188    188    120      0     0%

lint/__init__.py                                          1      0      0      0   100%

lint/fnmatch.py                                          21      2     10      2    81%

lint/lint.py                                            609     99    369     23    83%

lint/rules.py                                           283      5      0      0    98%

localpaths.py                                            35      0      2      1    97%

manifest/XMLParser.py                                    91      2     14      1    97%

manifest/__init__.py                                      1      0      0      0   100%

manifest/download.py                                    138    111     50      0    14%

manifest/item.py                                        234     17     42     11    89%

manifest/jsonlib.py                                      44     21     14      5    48%

manifest/log.py                                           6      1      0      0    83%

manifest/manifest.py                                    226     83    100     13    60%

manifest/mputil.py                                        7      1      2      1    78%

manifest/sourcefile.py                                  580     45    269     34    90%

manifest/spec.py                                         43     43      6      0     0%

manifest/testpaths.py                                    56     56     18      0     0%

manifest/typedata.py                                    194     37     86     12    80%

manifest/update.py                                       46     29      8      1    33%

manifest/utils.py                                        54     14     16      6    66%

manifest/vcs.py                                         199    156     66      1    17%

serve/__init__.py                                         1      0      0      0   100%

serve/serve.py                                          600    231    188     35    59%

serve/test_functional.py                                 44      2      2      1    93%

serve/test_serve.py                                      65      5      0      0    92%

serve/wave.py                                            78     78     22      0     0%

wave/__init__.py                                          0      0      0      0   100%

wave/configuration_loader.py                             40     40      8      0     0%

wave/data/__init__.py                                     0      0      0      0   100%

wave/data/client.py                                       5      5      0      0     0%

wave/data/device.py                                       6      6      0      0     0%

wave/data/event_listener.py                               7      7      0      0     0%

wave/data/exceptions/__init__.py                          0      0      0      0   100%

wave/data/exceptions/duplicate_exception.py               2      2      0      0     0%

wave/data/exceptions/invalid_data_exception.py            2      2      0      0     0%

wave/data/exceptions/not_found_exception.py               2      2      0      0     0%

wave/data/exceptions/permission_denied_exception.py       2      2      0      0     0%

wave/data/http_polling_client.py                          8      8      0      0     0%

wave/data/http_polling_event_listener.py                  9      9      0      0     0%

wave/data/session.py                                     50     50     20      0     0%

wave/network/__init__.py                                  0      0      0      0   100%

wave/network/api/__init__.py                              0      0      0      0   100%

wave/network/api/api_handler.py                          74     74     22      0     0%

wave/network/api/devices_api_handler.py                 155    155     54      0     0%

wave/network/api/general_api_handler.py                  45     45     18      0     0%

wave/network/api/results_api_handler.py                 186    186     48      0     0%

wave/network/api/sessions_api_handler.py                328    328    128      0     0%

wave/network/api/tests_api_handler.py                   191    191     68      0     0%

wave/network/http_handler.py                             85     85     28      0     0%

wave/network/static_handler.py                           34     34     10      0     0%

wave/testing/__init__.py                                  0      0      0      0   100%

wave/testing/devices_manager.py                          85     85     30      0     0%

wave/testing/event_dispatcher.py                        104    104     54      0     0%

wave/testing/results_manager.py                         494    494    240      0     0%

wave/testing/sessions_manager.py                        327    327    168      0     0%

wave/testing/test_loader.py                             145    145     98      0     0%

wave/testing/tests_manager.py                           261    261    144      0     0%

wave/testing/wpt_report.py                               24     24      8      0     0%

wave/utils/__init__.py                                    0      0      0      0   100%

wave/utils/deserializer.py                               89     89     46      0     0%

wave/utils/serializer.py                                 14     14      4      0     0%

wave/utils/user_agent_parser.py                          17     17      8      0     0%

wave/wave_server.py                                      50     50      6      0     0%

webtransport/__init__.py                                  0      0      0      0   100%

webtransport/h3/__init__.py                               0      0      0      0   100%

webtransport/h3/capsule.py                               62     62     22      0     0%

webtransport/h3/handler.py                               13     13      0      0     0%

webtransport/h3/test_capsule.py                          98     77      4      2    23%

webtransport/h3/webtransport_h3_server.py               327    327     96      0     0%

---------------------------------------------------------------------------------------

TOTAL                                                  8455   5432   3243    167    34%



===== 818 passed, 12 skipped, 3 xfailed, 64 warnings in 411.28s (0:06:51) ======

py37: OK ✔ in 6 minutes 59.9 seconds
py37-flake8: install_deps> python -I -m pip install -r /home/test/web-platform-tests/tools/requirements_flake8.txt
py37-flake8: commands[0]> flake8 --append-config=/home/test/web-platform-tests/tools/flake8.ini
py37-flake8: OK ✔ in 7.46 seconds
py37-mypy: install_deps> python -I -m pip install -r /home/test/web-platform-tests/tools/requirements_mypy.txt
py37-mypy: commands[0] /home/test/web-platform-tests/tools/..> mypy --config-file=/home/test/web-platform-tests/tools/mypy.ini --explicit-package-bases tools
Success: no issues found in 281 source files

  py37: OK (419.90=setup[7.46]+cmd[412.44] seconds)
  py37-flake8: OK (7.46=setup[1.67]+cmd[5.79] seconds)
  py37-mypy: OK (10.43=setup[3.11]+cmd[7.31] seconds)
  congratulations :) (437.85 seconds)
+ export TOXENV=py37
+ TOXENV=py37
+ cd /home/test/web-platform-tests/tools/ci/../..
+ ./wpt test-jobs --includes wptrunner_unittest
+ cd tools/wptrunner
+ run_applicable_tox
+ local OLD_TOXENV=py37
+ unset TOXENV
++ tox -l
++ grep '^py37\(\-\|$\)'
++ tr '\n' ,
+ local RUN_ENVS=py37-base,
+ [[ -n py37-base, ]]
+ tox -e py37-base,
py37-base: install_deps> python -I -m pip install -r /home/test/web-platform-tests/tools/wptrunner/../requirements_pytest.txt -r /home/test/web-platform-tests/tools/wptrunner/requirements.txt
.pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel
.pkg: _optional_hooks> python /home/test/.local/lib/python3.8/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_sdist> python /home/test/.local/lib/python3.8/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_wheel> python /home/test/.local/lib/python3.8/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: install_requires_for_build_wheel> python -I -m pip install wheel
.pkg: prepare_metadata_for_build_wheel> python /home/test/.local/lib/python3.8/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: build_sdist> python /home/test/.local/lib/python3.8/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
py37-base: install_package> python -I -m pip install --force-reinstall --no-deps /home/test/web-platform-tests/tools/wptrunner/.tox/.tmp/package/1/wptrunner-1.14.tar.gz
py37-base: commands[0]> pytest -c/home/test/web-platform-tests/tools/wptrunner/../pytest.ini --rootdir=/home/test/web-platform-tests/tools/wptrunner
============================= test session starts ==============================

platform linux -- Python 3.7.17, pytest-7.4.2, pluggy-1.2.0

cachedir: .tox/py37-base/.pytest_cache

rootdir: /home/test/web-platform-tests/tools/wptrunner

configfile: ../pytest.ini

plugins: cov-4.1.0, hypothesis-6.78.2

collecting ... 
collecting 135 items                                                           
collected 351 items                                                            



wptrunner/formatters/tests/test_chromium.py ...................          [  5%]

wptrunner/tests/test_executors.py ........                               [  7%]

wptrunner/tests/test_expectedtree.py .....                               [  9%]

wptrunner/tests/test_formatters.py .....                                 [ 10%]

wptrunner/tests/test_manifestexpected.py ..........                      [ 13%]

wptrunner/tests/test_manifestupdate.py .                                 [ 13%]

wptrunner/tests/test_metadata.py ............                            [ 17%]

wptrunner/tests/test_products.py sssssssssssssssssssssss................ [ 28%]

.......sssssssssssssssssssssss                                           [ 36%]

wptrunner/tests/test_stability.py ......                                 [ 38%]

wptrunner/tests/test_testloader.py ........                              [ 40%]

wptrunner/tests/test_update.py ......................................... [ 52%]

...............                                                          [ 56%]

wptrunner/tests/test_wptrunner.py .                                      [ 56%]

wptrunner/tests/test_wpttest.py .........                                [ 59%]

wptrunner/tests/browsers/test_base.py .                                  [ 59%]

wptrunner/tests/browsers/test_sauce.py ..........                        [ 62%]

wptrunner/tests/browsers/test_webkitgtk.py sssssssssssssssssssssss       [ 69%]

wptrunner/wptmanifest/tests/test_conditional.py ........                 [ 71%]

wptrunner/wptmanifest/tests/test_parser.py .........                     [ 74%]

wptrunner/wptmanifest/tests/test_serializer.py ......................... [ 81%]

..................                                                       [ 86%]

wptrunner/wptmanifest/tests/test_static.py ......                        [ 88%]

wptrunner/wptmanifest/tests/test_tokenizer.py .......................... [ 95%]

................                                                         [100%]



======================= 282 passed, 69 skipped in 11.54s =======================

.pkg: _exit> python /home/test/.local/lib/python3.8/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
  py37-base: OK (21.28=setup[9.03]+cmd[12.25] seconds)
  congratulations :) (21.35 seconds)
+ export TOXENV=py37
+ TOXENV=py37
+ cd /home/test/web-platform-tests/tools/ci/../..
[taskcluster 2023-11-14 16:34:27.319Z] === Task Finished ===
[taskcluster 2023-11-14 16:34:27.369Z] Successful task run with exit code: 0 completed in 607.233 seconds