in bot/code_coverage_bot/taskcluster.py [0:0]
def name_to_chunk(name: str):
"""
Helper to convert a task name to a chunk
Used by chunk mapping
"""
# Some tests are run on build machines, we define placeholder chunks for those.
if name.startswith("build-signing-"):
return "build-signing"
elif name.startswith("build-"):
return "build"
name = name.split("/")[1]
return "-".join(p for p in name.split("-") if p not in NAME_PARTS_TO_SKIP)