0d3690f88f1a03b738953227b2d00a9bad6d7be9,tests/tracking/test_tracking.py,,test_parent_create_run,#Any#,372

Before Change


    verify_has_parent_id_tag(child_run.info.run_uuid, parent_run.info.run_uuid)
    verify_has_parent_id_tag(grand_child_run.info.run_uuid, child_run.info.run_uuid)

    mlflow.end_run()
    mlflow.end_run()
    mlflow.end_run()
    assert mlflow.active_run() is None

After Change


    with mlflow.start_run() as parent_run:
        with pytest.raises(Exception, match="To start a nested run"):
            mlflow.start_run()
        with mlflow.start_run(nested=True) as child_run:
            with mlflow.start_run(nested=True) as grand_child_run:
                pass

    def verify_has_parent_id_tag(child_id, expected_parent_id):
        tags = tracking.MlflowClient().get_run(child_id).data.tags
        assert tags[MLFLOW_PARENT_RUN_ID] == expected_parent_id
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: mlflow/mlflow
Commit Name: 0d3690f88f1a03b738953227b2d00a9bad6d7be9
Time: 2019-04-22
Author: smurching@gmail.com
File Name: tests/tracking/test_tracking.py
Class Name:
Method Name: test_parent_create_run


Project Name: mlflow/mlflow
Commit Name: fce215310e853dd649d5aef41e4772f707866df7
Time: 2019-05-06
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: tests/tracking/test_tracking.py
Class Name:
Method Name: test_start_and_end_run


Project Name: mlflow/mlflow
Commit Name: 0d3690f88f1a03b738953227b2d00a9bad6d7be9
Time: 2019-04-22
Author: smurching@gmail.com
File Name: tests/tracking/test_tracking.py
Class Name:
Method Name: test_set_experiment_with_deleted_experiment_name


Project Name: mlflow/mlflow
Commit Name: 0d3690f88f1a03b738953227b2d00a9bad6d7be9
Time: 2019-04-22
Author: smurching@gmail.com
File Name: tests/tracking/test_tracking.py
Class Name:
Method Name: test_set_experiment