Getting warnings while running tests on Docker.

Aperta
#209 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker, python
Ambito
devops, testing

Direzione di ricerca

Inizia eseguendo make test nell’ambiente Docker e confronta l’output degli avvisi con l’issue. Esamina parsers/third_party/usecounters.py, l’avviso di botocore relativo a urllib3 vendored e l’origine dell’avviso di jsonschema indicata nell’output. Il lavoro è completato quando i test continuano a passare senza questi avvisi di deprecazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
27
Fork
75
Merge medio
2g 4h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mozilla/probe-scraper

Tutte le issue di mozilla/probe-scraper

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.