From e2bfb829d264636f20ecf50ec1eff1fc4b97ee61 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 24 Oct 2022 09:35:23 -0700 Subject: [PATCH] Migrate rust-lang/rust to triagebot --- highfive/configs/rust-lang/rust.json | 153 ----------------------- highfive/tests/test_integration_tests.py | 5 + 2 files changed, 5 insertions(+), 153 deletions(-) delete mode 100644 highfive/configs/rust-lang/rust.json diff --git a/highfive/configs/rust-lang/rust.json b/highfive/configs/rust-lang/rust.json deleted file mode 100644 index 6dbe0fea..00000000 --- a/highfive/configs/rust-lang/rust.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "groups": { - "all": [], - "compiler-team": [ - "@cjgillot", - "@estebank", - "@petrochenkov", - "@davidtwco", - "@oli-obk", - "@lcnr", - "@nagisa", - "@wesleywiser" - ], - "compiler-team-contributors": [ - "@compiler-errors", - "@eholk", - "@jackh726", - "@fee1-dead", - "@TaKO8Ki" - ], - "compiler": [ - "compiler-team", - "compiler-team-contributors" - ], - "libs": [ - "@joshtriplett", - "@Mark-Simulacrum", - "@m-ou-se", - "@thomcc" - ], - "bootstrap": [ - "@Mark-Simulacrum", - "@jyn514" - ], - "infra-ci": [ - "@Mark-Simulacrum", - "@pietroalbini", - "@jyn514" - ], - "rustdoc": [ - "@jsha", - "@GuillaumeGomez", - "@CraftSpider", - "@notriddle" - ], - "docs": [ - "@ehuss", - "@GuillaumeGomez", - "@JohnTitor" - ], - "query-system": [ - "@cjgillot" - ], - "incremental": [ - "@michaelwoerister", - "@wesleywiser" - ], - "diagnostics": [ - "@compiler-errors", - "@davidtwco", - "@estebank", - "@oli-obk", - "@TaKO8Ki" - ], - "parser": [ - "@davidtwco", - "@estebank", - "@nnethercote", - "@petrochenkov" - ], - "lexer": [ - "@nnethercote", - "@petrochenkov" - ], - "mir": [ - "@davidtwco", - "@oli-obk" - ], - "mir-opt": [ - "@nagisa", - "@oli-obk", - "@wesleywiser" - ], - "types": [ - "@compiler-errors", - "@jackh726", - "@lcnr", - "@oli-obk", - "@spastorino" - ], - "borrowck": [ - "@davidtwco", - "@pnkfelix" - ], - "ast_lowering": [ - "@spastorino" - ] - }, - "dirs": { - ".github/workflows": ["infra-ci"], - "Cargo.lock": ["@Mark-Simulacrum"], - "Cargo.toml": ["@Mark-Simulacrum"], - "compiler": ["compiler"], - "compiler/rustc_apfloat": ["@eddyb"], - "compiler/rustc_ast/": ["compiler", "parser"], - "compiler/rustc_ast_lowering/": ["compiler", "ast_lowering"], - "compiler/rustc_lexer": ["compiler", "lexer"], - "compiler/rustc_llvm": ["@cuviper"], - "compiler/rustc_middle/src/mir": ["compiler", "mir"], - "compiler/rustc_middle/src/traits": ["compiler", "types"], - "compiler/rustc_mir/src/interpret": ["compiler", "mir"], - "compiler/rustc_mir/src/transform": ["compiler", "mir-opt"], - "compiler/rustc_mir_build/src/build": ["compiler", "mir"], - "compiler/rustc_typeck": ["compiler", "types"], - "compiler/rustc_traits": ["compiler", "types"], - "compiler/rustc_trait_selection": ["compiler", "types"], - "compiler/rustc_type_ir": ["compiler", "types"], - "compiler/rustc_parse": ["compiler", "parser"], - "compiler/rustc_parse/src/parse/lexer/": ["compiler", "lexer"], - "compiler/rustc_query_impl": ["compiler", "query-system"], - "compiler/rustc_query_system": ["compiler", "query-system"], - "library/alloc": ["libs"], - "library/core": ["libs", "@scottmcm"], - "library/panic_abort": ["libs"], - "library/panic_unwind": ["libs"], - "library/proc_macro": ["@petrochenkov"], - "library/std": ["libs"], - "library/std/src/sys/windows": ["@ChrisDenton", "@thomcc"], - "library/stdarch": ["libs"], - "library/term": ["libs"], - "library/test": ["libs"], - "src/bootstrap": ["bootstrap"], - "src/ci": ["infra-ci"], - "src/etc": ["@Mark-Simulacrum"], - "src/librustdoc": ["rustdoc"], - "src/rustdoc-json-types": ["rustdoc"], - "src/llvm-project": ["@cuviper"], - "src/stage0.json": ["bootstrap"], - "src/tools/cargo": ["@ehuss", "@joshtriplett"], - "src/tools/compiletest": ["bootstrap"], - "src/tools/linkchecker": ["@ehuss"], - "src/tools/rust-installer": ["bootstrap"], - "src/tools/rustbook": ["@ehuss"], - "src/tools/rustdoc": ["rustdoc"], - "src/tools/rustdoc-js": ["rustdoc"], - "src/tools/rustdoc-js-std": ["rustdoc"], - "src/tools/rustdoc-themes": ["rustdoc"], - "src/tools/tidy": ["bootstrap"], - "src/doc": ["docs"], - "src/doc/rustdoc": ["rustdoc"] - }, - "new_pr_labels": ["S-waiting-on-review"] -} diff --git a/highfive/tests/test_integration_tests.py b/highfive/tests/test_integration_tests.py index 92343a5b..bada8b4e 100644 --- a/highfive/tests/test_integration_tests.py +++ b/highfive/tests/test_integration_tests.py @@ -253,11 +253,16 @@ class TestNewComment(object): def make_mocks(cls, patcherize): cls.mocks = patcherize(( ('ConfigParser', 'highfive.newpr.ConfigParser'), + ('load_json_file', 'highfive.newpr.HighfiveHandler._load_json_file'), )) config_mock = mock.Mock() config_mock.get.side_effect = ('integration-user', 'integration-token') cls.mocks['ConfigParser'].RawConfigParser.return_value = config_mock + cls.mocks['load_json_file'].side_effect = ( + fakes.get_repo_configs()['individuals_no_dirs'], + fakes.get_global_configs()['base'], + ) def test_author_is_commenter(self): payload = fakes.Payload.new_comment()