Skip to content

exp show --csv: Parent column empty #7001

@dberenbaum

Description

@dberenbaum

Bug Report

Description

The parent commit column in exp show --csv is empty even for checkpoints where a parent commit exists.

Reproduce

$ git clone git@github.com:dberenbaum/dvc-checkpoint.git
$ echo 1 > bar
$ dvc exp run
$ dvc exp show --json
{
  "workspace": {
    "baseline": {
      "data": {
        "timestamp": null,
        "params": {
          "params.yaml": {
            "data": {
              "start": 0
            }
          },
          "checkpoint.py": {
            "data": {
              "EPOCHS": 2,
              "STEP": 1
            }
          }
        },
        "queued": false,
        "running": false,
        "executor": null,
        "metrics": {
          "scores.yaml": {
            "data": {
              "epoch": 1,
              "mult": 1
            }
          }
        }
      }
    }
  },
  "0fd92c2c0ff17c923a79b4b0b96e54fe4b73a8cf": {
    "baseline": {
      "data": {
        "timestamp": "2021-03-10T14:05:52",
        "params": {
          "params.yaml": {
            "data": {
              "start": 0
            }
          },
          "checkpoint.py": {
            "data": {
              "EPOCHS": 2,
              "STEP": 1
            }
          }
        },
        "queued": false,
        "running": false,
        "executor": null,
        "metrics": {},
        "name": "main"
      }
    },
    "0a2b7379f2720a2fe240a826a611c285ddb2d07f": {
      "data": {
        "checkpoint_tip": "0a2b7379f2720a2fe240a826a611c285ddb2d07f",
        "timestamp": "2021-11-18T20:30:27",
        "params": {
          "params.yaml": {
            "data": {
              "start": 0
            }
          },
          "checkpoint.py": {
            "data": {
              "EPOCHS": 2,
              "STEP": 1
            }
          }
        },
        "queued": false,
        "running": false,
        "executor": null,
        "metrics": {
          "scores.yaml": {
            "data": {
              "epoch": 1,
              "mult": 1
            }
          }
        },
        "name": "exp-e44da",
        "checkpoint_parent": "8acf8ec4ea2dcedc39eac011d35cf26a1e1f291d"
      }
    },
    "8acf8ec4ea2dcedc39eac011d35cf26a1e1f291d": {
      "data": {
        "checkpoint_tip": "0a2b7379f2720a2fe240a826a611c285ddb2d07f",
        "timestamp": "2021-11-18T20:30:26",
        "params": {
          "params.yaml": {
            "data": {
              "start": 0
            }
          },
          "checkpoint.py": {
            "data": {
              "EPOCHS": 2,
              "STEP": 1
            }
          }
        },
        "queued": false,
        "running": false,
        "executor": null,
        "metrics": {
          "scores.yaml": {
            "data": {
              "epoch": 0,
              "mult": 0
            }
          }
        },
        "checkpoint_parent": "0fd92c2c0ff17c923a79b4b0b96e54fe4b73a8cf"
      }
    }
  }
}
$ dvc exp show --csv
Experiment,rev,typ,Created,parent,epoch,mult,start,EPOCHS,STEP
,workspace,baseline,,,1,1,0,2,1
main,0fd92c2,baseline,2021-03-10T14:05:52,,,,0,2,1
exp-e44da,0a2b737,checkpoint_tip,2021-11-18T20:30:27,,1,1,0,2,1
,8acf8ec,checkpoint_base,2021-11-18T20:30:26,,0,0,0,2,1

Expected

8acf8ec should have 0fd92c2c0ff17c923a79b4b0b96e54fe4b73a8cf in parent.

Environment information

2.8.4.dev29+gd8c77da4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions