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_test.go +3
| @@ -71,6 +71,9 @@ func TestJobFieldsAreRevalidated(t *testing.T) { | |||
| 71 | 71 | {"step times out for a week", func(j *runnerJob) { | |
| 72 | 72 | j.Steps = []runnerStep{{Name: "x", Run: "true", Timeout: "168h"}} | |
| 73 | 73 | }, "timeout"}, | |
| 74 | {"job budget is not a duration", func(j *runnerJob) { j.Timeout = "2 hours" }, "timeout"}, | ||
| 75 | {"job budget is negative", func(j *runnerJob) { j.Timeout = "-5m" }, "timeout"}, | ||
| 76 | {"job budget is a week", func(j *runnerJob) { j.Timeout = "168h" }, "timeout"}, | ||
| 74 | 77 | {"env value is two lines", func(j *runnerJob) { j.Env = map[string]string{"A": "1\n2"} }, "env.A"}, | |
| 75 | 78 | {"env name is not a name", func(j *runnerJob) { j.Env = map[string]string{"A B": "1"} }, "variable name"}, | |
| 76 | 79 | {"workflow name is empty", func(j *runnerJob) { j.Workflow = "" }, "workflow"}, | |