MCPcopy Create free account
hub / github.com/FastLED/FastLED / get_run_info

Method get_run_info

ci/tools/gh_debug.py:110–133  ·  view source on GitHub ↗

Get basic run information.

(self)

Source from the content-addressed store, hash-verified

108 return "FastLED/FastLED" # Default fallback
109
110 def get_run_info(self) -> dict[str, str]:
111 """Get basic run information."""
112 try:
113 result = subprocess.run(
114 [
115 "gh",
116 "run",
117 "view",
118 self.run_id,
119 "--json",
120 "displayTitle,status,conclusion,createdAt",
121 ],
122 capture_output=True,
123 text=True,
124 check=True,
125 timeout=10,
126 )
127 return json.loads(result.stdout)
128 except KeyboardInterrupt as ki:
129 handle_keyboard_interrupt(ki)
130 raise
131 except Exception as e:
132 print(f"Error getting run info: {e}", file=sys.stderr)
133 return {}
134
135 def get_failed_jobs(self) -> list[dict[str, str]]:
136 """Get list of failed jobs."""

Callers 1

debugMethod · 0.95

Calls 3

printFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected