experimentArtifactUploadName returns the artifact name used when uploading the experiment artifact from the activation job. For workflow_call workflows the runtime prefix expression is prepended. For regular workflows the sanitized workflow ID is used as a prefix so the artifact name uniquely identi
(data *WorkflowData, sanitizedID string)
| 531 | // An empty sanitizedID falls back to the base name for defensive compatibility; in practice |
| 532 | // the compiler always sets a non-empty WorkflowID before this function is called. |
| 533 | func experimentArtifactUploadName(data *WorkflowData, sanitizedID string) string { |
| 534 | if hasWorkflowCallTrigger(data.On) { |
| 535 | return artifactPrefixExprForActivationJob(data) + constants.ExperimentArtifactName |
| 536 | } |
| 537 | if sanitizedID == "" { |
| 538 | return constants.ExperimentArtifactName |
| 539 | } |
| 540 | return sanitizedID + "-" + constants.ExperimentArtifactName |
| 541 | } |
| 542 | |
| 543 | // experimentArtifactDownloadName returns the artifact name used when downloading the experiment |
| 544 | // artifact from a downstream job. |
no test coverage detected