agent-harness / tasks /patches /TASK_CR_008_source.patch
cuber12's picture
Publish agent harness research code and paper artifacts
d61821a verified
Raw
History Blame Contribute Delete
813 Bytes
diff --git a/functions/concrete/run/runner.go b/functions/concrete/run/runner.go
index af053eb4..5088598c 100644
--- a/functions/concrete/run/runner.go
+++ b/functions/concrete/run/runner.go
@@ -304,7 +304,10 @@ func (r *Runner) finalize(ctx context.Context) (cacheErr, artifactErr error) {
})
}
- if len(r.config.ArtifactsArchive) > 0 {
+ // Mirror abstract's writeUploadArtifacts ErrSkipBuildStage guard: with
+ // no server URL there is nowhere to upload to, so skip the section
+ // entirely rather than invoking artifacts-uploader with --url "".
+ if len(r.config.ArtifactsArchive) > 0 && r.env.BaseURL != "" {
_ = r.section(ctx, uploadSection, func(ctx context.Context, e *env.Env) error {
for _, artifact := range r.config.ArtifactsArchive {
if err := artifact.Run(ctx, e); err != nil {