def _parse_artifact_file_name()

in scripts/metric_reporter/parser/base_parser.py [0:0]


    def _parse_artifact_file_name(name: str) -> ArtifactFile:
        if match := ARTIFACT_FILE_PATTERN.match(name):
            return ArtifactFile(
                name=name,
                job_number=int(match.group("job_number")),
                epoch=int(match.group("epoch")),
                repository=match.group("repository"),
                workflow=match.group("workflow"),
                test_suite=match.group("test_suite"),
            )
        else:
            raise ParserError(f"Unexpected file name format: {name}")