Getting warnings while running tests on Docker.

Đang mở
#209 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
docker, python
Lĩnh vực
devops, testing

Hướng nghiên cứu

Bắt đầu bằng cách chạy make test trong môi trường Docker và so sánh đầu ra cảnh báo với issue. Kiểm tra parsers/third_party/usecounters.py, cảnh báo của botocore về urllib3 vendored và nguồn của cảnh báo jsonschema được nêu trong đầu ra. Hoàn thành có nghĩa là các test vẫn pass mà không có những cảnh báo deprecation này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
27
Fork
75
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mozilla/probe-scraper

Tất cả issue của mozilla/probe-scraper

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.