for v, _testruns in cube.iter_versions():
# TODO: Add commit_url href to version.
v.href = None
+ v.hexsha_short = None
+ if v.source_commit is not None:
+ v.hexsha_short = v.source_commit.hexsha[:7]
versions.append(v)
# TODO: Also collect baseline_versions.
for sk in cube.iter_configurations(expname):
def show_version_header(v):
# TODO Also consider extra_tag
+ value = v.version_id
+ if v.hexsha_short:
+ value = v.hexsha_short
if v.href:
- return f"<a href={v.href}>{v.version_id}</a>" # XXX HTML ONLY
- return v.version_id
+ return f"<a href={v.href}>{value}</a>" # XXX HTML ONLY
+ return value
def show_configuration_cell(value, field=None):
if field == 'distro':