Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Add property flag to specify an offset for the result path #412

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Munsio
Copy link
Contributor

@Munsio Munsio commented Feb 5, 2025

Part of #403

@Munsio Munsio added the enhancement New feature or request label Feb 5, 2025
@Munsio Munsio added this to the v1.1.0 milestone Feb 5, 2025
@Munsio Munsio assigned Munsio and ahumenberger and unassigned Munsio Feb 5, 2025
@@ -148,6 +150,7 @@ func Evaluate(ctx *Context) {
} else {
runCount = rl + 1
}
runID := ctx.RunIDOffset + runCount
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If RunIDOffset is by default 1 shouldn't all evaluations where it is not set automatically start with runID: 2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean here.

@@ -73,6 +73,8 @@ type Evaluate struct {
Configuration string `long:"configuration" description:"Configuration file to set up an evaluation run."`
// ExecutionTimeout holds the timeout for an execution.
ExecutionTimeout uint `long:"execution-timeout" description:"Execution timeout for compilation and tests in minutes." default:"5"`
// RunIDOffset holds the offset increment for the run id used in creating the result folders.
RunIDOffset uint `long:"run-id-starts-at" description:"Sets the offset for the ID used in creating result folders." default:"0"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDs start at 1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That depends if the cli option is an "offset" or an "id-starts-at". I'm just working with what I got here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants