a566afe4223de7a1e7373ac033c186aab8922682,tests/functional/client/test_cli_client.py,,test_interrupt_diff_code,#Any#Any#Any#,50

Before Change


        exp = list(database.experiments.find({"name": "voila_voici"}))
        exp = exp[0]
        exp_id = exp["_id"]
        trials = list(database.trials.find({"experiment": exp_id}))
        assert len(trials) == 2
        assert trials[0]["status"] == "broken"

    // This time we use true `get_execution_environment which pass properly int code to child.
    error_code = orion.core.cli.main(
        [
            "hunt",
            "--config",
            "./orion_config.yaml",
            "--worker-trials",
            "2",
            "python",
            "black_box.py",
            "interrupt_trial",
        ]
        + user_args
    )

    assert error_code == 130

    captured = capsys.readouterr()
    assert "Orion is interrupted.\n" in captured.out
    assert captured.err == ""

    exp = list(database.experiments.find({"name": "voila_voici"}))
    exp = exp[0]
    exp_id = exp["_id"]
    trials = list(database.trials.find({"experiment": exp_id}))

After Change


        exp = list(storage.fetch_experiments({"name": "voila_voici"}))
        exp = exp[0]
        exp_id = exp["_id"]
        trials = list(storage.fetch_trials(uid=exp_id))
        assert len(trials) == 2
        assert trials[0].status == "broken"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: Epistimio/orion
Commit Name: a566afe4223de7a1e7373ac033c186aab8922682
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: tests/functional/client/test_cli_client.py
Class Name:
Method Name: test_interrupt_diff_code


Project Name: Epistimio/orion
Commit Name: a566afe4223de7a1e7373ac033c186aab8922682
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: tests/functional/client/test_cli_client.py
Class Name:
Method Name: test_report_with_bad_trial_no_objective


Project Name: Epistimio/orion
Commit Name: a566afe4223de7a1e7373ac033c186aab8922682
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: tests/functional/client/test_cli_client.py
Class Name:
Method Name: test_report_with_bad_trial_with_data


Project Name: Epistimio/orion
Commit Name: a566afe4223de7a1e7373ac033c186aab8922682
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: tests/functional/client/test_cli_client.py
Class Name:
Method Name: test_interrupt_diff_code


Project Name: Epistimio/orion
Commit Name: a566afe4223de7a1e7373ac033c186aab8922682
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: tests/functional/client/test_cli_client.py
Class Name:
Method Name: test_interrupt


Project Name: Epistimio/orion
Commit Name: a566afe4223de7a1e7373ac033c186aab8922682
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: tests/functional/client/test_cli_client.py
Class Name:
Method Name: test_report_with_name


Project Name: Epistimio/orion
Commit Name: a566afe4223de7a1e7373ac033c186aab8922682
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: tests/functional/client/test_cli_client.py
Class Name:
Method Name: test_report_no_name