diff --git a/agent/agent.go b/agent/agent.go index 2bce473365f..7f686bd8930 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -1024,7 +1024,8 @@ func (a *Agent) finishTask(ctx context.Context, tc *taskContext, status string, err = a.upsertCheckRun(ctx, tc) if err != nil { - grip.Error(errors.Wrap(err, "upserting checkrun")) + grip.Error(errors.Wrap(err, "upserting check run")) + tc.logger.Task().Errorf("Error upserting check run: '%s'", err.Error()) } span := trace.SpanFromContext(ctx) @@ -1073,7 +1074,7 @@ func buildCheckRun(ctx context.Context, tc *taskContext) (*apimodels.CheckRunOut fileName, err := tc.taskConfig.Expansions.ExpandString(fileName) if err != nil { - return nil, errors.WithStack(err) + return nil, errors.New("Error expanding check run output file") } fileName = command.GetWorkingDirectory(tc.taskConfig, fileName) @@ -1092,7 +1093,7 @@ func buildCheckRun(ctx context.Context, tc *taskContext) (*apimodels.CheckRunOut } if err := util.ExpandValues(&checkRunOutput, &tc.taskConfig.Expansions); err != nil { - return nil, errors.Wrap(err, "applying expansions") + return nil, errors.New("Error expanding values for check run output") } return &checkRunOutput, nil diff --git a/config.go b/config.go index c088217bbe8..4272e68f093 100644 --- a/config.go +++ b/config.go @@ -38,7 +38,7 @@ var ( // Agent version to control agent rollover. The format is the calendar date // (YYYY-MM-DD). - AgentVersion = "2024-04-01" + AgentVersion = "2024-04-01a" ) // ConfigSection defines a sub-document in the evergreen config