bugbug 0.0.657__tar.gz → 0.0.658__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bugbug-0.0.657 → bugbug-0.0.658}/PKG-INFO +2 -2
- bugbug-0.0.658/VERSION +1 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/regressor.py +1 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/repository.py +2 -8
- bugbug-0.0.658/bugbug/sklearn_utils.py +59 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/test_scheduling.py +27 -21
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/utils.py +2 -55
- {bugbug-0.0.657 → bugbug-0.0.658}/pyproject.toml +1 -1
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/integration_test.sh +1 -1
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/shadow_scheduler_stats.py +1 -16
- bugbug-0.0.657/VERSION +0 -1
- {bugbug-0.0.657 → bugbug-0.0.658}/.gitignore +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/LICENSE +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/bug_features.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/bug_snapshot.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/bugzilla.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/build_platforms.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/code_search/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/code_search/function_search.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/code_search/mozilla.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/code_search/parser.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/code_search/searchfox_api.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/code_search/searchfox_data.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/code_search/searchfox_download.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/commit_features.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/db.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/feature_cleanup.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/github.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/issue_features.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/issue_snapshot.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/annotateignore.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/bug_nobug.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/defect_enhancement_task.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/defect_enhancement_task_e.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/defect_enhancement_task_h.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/defect_enhancement_task_p.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/defect_enhancement_task_s.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/regression_bug_nobug.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/regressionrange.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/str.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels/tracking.csv +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/labels.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/model.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/model_calibration.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/accessibility.py +1 -1
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/annotate_ignore.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/assignee.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/backout.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/browsername.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/bugtype.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/component.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/component_specific.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/defect.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/defect_enhancement_task.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/devdocneeded.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/fenixcomponent.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/fixtime.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/invalid_compatibility_report.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/needsdiagnosis.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/perf_regression_predictor.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/performancebug.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/qaneeded.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/rcatype.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/regression.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/regressionrange.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/severity.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/spambug.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/stepstoreproduce.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/testconfigdimensions.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/testconfigselect.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/testfailure.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/testselect.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/tracking.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/uplift.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/models/worksforme.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/nlp.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/calibration.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/commit_risk.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/datasets.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/extraction.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/label_policy.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/push_status.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/regression_commits.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/regression_labeling.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/selection_pairs.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/capacity.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/detection.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/metrics.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/optimize.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/splits.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/stats.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/strategies.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/simulation/timeline.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_alerts.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_capacity_background.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_capacity_builds.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_capacity_eligible.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_capacity_labels.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_capacity_pools.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_capacity_workers.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_pushes.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_task_costs.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/sql/perf_task_filter.sql +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/task_costs.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/perf/task_labels.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/phabricator.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/redash.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/rust_code_analysis_server.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/swarm.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/test_scheduling_features.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/base.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/agent.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/data_types.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/database.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/langchain_tools.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/prompts.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/protocols.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/review_context.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/review_context_schema.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/scorer.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/code_review/utils.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/comment_matching/agent.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/comment_matching/prompts.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/comment_resolution/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/comment_resolution/agent.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/connection.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/data_types.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/exceptions.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/llms.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/platforms/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/platforms/base.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/platforms/bugzilla.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/platforms/patch_apply.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/platforms/phabricator.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/text.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/core/validators.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/patch_summarization/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/patch_summarization/agent.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/patch_summarization/prompts.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/suggestion_filtering/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/suggestion_filtering/agent.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/tools/suggestion_filtering/prompts.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/bugbug/vectordb.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/__init__.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/analyze_training_metrics.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/backout_related_test_regressions.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/bug_classifier.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/bug_retriever.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/check.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/check_all_metrics.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/ci_failures_matching.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/comment_classifier.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/comment_level_labeler.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/comment_resolver_runner.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/commit_classifier.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/commit_retriever.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/compatibility_report_classifier.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/gcp_logs_retriever.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/generate_landings_risk_report.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/generate_sheet.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/get_type_labels.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/get_untriaged.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/github_issue_classifier.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/github_issue_retriever.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/inline_comments_data_collection.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/maintenance_effectiveness_indicator.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/microannotate_generator.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/past_bugs_by_unit.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/perf_alerts_retriever.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/perf_commit_risk_scorer.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/perf_regression_predictor.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/perf_scheduling_simulator.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/redundant_failures.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/regressor_finder.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/retrieve_ci_failures.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/retrieve_training_metrics.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/retrieve_try_pushes.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/review_comments_retriever.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/revision_retriever.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/test_scheduling_history_retriever.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/testing_policy_stats.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/trainer.py +0 -0
- {bugbug-0.0.657 → bugbug-0.0.658}/scripts/trainer_extract_args.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: bugbug
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.658
|
|
4
4
|
Summary: ML tools for Mozilla projects
|
|
5
5
|
Author-email: Marco Castelluccio <mcastelluccio@mozilla.com>
|
|
6
6
|
License-Expression: MPL-2.0
|
|
@@ -30,7 +30,7 @@ Requires-Dist: markdown2~=2.5.5
|
|
|
30
30
|
Requires-Dist: matplotlib<3.12.0,>=3.10.8
|
|
31
31
|
Requires-Dist: mercurial~=7.2
|
|
32
32
|
Requires-Dist: microannotate~=0.0.24
|
|
33
|
-
Requires-Dist: mozci~=2.6.
|
|
33
|
+
Requires-Dist: mozci~=2.6.1
|
|
34
34
|
Requires-Dist: numpy<2.6.0,>=2.4.3
|
|
35
35
|
Requires-Dist: orjson<3.14.0,>=3.11.7
|
|
36
36
|
Requires-Dist: ortools~=9.15.6755
|
bugbug-0.0.658/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.658
|
|
@@ -945,7 +945,7 @@ def hg_log(
|
|
|
945
945
|
if len(revs) == 0:
|
|
946
946
|
return tuple()
|
|
947
947
|
|
|
948
|
-
template = "{node}\\0{author}\\0{desc}\\0{bug}\\0{backedoutby}\\0{author|email}\\0{
|
|
948
|
+
template = "{node}\\0{author}\\0{desc}\\0{bug}\\0{backedoutby}\\0{author|email}\\0{firstpushdate|hgdate}\\0{reviewers}\\0{backsoutnodes}\\0"
|
|
949
949
|
|
|
950
950
|
args = hglib.util.cmdbuilder(
|
|
951
951
|
b"log",
|
|
@@ -1691,13 +1691,7 @@ def clone(
|
|
|
1691
1691
|
with hglib.open(repo_dir) as hg:
|
|
1692
1692
|
clean(hg, repo_dir)
|
|
1693
1693
|
|
|
1694
|
-
#
|
|
1695
|
-
try:
|
|
1696
|
-
os.remove(os.path.join(repo_dir, ".hg", "pushlog2.db"))
|
|
1697
|
-
except FileNotFoundError:
|
|
1698
|
-
logger.info("pushlog database doesn't exist")
|
|
1699
|
-
|
|
1700
|
-
# Pull, to make sure the pushlog is generated.
|
|
1694
|
+
# Pull, to retrieve the new changesets and their pushes.
|
|
1701
1695
|
with hglib.open(repo_dir) as hg:
|
|
1702
1696
|
logger.info("Pulling %s", repo_dir)
|
|
1703
1697
|
hg.pull(update=update)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
3
|
+
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
4
|
+
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
+
|
|
6
|
+
import numpy as np
|
|
7
|
+
from sklearn.base import BaseEstimator, TransformerMixin
|
|
8
|
+
from sklearn.compose import ColumnTransformer
|
|
9
|
+
from sklearn.preprocessing import OrdinalEncoder
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StructuredColumnTransformer(ColumnTransformer):
|
|
13
|
+
def _hstack(self, Xs, n_samples):
|
|
14
|
+
result = super()._hstack(Xs, n_samples=n_samples)
|
|
15
|
+
|
|
16
|
+
transformer_names = (name for name, transformer, column in self.transformers_)
|
|
17
|
+
types = []
|
|
18
|
+
for f, transformer_name in zip(Xs, transformer_names):
|
|
19
|
+
types.append((transformer_name, result.dtype, (f.shape[1],)))
|
|
20
|
+
|
|
21
|
+
return result.view(np.dtype(types))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class DictExtractor(BaseEstimator, TransformerMixin):
|
|
25
|
+
def __init__(self, key):
|
|
26
|
+
self.key = key
|
|
27
|
+
|
|
28
|
+
def fit(self, x, y=None):
|
|
29
|
+
return self
|
|
30
|
+
|
|
31
|
+
def transform(self, data):
|
|
32
|
+
return np.array([elem[self.key] for elem in data]).reshape(-1, 1)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MergeText(BaseEstimator, TransformerMixin):
|
|
36
|
+
def __init__(self, cols):
|
|
37
|
+
self.cols = cols
|
|
38
|
+
|
|
39
|
+
def fit(self, X, y=None):
|
|
40
|
+
return self
|
|
41
|
+
|
|
42
|
+
def transform(self, X):
|
|
43
|
+
return X[self.cols].apply(lambda row: " ".join(row), axis=1)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class MissingOrdinalEncoder(OrdinalEncoder):
|
|
47
|
+
"""Ordinal encoder that ignores missing values encountered after training.
|
|
48
|
+
|
|
49
|
+
Workaround for issue: scikit-learn/scikit-learn#11997
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
def fit(self, X, y=None):
|
|
53
|
+
self._categories = self.categories
|
|
54
|
+
self._fit(X, handle_unknown="ignore")
|
|
55
|
+
return self
|
|
56
|
+
|
|
57
|
+
def transform(self, X):
|
|
58
|
+
X_int, _ = self._transform(X, handle_unknown="ignore")
|
|
59
|
+
return X_int.astype(self.dtype, copy=False)
|
|
@@ -81,7 +81,7 @@ TOUCHED_TOGETHER_DB = "touched_together.lmdb.tar.zst"
|
|
|
81
81
|
db.register(
|
|
82
82
|
TEST_GROUP_SCHEDULING_DB,
|
|
83
83
|
"https://community-tc.services.mozilla.com/api/index/v1/task/project.bugbug.data_test_group_scheduling_history.latest/artifacts/public/test_group_scheduling_history.pickle.zst",
|
|
84
|
-
|
|
84
|
+
2,
|
|
85
85
|
[PAST_FAILURES_GROUP_DB, TOUCHED_TOGETHER_DB],
|
|
86
86
|
)
|
|
87
87
|
PUSH_DATA_GROUP_DB = "data/push_data_group.json"
|
|
@@ -948,12 +948,8 @@ def get_touched_together_key(f1: str, f2: str) -> bytes:
|
|
|
948
948
|
def get_touched_together(f1: str, f2: str) -> int:
|
|
949
949
|
touched_together = get_touched_together_db(True)
|
|
950
950
|
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
try:
|
|
954
|
-
return struct.unpack("I", touched_together[key])[0]
|
|
955
|
-
except KeyError:
|
|
956
|
-
return 0
|
|
951
|
+
value = touched_together.get(get_touched_together_key(f1, f2))
|
|
952
|
+
return struct.unpack("I", value)[0] if value is not None else 0
|
|
957
953
|
|
|
958
954
|
|
|
959
955
|
def set_touched_together(f1: str, f2: str) -> None:
|
|
@@ -1258,9 +1254,12 @@ def generate_data(
|
|
|
1258
1254
|
likely_regressions: Iterable[str],
|
|
1259
1255
|
):
|
|
1260
1256
|
if granularity != "label":
|
|
1257
|
+
# Each directory counts once, however many of the push's files are in it.
|
|
1261
1258
|
source_file_dirs = tuple(
|
|
1262
|
-
os.path.dirname(source_file) for source_file in commit["files"]
|
|
1259
|
+
set(os.path.dirname(source_file) for source_file in commit["files"])
|
|
1263
1260
|
)
|
|
1261
|
+
# Runnables in the same directories have the same touched together values.
|
|
1262
|
+
touched_together_by_dirs: dict[tuple[str, ...], tuple[int, int, float]] = {}
|
|
1264
1263
|
|
|
1265
1264
|
for runnable in runnables:
|
|
1266
1265
|
if granularity != "label":
|
|
@@ -1268,19 +1267,26 @@ def generate_data(
|
|
|
1268
1267
|
runnable[1] if isinstance(runnable, tuple) else runnable
|
|
1269
1268
|
)
|
|
1270
1269
|
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1270
|
+
if runnable_dirs not in touched_together_by_dirs:
|
|
1271
|
+
touched_together_by_dirs[runnable_dirs] = (
|
|
1272
|
+
sum(
|
|
1273
|
+
get_touched_together(source_file, runnable_dir)
|
|
1274
|
+
for source_file in commit["files"]
|
|
1275
|
+
for runnable_dir in runnable_dirs
|
|
1276
|
+
),
|
|
1277
|
+
sum(
|
|
1278
|
+
get_touched_together(source_file_dir, runnable_dir)
|
|
1279
|
+
for source_file_dir in source_file_dirs
|
|
1280
|
+
for runnable_dir in runnable_dirs
|
|
1281
|
+
),
|
|
1282
|
+
get_cochange_pmi(source_file_dirs, runnable_dirs),
|
|
1283
|
+
)
|
|
1284
|
+
|
|
1285
|
+
(
|
|
1286
|
+
touched_together_files,
|
|
1287
|
+
touched_together_directories,
|
|
1288
|
+
touched_together_pmi,
|
|
1289
|
+
) = touched_together_by_dirs[runnable_dirs]
|
|
1284
1290
|
|
|
1285
1291
|
is_possible_regression = runnable in possible_regressions
|
|
1286
1292
|
is_likely_regression = runnable in likely_regressions
|
|
@@ -25,17 +25,12 @@ import botocore
|
|
|
25
25
|
import dateutil.parser
|
|
26
26
|
import libmozdata
|
|
27
27
|
import lmdb
|
|
28
|
-
import numpy as np
|
|
29
28
|
import psutil
|
|
30
29
|
import requests
|
|
31
|
-
import scipy
|
|
32
30
|
import taskcluster
|
|
33
31
|
import tenacity
|
|
34
32
|
import zstandard
|
|
35
33
|
from requests.packages.urllib3.util.retry import Retry
|
|
36
|
-
from sklearn.base import BaseEstimator, TransformerMixin
|
|
37
|
-
from sklearn.compose import ColumnTransformer
|
|
38
|
-
from sklearn.preprocessing import OrdinalEncoder
|
|
39
34
|
|
|
40
35
|
from bugbug import get_bugbug_version
|
|
41
36
|
|
|
@@ -67,62 +62,14 @@ def numpy_to_dict(array):
|
|
|
67
62
|
|
|
68
63
|
|
|
69
64
|
def to_array(val):
|
|
65
|
+
import scipy.sparse
|
|
66
|
+
|
|
70
67
|
if isinstance(val, scipy.sparse.csr_matrix):
|
|
71
68
|
return val.toarray()
|
|
72
69
|
|
|
73
70
|
return val
|
|
74
71
|
|
|
75
72
|
|
|
76
|
-
class StructuredColumnTransformer(ColumnTransformer):
|
|
77
|
-
def _hstack(self, Xs, n_samples):
|
|
78
|
-
result = super()._hstack(Xs, n_samples=n_samples)
|
|
79
|
-
|
|
80
|
-
transformer_names = (name for name, transformer, column in self.transformers_)
|
|
81
|
-
types = []
|
|
82
|
-
for f, transformer_name in zip(Xs, transformer_names):
|
|
83
|
-
types.append((transformer_name, result.dtype, (f.shape[1],)))
|
|
84
|
-
|
|
85
|
-
return result.view(np.dtype(types))
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
class DictExtractor(BaseEstimator, TransformerMixin):
|
|
89
|
-
def __init__(self, key):
|
|
90
|
-
self.key = key
|
|
91
|
-
|
|
92
|
-
def fit(self, x, y=None):
|
|
93
|
-
return self
|
|
94
|
-
|
|
95
|
-
def transform(self, data):
|
|
96
|
-
return np.array([elem[self.key] for elem in data]).reshape(-1, 1)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
class MergeText(BaseEstimator, TransformerMixin):
|
|
100
|
-
def __init__(self, cols):
|
|
101
|
-
self.cols = cols
|
|
102
|
-
|
|
103
|
-
def fit(self, X, y=None):
|
|
104
|
-
return self
|
|
105
|
-
|
|
106
|
-
def transform(self, X):
|
|
107
|
-
return X[self.cols].apply(lambda row: " ".join(row), axis=1)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
class MissingOrdinalEncoder(OrdinalEncoder):
|
|
111
|
-
"""Ordinal encoder that ignores missing values encountered after training.
|
|
112
|
-
|
|
113
|
-
Workaround for issue: scikit-learn/scikit-learn#11997
|
|
114
|
-
"""
|
|
115
|
-
|
|
116
|
-
def fit(self, X, y=None):
|
|
117
|
-
self._categories = self.categories
|
|
118
|
-
self._fit(X, handle_unknown="ignore")
|
|
119
|
-
return self
|
|
120
|
-
|
|
121
|
-
def transform(self, X):
|
|
122
|
-
X_int, _ = self._transform(X, handle_unknown="ignore")
|
|
123
|
-
return X_int.astype(self.dtype, copy=False)
|
|
124
|
-
|
|
125
|
-
|
|
126
73
|
def get_taskcluster_options() -> dict:
|
|
127
74
|
"""Get the Taskcluster setup options according to current environment.
|
|
128
75
|
|
|
@@ -61,7 +61,7 @@ sleep 1
|
|
|
61
61
|
redis-cli -n 4 FLUSHDB
|
|
62
62
|
|
|
63
63
|
# Start the http server
|
|
64
|
-
gunicorn -b 127.0.0.1:8000 bugbug_http.app --preload --timeout 30 -w 3 &
|
|
64
|
+
gunicorn -c python:bugbug_http.gunicorn_conf -b 127.0.0.1:8000 bugbug_http.app --preload --timeout 30 -w 3 &
|
|
65
65
|
gunicorn_pid=$!
|
|
66
66
|
|
|
67
67
|
# Start the background worker
|
|
@@ -16,7 +16,7 @@ import matplotlib.pyplot as plt
|
|
|
16
16
|
import mozci.errors
|
|
17
17
|
import mozci.push
|
|
18
18
|
from dateutil.relativedelta import relativedelta
|
|
19
|
-
from mozci.task import get_configuration
|
|
19
|
+
from mozci.task import get_configuration
|
|
20
20
|
from pandas import DataFrame, DatetimeIndex, Series
|
|
21
21
|
from tqdm import tqdm
|
|
22
22
|
|
|
@@ -47,21 +47,6 @@ PUSH_MEMOIZED_ATTRIBUTES = (
|
|
|
47
47
|
)
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
def get_configuration(task: dict) -> str:
|
|
51
|
-
# mozci reads the test variants from "test-settings", but the task graph
|
|
52
|
-
# calls it "test-setting", so variants (e.g. "-swr") would be lost.
|
|
53
|
-
extra = task["task"]["extra"]
|
|
54
|
-
if "test-setting" in extra and "test-settings" not in extra:
|
|
55
|
-
task = {
|
|
56
|
-
**task,
|
|
57
|
-
"task": {
|
|
58
|
-
**task["task"],
|
|
59
|
-
"extra": {**extra, "test-settings": extra["test-setting"]},
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
return mozci_get_configuration(task)
|
|
63
|
-
|
|
64
|
-
|
|
65
50
|
# Granularities at which tasks, rather than groups, are evaluated:
|
|
66
51
|
# - "non_group": test tasks which don't run test groups (e.g. gtest);
|
|
67
52
|
# - "build": builds.
|
bugbug-0.0.657/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.0.657
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -78,10 +78,10 @@ class AccessibilityModel(BugModel):
|
|
|
78
78
|
]
|
|
79
79
|
)
|
|
80
80
|
|
|
81
|
-
@staticmethod
|
|
82
81
|
def get_rollback_point(self, item, label):
|
|
83
82
|
return "creation"
|
|
84
83
|
|
|
84
|
+
@staticmethod
|
|
85
85
|
def __is_accessibility_bug(bug):
|
|
86
86
|
"""Check if a bug is an accessibility bug."""
|
|
87
87
|
return (
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|