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

Refactor logging functions to use %s formatting instead of f-strings #3822

Merged

Resolves #3822

3d79b9a
Select commit
Loading
Failed to load commit list.
Merged

Refactor logging functions to use %s formatting instead of f-strings #3822

Resolves #3822
3d79b9a
Select commit
Loading
Failed to load commit list.
Community-TC Integration / bugbug tests succeeded Nov 24, 2023 in 5m 41s

Community-TC (pull_request)

bugbug tests

Details

View task in Taskcluster
View logs in Taskcluster


tests/test_defect.py .                                                   [ 42%]
tests/test_defect_enhancement_task.py .                                  [ 43%]
tests/test_devdocneeded.py .                                             [ 43%]
tests/test_feature_cleanup.py ........                                   [ 47%]
tests/test_github.py ........                                            [ 52%]
tests/test_github_issue_retriever.py ....                                [ 54%]
tests/test_hooks.py ......                                               [ 57%]
tests/test_invalid_compatibility_report.py .                             [ 57%]
tests/test_labels.py ..                                                  [ 58%]
tests/test_models.py ...                                                 [ 60%]
tests/test_needsdiagnosis.py .                                           [ 60%]
tests/test_phabricator.py .                                              [ 61%]
tests/test_pipelines.py ...                                              [ 62%]
tests/test_qaneeded.py ..                                                [ 63%]
tests/test_rcatype.py ..                                                 [ 64%]
tests/test_regression.py .                                               [ 65%]
tests/test_repository.py ....................                            [ 75%]
tests/test_stepstoreproduce.py .                                         [ 75%]
tests/test_test_scheduling.py ........                                   [ 79%]
tests/test_test_scheduling_features.py .                                 [ 80%]
tests/test_testselect.py ..............x.                                [ 88%]
tests/test_tracking.py .                                                 [ 88%]
tests/test_trainer.py .                                                  [ 89%]
tests/test_uplift.py .                                                   [ 89%]
tests/test_utils.py ....................                                 [100%]

=============================== warnings summary ===============================
tests/test_github.py::test_download_issues_updated_since_timestamp
  Argument 'match_querystring' is deprecated. Use 'responses.matchers.query_param_matcher' or 'responses.matchers.query_string_matcher'

tests/test_pipelines.py: 42 warnings
  The metaschema specified by $schema was not found. Using the latest draft to validate, but this will raise an error in the future.

tests/test_pipelines.py: 271 warnings
  Automatically retrieving remote references can be a security vulnerability and is discouraged by the JSON Schema specifications. Relying on this behavior is deprecated and will shortly become an error. If you are sure you want to remotely retrieve your reference and that it is safe to do so, you can find instructions for doing so via referencing.Registry in the referencing documentation (https://referencing.readthedocs.org).

tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
  Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples. Use `zero_division` parameter to control this behavior.

tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
  Recall and F-score are ill-defined and being set to 0.0 in labels with no true samples. Use `zero_division` parameter to control this behavior.

tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
tests/test_trainer.py::test_trainer
  Sensitivity is ill-defined and being set to 0.0 in labels with no true samples. Use `zero_division` parameter to control this behavior.

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

---------- coverage: platform linux, python 3.10.13-final-0 ----------
Name                                             Stmts   Miss  Cover
--------------------------------------------------------------------
bugbug/__init__.py                                   5      1    80%
bugbug/bug_features.py                             440    110    75%
bugbug/bug_snapshot.py                             242     81    67%
bugbug/bugzilla.py                                 237    172    27%
bugbug/commit_features.py                          190     76    60%
bugbug/db.py                                       158      9    94%
bugbug/feature_cleanup.py                           59      0   100%
bugbug/github.py                                    79      2    97%
bugbug/issue_features.py                            46     29    37%
bugbug/issue_snapshot.py                             7      6    14%
bugbug/labels.py                                    21      0   100%
bugbug/model.py                                    401    178    56%
bugbug/model_calibration.py                         15      7    53%
bugbug/models/__init__.py                           14      2    86%
bugbug/models/annotate_ignore.py                    39     25    36%
bugbug/models/assignee.py                           40      2    95%
bugbug/models/backout.py                            38      3    92%
bugbug/models/browsername.py                        29     17    41%
bugbug/models/bugtype.py                            65     13    80%
bugbug/models/component.py                         126     99    21%
bugbug/models/component_nn.py                       95     88     7%
bugbug/models/defect.py                            134     15    89%
bugbug/models/defect_enhancement_task.py            26      9    65%
bugbug/models/devdocneeded.py                       39      4    90%
bugbug/models/duplicate.py                          68     52    24%
bugbug/models/fixtime.py                            44     31    30%
bugbug/models/invalid_compatibility_report.py       36      6    83%
bugbug/models/needsdiagnosis.py                     33      2    94%
bugbug/models/qaneeded.py                           38      1    97%
bugbug/models/rcatype.py                            57     10    82%
bugbug/models/regression.py                         28     13    54%
bugbug/models/regressionrange.py                    37     23    38%
bugbug/models/regressor.py                         163    131    20%
bugbug/models/spambug.py                            48     32    33%
bugbug/models/stepstoreproduce.py                   47     11    77%
bugbug/models/testfailure.py                        44     29    34%
bugbug/models/testselect.py                        380    197    48%
bugbug/models/tracking.py                           55     10    82%
bugbug/models/uplift.py                             33      2    94%
bugbug/nlp.py                                       64     29    55%
bugbug/nn.py                                        34     27    21%
bugbug/phabricator.py                              139     82    41%
bugbug/repository.py                               745     91    88%
bugbug/rust_code_analysis_server.py                 52      7    87%
bugbug/similarity.py                               403    403     0%
bugbug/test_scheduling.py                          378    160    58%
bugbug/test_scheduling_features.py                 117     69    41%
bugbug/utils.py                                    334    122    63%
infra/set_hook_version.py                           27      6    78%
scripts/__init__.py                                  0      0   100%
scripts/analyze_training_metrics.py                101    101     0%
scripts/backout_related_test_regressions.py         56     56     0%
scripts/bug_classifier.py                           54     54     0%
scripts/bug_retriever.py                            85     85     0%
scripts/check.py                                    24     24     0%
scripts/check_all_metrics.py                        54     54     0%
scripts/comment_level_labeler.py                    60     60     0%
scripts/commit_classifier.py                       396    396     0%
scripts/commit_retriever.py                         39     39     0%
scripts/compatibility_report_classifier.py          42     42     0%
scripts/evaluate_similarity.py                      20     20     0%
scripts/generate_duplicate_sheet.py                 44     44     0%
scripts/generate_landings_risk_report.py           795    795     0%
scripts/generate_sheet.py                           43     43     0%
scripts/get_type_labels.py                          27     27     0%
scripts/get_untriaged.py                            65     65     0%
scripts/github_issue_classifier.py                  53     53     0%
scripts/github_issue_retriever.py                   77     39    49%
scripts/maintenance_effectiveness_indicator.py      24     24     0%
scripts/microannotate_generator.py                  65     65     0%
scripts/past_bugs_by_unit.py                       108    108     0%
scripts/redundant_failures.py                       47     47     0%
scripts/regressor_finder.py                        327    327     0%
scripts/retrieve_training_metrics.py                75     75     0%
scripts/revision_retriever.py                       36     36     0%
scripts/shadow_scheduler_stats.py                  159    159     0%
scripts/similarity_query.py                         39     39     0%
scripts/similarity_trainer.py                       30     30     0%
scripts/test_scheduling_history_retriever.py       190    190     0%
scripts/testing_policy_stats.py                     72     72     0%
scripts/trainer.py                                  79     12    85%
scripts/trainer_extract_args.py                     22     22     0%
setup.py                                            14     14     0%
tests/conftest.py                                   30      0   100%
tests/test_assignee.py                              10      0   100%
tests/test_backout.py                                6      0   100%
tests/test_bug.py                                   13      0   100%
tests/test_bug_features.py                          91      0   100%
tests/test_bug_snapshot.py                           7      0   100%
tests/test_bugtype.py                               18      0   100%
tests/test_bugzilla.py                              26      0   100%
tests/test_commit_features.py                        9      0   100%
tests/test_db.py                                   214      0   100%
tests/test_defect.py                                 6      0   100%
tests/test_defect_enhancement_task.py                7      0   100%
tests/test_devdocneeded.py                           7      0   100%
tests/test_feature_cleanup.py                       33      0   100%
tests/test_github.py                                72      0   100%
tests/test_github_issue_retriever.py                59      0   100%
tests/test_hooks.py                                 23      0   100%
tests/test_invalid_compatibility_report.py           8      0   100%
tests/test_labels.py                                10      0   100%
tests/test_models.py                                20      0   100%
tests/test_needsdiagnosis.py                         8      0   100%
tests/test_phabricator.py                           19      0   100%
tests/test_pipelines.py                             37      0   100%
tests/test_qaneeded.py                              25      0   100%
tests/test_rcatype.py                               19      0   100%
tests/test_regression.py                             6      0   100%
tests/test_repository.py                          1222      0   100%
tests/test_stepstoreproduce.py                       7      0   100%
tests/test_test_scheduling.py                      262      0   100%
tests/test_test_scheduling_features.py              10      0   100%
tests/test_testselect.py                           183      0   100%
tests/test_tracking.py                               6      0   100%
tests/test_trainer.py                                8      0   100%
tests/test_uplift.py                                 6      0   100%
tests/test_utils.py                                218      0   100%
--------------------------------------------------------------------
TOTAL                                            11976   5711    52%

=========== 197 passed, 1 xfailed, 337 warnings in 71.80s (0:01:11) ============
+ bash /dev/fd/63
++ curl -s https://codecov.io/bash

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-1.0.6


==> git version 2.39.2 found
==> curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.11 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13
Release-Date: 2023-02-20
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
x> No CI provider detected.
    Testing inside Docker? http://docs.codecov.io/docs/testing-with-docker
    Testing with Tox? https://docs.codecov.io/docs/python#section-testing-with-tox
    current dir:  /bugbug
    project root: .
--> token set from env
    Yaml found at: .codecov.yml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy exists disable via -X coveragepy
    -> Running coverage xml
==> Searching for coverage reports in:
    + .
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage.xml bytes=450609
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
        32K	/tmp/codecov.gO9Ngl.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=&commit=3d79b9ae202390628c2945434b5d9a35df2a6760&build=&build_url=&name=&tag=&slug=&service=&flags=&pr=&job=&cmd_args=
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-1.0.6&token=<hidden>&package=bash-1.0.6&token=66162f89-a4d9-420c-84bd-d10f12a428d9&branch=&commit=3d79b9ae202390628c2945434b5d9a35df2a6760&build=&build_url=&name=&tag=&slug=&service=&flags=&pr=&job=&cmd_args=
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2023-11-24/03D1CA636477FE87A865820EBDD81459/3d79b9ae202390628c2945434b5d9a35df2a6760/4bc7577a-c120-46e4-aae1-77ccda533f47.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20231124%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20231124T161308Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b01293aa3285294fcdf9d2e7cbe8c0e8700cbcb0148deb07ed6f1baee30fc589
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 30867    0     0  100 30867      0   153k --:--:-- --:--:-- --:--:--  153k
    -> Reports have been successfully queued for processing at https://app.codecov.io/github/mozilla/bugbug/commit/3d79b9ae202390628c2945434b5d9a35df2a6760
[taskcluster 2023-11-24T16:13:10.131Z]    Exit Code: 0
[taskcluster 2023-11-24T16:13:10.131Z]    User Time: 26.023781s
[taskcluster 2023-11-24T16:13:10.131Z]  Kernel Time: 4.188211s
[taskcluster 2023-11-24T16:13:10.131Z]    Wall Time: 3m43.956767487s
[taskcluster 2023-11-24T16:13:10.131Z]       Result: SUCCEEDED
[taskcluster 2023-11-24T16:13:10.131Z] === Task Finished ===
[taskcluster 2023-11-24T16:13:10.131Z] Task Duration: 3m43.957170751s
[taskcluster 2023-11-24T16:13:10.236Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2024-11-24T17:07:29.134Z