Pipelines: New pipeline is one branch and Enter

The button now opens a page that asks for the dev branch and nothing else,
like Create Test does. The engine, repository, default network, time control,
options, bounds and base branch come from the same presets Create Test uses,
and the default plan is STC, then LTC if it passes. Presets, the base branch,
a name and the engine are there for whoever wants them, under More options.

Enter creates the pipeline and starts it. If the first test cannot be made
(a branch that does not exist, Github down) the pipeline is not left behind,
and the page comes back with the branch still typed in. Save without running
is the other button.

The flow editor stays as it was, and is one click away from the list and from
the new page, for retries, branching on a failure, tunes and datagen.
This commit is contained in:
claude committed 2026-10-14 20:29:02 +02:00
1 parent 48027f1142
commit 8077809d0b
4 files changed
+261 -2

No files matched your search

+92
View File
@@ -0,0 +1,92 @@
{% extends "OpenBench/base.html" %}
{% block page_head %}
<div>
<a class="crumb" href="/pipelines/"><i class="fa-solid fa-chevron-left"></i> Pipelines</a>
<h1 class="page-title">New pipeline</h1>
<p class="page-sub">Type a branch and press Enter. Everything else is filled in like Create Test, and the first test starts right away</p>
</div>
{% endblock %}
{% block content %}
<style>
.quick-more { margin-top: 14px; }
.quick-more summary { cursor: pointer; margin-bottom: 12px; color: var(--color-font2, inherit); font-size: 13px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.quick-hint { margin-top: 1rem; }
</style>
<form method="post" action="/pipelines/quick/" autocomplete="off">
{% csrf_token %}
<div class="form">
<div class="col">
<h3> What to test </h3>
<div class="row">
<label for="dev_branch"> Dev Branch </label>
<input id="dev_branch" name="dev_branch" value="{{ form.dev_branch }}" placeholder="The branch to test" spellcheck="false" autofocus required>
</div>
<div class="row">
<label for="first"> First Test </label>
<select id="first" name="first">
{% for choice in choices %}
<option value="{{ choice.name }}"{% if choice.name == form.first %} selected{% endif %}>{{ choice.name }}{% if choice.time %} ({{ choice.time }}){% endif %}</option>
{% endfor %}
</select>
</div>
<div class="row">
<label for="then"> If It Passes </label>
<select id="then" name="then">
<option value=""{% if not form.then %} selected{% endif %}>Stop there</option>
{% for choice in choices %}
<option value="{{ choice.name }}"{% if choice.name == form.then %} selected{% endif %}>Then {{ choice.name }}{% if choice.time %} ({{ choice.time }}){% endif %}</option>
{% endfor %}
</select>
</div>
<details class="quick-more"{% if more %} open{% endif %}>
<summary> More options </summary>
{% if engines|length > 1 %}
<div class="row">
<label for="engine"> Engine </label>
<select id="engine" name="engine" onchange="location.search = '?engine=' + encodeURIComponent(this.value) + '&amp;dev_branch=' + encodeURIComponent(document.getElementById('dev_branch').value);">
{% for name in engines %}
<option value="{{ name }}"{% if name == engine %} selected{% endif %}>{{ name }}</option>
{% endfor %}
</select>
</div>
{% else %}
<input type="hidden" name="engine" value="{{ engine }}">
{% endif %}
<div class="row">
<label for="base_branch"> Base Branch </label>
<input id="base_branch" name="base_branch" value="{{ form.base_branch }}" placeholder="{% if base %}{{ base }}{% else %}The branch to compare against{% endif %}" spellcheck="false"{% if not base %} required{% endif %}>
</div>
<div class="row">
<label for="name"> Name </label>
<input id="name" name="name" value="{{ form.name }}" placeholder="The branch, and what runs" maxlength="128" spellcheck="false">
</div>
</details>
</div>
</div>
<div class="form-actions">
<div class="quick-actions">
<button type="submit" name="action" value="run" class="anchorbutton btn-blue">Run pipeline</button>
<button type="submit" name="action" value="save" class="anchorbutton btn-start">Save without running</button>
</div>
</div>
</form>
<p class="muted-small quick-hint">Need to retry, branch on a failure, or tune? <a href="/pipelines/new/">Draw the flow in the editor</a>.</p>
{% endblock %}
+2 -1
View File
@@ -7,7 +7,8 @@
</div>
<div class="page-actions">
<a class="anchorbutton btn-blue" href="/pipelines/new/">New pipeline</a>
<a class="anchorbutton btn-blue" href="/pipelines/quick/">New pipeline</a>
<a class="anchorbutton btn-start" href="/pipelines/new/">Flow editor</a>
</div>
{% endblock %}