Align ATVM coverage and notes with template command
This commit is contained in:
@@ -697,6 +697,7 @@ def infer_metadata() -> Dict[str, object]:
|
||||
extra_options = [value for value in extra_options if isinstance(value, str) and value]
|
||||
return {
|
||||
"template": os.environ.get("ATVM_WATCHER_TEMPLATE", "unknown"),
|
||||
"template_command": os.environ.get("ATVM_WATCHER_TEMPLATE_COMMAND", ""),
|
||||
"config_family": os.environ.get("ATVM_WATCHER_CONFIG_FAMILY", "unknown"),
|
||||
"config_file": os.environ.get("ATVM_WATCHER_CONFIG_FILE", "unknown"),
|
||||
"migration_style": os.environ.get("ATVM_WATCHER_MIGRATION_STYLE", "ATVM automation validation"),
|
||||
@@ -765,6 +766,9 @@ def build_status_markdown(
|
||||
|
||||
if currents_url:
|
||||
notes = notes + [f"Currents recorded run: `{currents_url}`"]
|
||||
template_command = metadata.get("template_command")
|
||||
if isinstance(template_command, str) and template_command:
|
||||
notes = notes + [f"Template command: `{template_command}`"]
|
||||
|
||||
notes_block = "\n".join(f"- {note}" for note in notes) if notes else "- none"
|
||||
test_flow_lines = [f"- {step}" for step in get_test_flow(metadata.get("template"))]
|
||||
@@ -799,6 +803,7 @@ def build_status_markdown(
|
||||
"",
|
||||
"**COVERAGE:**",
|
||||
f"- template: `{metadata['template']}`",
|
||||
f"- categorize mode: `{'enabled' if metadata.get('categorized') else 'disabled'}`",
|
||||
f"- datastore/config family: `{metadata['config_family']}`",
|
||||
f"- config file: `{metadata.get('config_file', 'unknown')}`",
|
||||
f"- migration style: {metadata['migration_style']}",
|
||||
|
||||
Reference in New Issue
Block a user