mozilla / mozilla/probe-scraper
Getting warnings while running tests on Docker.
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26
- Forks
- 73
- Avg merge
- 10h
- Merged PRs (30d)
- 3
Description
when I am running make test command, I am getting this
================================================================== warnings summary ==================================================================
/usr/local/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1
/usr/local/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1
/usr/local/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
from collections import Mapping, MutableMapping
tests/test_git_scraper.py::test_normal_repo
tests/test_git_scraper.py::test_improper_metrics_repo
tests/test_git_scraper.py::test_check_for_duplicate_metrics
tests/test_git_scraper.py::test_check_for_expired_metrics
tests/test_repositories_parser.py::test_repositories
tests/test_repositories_parser.py::test_repositories_parser_incorrect
tests/test_repositories_parser.py::test_repositories_parser_not_kebab_case
tests/test_repositories_parser.py::test_repositories_class
/usr/local/lib/python3.8/site-packages/jsonschema/validators.py:928: 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)
tests/test_histogram_parser.py::test_histogram_parser_old
tests/test_histogram_parser.py::test_histogram_parser_new
/app/probe_scraper/parsers/third_party/usecounters.py:11: DeprecationWarning: 'U' mode is deprecated
stream = open(conf_filename, 'rU')
-- Docs: https://docs.pytest.org/en/stable/warnings.html
==================================================== 53 passed, 12 warnings in 218.96s (0:03:38) =====================================================
Even though I didn't make any changes in the forked repository, I am getting 12 warnings.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running make test in the Docker environment and compare the warning output with the issue. Inspect parsers/third_party/usecounters.py, the botocore vendored urllib3 warning, and the jsonschema warning source named in the output. Done means the tests still pass without these deprecation warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100