Граф коммитов

246 Коммитов

Автор SHA1 Сообщение Дата
Promise Fru e31823744e
[New Model] Performance Bug Model (#3895) 2024-01-17 08:58:47 -05:00
Promise Fru ca1bebafe3
Extract the logic to identify bug types into individual feature classes (#3907) 2024-01-03 10:04:12 -05:00
Suhaib Mujahid 15fa808942 Drop the component_nn model 2023-11-29 20:01:09 -05:00
Suhaib Mujahid a59a1a74d2 Drop all couple bug features 2023-11-29 17:29:11 -05:00
Ksenia 97a0f86dd6
Add a model to identify invalid reports for Firefox in-product reporter (#3790) 2023-11-18 20:56:31 -05:00
Federico Menegoz c1403ececd
Change extraction features classes names from snake case to pascal case (#3781) 2023-11-03 16:23:45 -04:00
Marco Castelluccio 5d62964c55
Bump numpy from 1.22.4 to 1.26.1 (#3774)
* Bump numpy from 1.22.4 to 1.26.1

Bumps [numpy](https://github.com/numpy/numpy) from 1.22.4 to 1.26.1.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v1.22.4...v1.26.1)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
  update-type: version-update:semver-minor

* Test training regression model instead of defect model
2023-10-30 13:14:08 +01:00
Marco Castelluccio efabd210fd
Fix StructuredColumnTransformer transformer and add some tests for it (#3762)
The test also shows the difference between StructuredColumnTransformer and ColumnTransformer
2023-10-27 17:18:38 +02:00
Marco Castelluccio 3f0b533851 Update expected exception thrown by session request 2023-10-17 12:55:34 +02:00
Marco Castelluccio 1616ed4ca4 Raise explicit errors when requests fail in download_check_etag and get_last_modified 2023-10-17 12:16:49 +02:00
Promise Fru 9633b8979d
Use `zstdmt` instead of `std` for compression (#3703)
Fixes #3692
2023-10-16 12:15:39 +02:00
Marco Castelluccio b37623c74d
When retrieving past failure data for a TOML manifest, fallback on data from the homonymous INI manifest (#3691)
If we don't, we would consider TOML manifests as new, which would negatively affect the test selection model
2023-10-06 15:15:40 +02:00
Marco Castelluccio 39dc7e63e2 Adjust config selection test expectations 2023-09-15 16:26:00 +02:00
Marco Castelluccio 8e581d57f7 Use flake8 configuration suggested by black 2023-04-17 12:12:56 +02:00
ElusiveEllie 8936218ab2
Refactor print statements to use logger (#3330) 2023-03-14 17:54:15 +01:00
Marco Castelluccio 5a2870be2e Update pre-commit repositories 2023-02-06 11:42:06 +01:00
Qiuyi Wang JFS-NAT004 5080aaf552
Add feature: Time delta between landing of the patch in Nightly and uplift request (#3118) 2022-11-03 17:06:37 -04:00
Amotul-Raheem Olajide 98f841de35
Add nom metric (#3115) 2022-10-14 11:46:16 -04:00
tuncbkose 4a71c48f6b
Add more Halstead metrics (#2372) 2022-10-11 18:57:31 -04:00
Suhaib Mujahid 9bb13621d5
Fix test failures in defect models (#2944)
* Fix a `KeyError` failure in `test_bug.py`

* Fix a `KeyError` failure in `test_regression.py`

* Add a nobug to the mock file
2022-06-06 09:48:56 +02:00
Marco Castelluccio f6fdd60583 Change github retriever test to assert for the MaxRetry exception to be raised
Instead of HTTPError. This change is necessary since responses 0.21.0 added
support for retry testing (bdc5eff716).
2022-05-30 11:26:15 +02:00
Marco Castelluccio 1d7d284eb9 Add responses.add_passthru in all test functions where it is needed
The test was working with responses 0.16.0 because passthru prefixes were
being preserved between test. This bug was fixed in
6d9b36f2b6.
2022-05-30 11:12:37 +02:00
Marco Castelluccio a483da6e60 Extract config selection functions from the TestSelect class
To avoid a hang when using multiprocessing to eval the model that
started since v0.0.474 (probably due to the xgboost update).
2022-05-26 13:51:45 +02:00
Marco Castelluccio 6108329afc Fix some new linting failures 2022-03-16 11:55:55 +01:00
Ksenia dcad9b16a6
Fix an error in the issue retrieval for private github issues (#2748)
Fixes #2747
2022-02-05 23:38:34 +01:00
Marco Castelluccio e0bf79e06a Add tests for utils.zstd_compress 2022-02-03 18:04:14 +01:00
Kunam Balaram Reddy 9c57dbc932
Don't return a last modified date if the DB schema changed (#2653)
Fixes #2459
2021-12-13 19:40:05 +01:00
Anoop T P 2b2cbe06f1
Raise a custom exception when Last-Modified is not available (#2667)
Fixes #2663
2021-12-10 15:09:37 +01:00
Kunam Balaram Reddy cbaf0de92e
Use dict, list, tuple instead of typing (#2640)
Except in one file where mypy complains

Fixes #2634
2021-12-01 17:27:14 +01:00
Ksenia 627e182061
Add support for multiple DBs for github (#2465)
Fixes #2460

Co-authored-by: Marco Castelluccio <mcastelluccio@mozilla.com>
2021-10-05 14:31:00 +02:00
Marco Castelluccio 6ce551c848 Add an additional test for the path distance feature 2021-09-01 14:42:50 +02:00
Marco Castelluccio df64e8b038 Don't fail when calcualting the common prefix between two strings where one is a substring of the other
Fixes #2497
2021-09-01 14:40:48 +02:00
Marco Castelluccio 51304e6d07 Skip fake reviewers also when there are real reviewers in the list 2021-08-31 20:47:44 +02:00
Marco Castelluccio 51b63fc86f Send a notification with a set of quality metrics and actionable insights to some teams 2021-07-20 19:13:31 +02:00
Ksenia d1cb24fb78
Fetch private issue contents to replace public issue body and title in the dataset to account for moderation workflow (#2387) 2021-07-06 18:31:44 +02:00
Ksenia b6fc3ca1c6
Add needsdiagnosis model to classify webcompat issues (#2313) 2021-04-27 10:06:14 +02:00
Gokul Viswanath 99b1c0e17e
Add Blank Metric (#2203)
Fixes #1482
2021-04-08 16:58:53 +02:00
Ksenia eea914ec31
Get updates for GitHub issues based on last_modified (#2281)
Follow-up to #2242.
Part of #259.
2021-04-08 16:23:44 +02:00
Marco Castelluccio 15dba7cfec Calculate the cost to run a group on a given configuration more precisely
The cost is composed of a fixed cost associated to the configuration, plus a
cost for each group that runs on that configuration.

Note: this is still an approximation, we can make further improvements to
make it match reality more precisely.
2021-04-03 00:38:13 +02:00
Ksenia e4db6b219f
Add support for GitHub issue retrieval (#2242)
First step for #259
2021-03-24 08:46:37 +01:00
Gokul Viswanath 2d7c53f276
Add Mi metric (#2207)
Fixes #1448.
2021-03-08 13:50:14 +01:00
Marco Castelluccio 6249c61442 Update fixture commits push dates to avoid backout model ignoring some of the commits during tests 2021-03-08 13:15:43 +01:00
Marco Castelluccio 9353fcc4e5 Add a function to the Phabricator module to measure the time elapsed between the creation of a revision and its first review
Prerequisite of #2164
2021-02-24 12:34:26 +01:00
Marco Castelluccio 17a2f79257 Update expected target array for the bug type labels 2021-02-04 18:05:03 +01:00
Marco Castelluccio fc2c37849d Bring back storing functions touched by commits
Fixes a regression from 43e1ad10ee
2021-02-03 12:44:41 +01:00
Marco Castelluccio a7967725c3
Switch to using the products API to get the mapping from components to teams (#2132) 2021-02-02 15:09:54 +01:00
Marco Castelluccio 536cfe3d21 Don't install Tensorflow in the tests task
It forces the installation of numpy 1.19.5, which is incompatible with the latest version of shap.
2021-02-01 11:06:56 +01:00
Marco Castelluccio 43e1ad10ee
Add diff in complexity metrics to the features (#2088)
Fixes #1190
2021-01-11 17:19:32 +01:00
Marco Castelluccio 98667effbb
Add function-level complexity metrics (#2073)
Fixes #1314
2021-01-07 22:15:38 +01:00
Marco Castelluccio 9f313eea28 Fix a off-by-one error in touched function detection 2021-01-06 18:36:15 +01:00