vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Let a job budget its whole run
e7aa0785cb69ace8c1338cc0b924113ea52a7abb · Keenan Nemetz · 6d ago · parent 2bc0ae74
Let a job budget its whole run A step was capped at an hour and a job was not capped at all, so a job of several slow steps held a runner for as long as they took, with no number saying what the job was allowed to spend. And one long step — a session, a soak test, a slow suite — could not be expressed, because the only clock was per step and its ceiling was an hour. A job may now declare `timeout: 2h`: a wall clock its steps share, starting with the first step. A step that declares its own timeout is cut short when the budget ends first, and a step that declares none runs with whatever is left, so one long step needs only the job's number. A budget spent before a step starts stops the job there instead of running the step on its own cap. The budget is optional, pinned with the run, and spent by a local run the same way, so nothing changes for a workflow that does not declare one. The step ceiling rises from one hour to four to make a single long step possible; the default stays ten minutes. The image build is not charged to the budget — it has its own cap, so a slow pull cannot eat the time the steps were given. A step timeout longer than its job's budget is refused at push time: the budget would end first, so the step could never use what it asked for. Closes #161. # Conflicts: # ci/agent/agent.go # cmd/vole/workflowrun.go # docs/reference/workflow-reference.md
ci/agent/validate.go +6
| @@ -78,6 +78,12 @@ func validateJob(job *runnerJob) error { | |||
| 78 | 78 | if job.TriggerAction != "" && (len(job.TriggerAction) > 64 || strings.ContainsAny(job.TriggerAction, "\x00\r\n")) { | |
| 79 | 79 | add("trigger action %q is not one line of text", job.TriggerAction) | |
| 80 | 80 | } | |
| 81 | if job.Timeout != "" { | ||
| 82 | d, err := time.ParseDuration(job.Timeout) | ||
| 83 | if err != nil || d <= 0 || d > ci.MaxTimeout { | ||
| 84 | add("timeout %q is not a duration between 0 and %s", job.Timeout, ci.MaxTimeout) | ||
| 85 | } | ||
| 86 | } | ||
| 81 | 87 | if job.EventPayload != "" { | |
| 82 | 88 | switch { | |
| 83 | 89 | case len(job.EventPayload) > ci.MaxEventPayloadBytes: | |