Skip to content

Commit bacb009

Browse files
committed
Store API query attempts in config.json
1 parent be241d3 commit bacb009

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cmd/eval-dev-quality/cmd/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ type EvaluationConfiguration struct {
1616
Models ModelsConfiguration
1717
// Repositories holds repository configuration data.
1818
Repositories RepositoryConfiguration
19+
20+
//APIAttempts holds the number of API query attempts.
21+
APIAttempts int
1922
}
2023

2124
// ModelsConfiguration holds model data of how an evaluation was configured.

cmd/eval-dev-quality/cmd/evaluate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ func (command *Evaluate) Initialize(args []string) (evaluationContext *evaluate.
170170
command.logger.Panicf("number of configured query attempts must be greater than zero")
171171
}
172172
evaluationContext.QueryAttempts = command.QueryAttempts
173+
evaluationConfiguration.APIAttempts = int(command.QueryAttempts)
173174

174175
if command.ExecutionTimeout == 0 {
175176
command.logger.Panicf("execution timeout for compilation and tests must be greater than zero")

0 commit comments

Comments
 (0)