Skip to content

Commit bfe0336

Browse files
authored
Merge pull request #7 from chipfoundry/feature/tapeout-state-in-status
Show tapeout state in cf status output
2 parents 72fcee4 + 4cc3385 commit bfe0336

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

chipfoundry_cli/main.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,6 +1669,13 @@ def _show_platform_status(project_root: str):
16691669
lines.append(f"[bold]Shuttle:[/bold] {project['shuttle_name']}{deadline}")
16701670
if project.get('design_type'):
16711671
lines.append(f"[bold]Type:[/bold] {project['design_type']}")
1672+
ts_val = project.get('tapeout_state')
1673+
if ts_val:
1674+
_tsl = {"imported": "Imported", "tapeout_running": "Tapeout Running", "tapeout_done": "Tapeout Done", "drc_running": "DRC Running", "drc_checks_clean": "DRC Clean", "drc_checks_done": "DRC Done", "drc_checks_waived": "DRC Waived", "exported": "Exported", "confirmed": "Confirmed"}
1675+
_tsc = {"imported": "dim", "tapeout_running": "blue bold", "tapeout_done": "cyan", "drc_running": "blue bold", "drc_checks_clean": "green", "drc_checks_done": "yellow", "drc_checks_waived": "yellow", "exported": "magenta", "confirmed": "green bold"}
1676+
tl = _tsl.get(ts_val, ts_val)
1677+
tc = _tsc.get(ts_val, "white")
1678+
lines.append(f"[bold]Tapeout:[/bold] [{tc}]{tl}[/{tc}]")
16721679
if project.get('gds_hash'):
16731680
lines.append(f"[bold]GDS Hash:[/bold] {project['gds_hash'][:16]}...")
16741681
if project.get('updated_at'):
@@ -1718,13 +1725,21 @@ def status(sftp_host, sftp_username, sftp_key, json_output, show_all):
17181725
table.add_column("Name", style="cyan")
17191726
table.add_column("Shuttle", style="yellow")
17201727
table.add_column("Status", style="green")
1728+
table.add_column("Tapeout")
17211729
table.add_column("Updated", style="dim")
1730+
_tsl = {"imported": "Imported", "tapeout_running": "Tapeout Running", "tapeout_done": "Tapeout Done", "drc_running": "DRC Running", "drc_checks_clean": "DRC Clean", "drc_checks_done": "DRC Done", "drc_checks_waived": "DRC Waived", "exported": "Exported", "confirmed": "Confirmed"}
1731+
_tsc = {"imported": "dim", "tapeout_running": "blue bold", "tapeout_done": "cyan", "drc_running": "blue bold", "drc_checks_clean": "green", "drc_checks_done": "yellow", "drc_checks_waived": "yellow", "exported": "magenta", "confirmed": "green bold"}
17221732
for p in projects:
17231733
s_color = STATUS_COLORS.get(p.get('status', ''), 'white')
1734+
ts_raw = p.get('tapeout_state') or ''
1735+
ts_label = _tsl.get(ts_raw, ts_raw)
1736+
ts_color = _tsc.get(ts_raw, 'dim')
1737+
ts_cell = f"[{ts_color}]{ts_label}[/{ts_color}]" if ts_raw else "—"
17241738
table.add_row(
17251739
p.get('name', ''),
17261740
p.get('shuttle_name', '—'),
17271741
f"[{s_color}]{p.get('status', '')}[/{s_color}]",
1742+
ts_cell,
17281743
(p.get('updated_at') or '')[:10],
17291744
)
17301745
console.print(table)

0 commit comments

Comments
 (0)