MCPcopy Create free account
hub / github.com/ezyang/ghstack / strip_sccache

Function strip_sccache

src/ghstack/forensics.py:19–23  ·  view source on GitHub ↗
(x: str)

Source from the content-addressed store, hash-verified

17
18
19def strip_sccache(x: str) -> str:
20 sccache_marker = "=================== sccache compilation log ==================="
21 marker_pos = x.rfind(sccache_marker)
22 newline_before_marker_pos = x.rfind("\n", 0, marker_pos)
23 return x[:newline_before_marker_pos]
24
25
26async def main(

Callers 1

process_nodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected