Build a pipeline that files tickets
In this tutorial you build intake, a pipeline that turns a request for work into tickets: one new ticket for each bullet of the request, which codeband writes as a Markdown file. Its code reads like a short Python script. Unlike a script, it runs under codeband, which records the value of each function step in the run journal and runs your pipeline function again from the start for each next step, so every function step runs once per run, however often the function runs. You write a run input of typed parameters, plain pipeline code, a stop, a run result with new tickets and two function steps, and run the pipeline once before and once after you add the function steps. At the end, codeband run prints a line for each of the two function steps, no code change and the path of the file of each new ticket, the folder /tmp/py-factory-tickets holds 01-fix-the-crash-on-start.md and 02-add-a-dark-mode.md in a folder named after the run, and the run journal shows the value that each function step recorded. If something fails, see Troubleshooting at the end of this page.
The finished code is the factory examples/py-factory, and its intake is the pipeline that the Quickstart runs.
What you need
Section titled “What you need”| Tool | Version | Used for | Check |
|---|---|---|---|
| uv | any recent | Python, the project and the package codeband-sdk |
uv --version |
| Git | 2.42 or later | The repository of the factory, which the runs also work on | git --version |
| jq | any recent | Reading the run journal at the end | jq --version |
Install codeband lists the operating systems that codeband-sdk supports and what the package holds. You don’t need to install it first: this tutorial adds it to its own folder. Git needs your name and email for a commit, as git config user.name and git config user.email show. The tutorial takes about 30 minutes, and its pipeline runs no agent, so it costs nothing.
How the parts fit together
Section titled “How the parts fit together”At the end of the tutorial, the folder py-factory holds these files. You write the ones in bold:
Directorypy-factory/
- .gitignore
- .python-version the Python version of the project
- pyproject.toml names codeband-sdk and lists the pipeline
- uv.lock
Directorypy_factory/
- __init__.py
- models.py the values that pass between the parts
- planning.py plain pipeline code
- function_steps.py the function steps
- pipeline.py the pipeline intake
You run two processes. codeband dev starts the code server, which loads the pipelines that pyproject.toml lists and runs their code, and the daemon, which starts runs and records what happens in them. codeband run asks the daemon to start a run. Architecture shows every part and follows one run through them.
Create the factory
Section titled “Create the factory”A factory is the folder that holds your pipelines and the settings that list them. For the Python SDK it is a Python project. Here it is also a git repository. A run works on the code of a git repository, its target repository, and the runs of this tutorial use the factory for that.
-
Create the project
In a terminal, create the folder
py-factorywith apyproject.toml, change into it and pin its Python version:Terminal window uv init --bare --python 3.12 py-factorycd py-factoryuv python pin 3.12--python 3.12sets the lowest Python version that the project supports,requires-python = ">=3.12"inpyproject.toml.uv python pinwrites.python-version, so uv runs the project with Python 3.12 and not with the newest Python on your machine. uv downloads Python 3.12 when it doesn’t find it. uv prints one line for each command:Output Initialized project `py-factory` at `…/py-factory`Pinned `.python-version` to `3.12` -
Add codeband
Add the package that holds the
codebandcommand and the Python SDK:Terminal window uv add codeband-sdkuv creates the Python environment in
.venv, installscodeband-sdkwith its dependencies and pins their versions inuv.lock. It prints the packages it installed,pydanticamong them. -
Make it a git repository
Start the repository, make the folder of the Python package and tell git to ignore the files that Python writes when the code server imports your code:
Terminal window git initmkdir py_factorytouch py_factory/__init__.pyecho '__pycache__/' > .gitignoregit initprintsInitialized empty Git repository in …/py-factory/.git/. uv’s.venvfolder ignores itself, so it needs no line in.gitignore.
Run every command of this tutorial in the folder py-factory, through uv run, which runs codeband from the Python environment of the factory.
The run input
Section titled “The run input”The run input is a JSON object with named, typed fields, and each field is one parameter of the pipeline function: the parameter’s name, type and default are the field’s. A trigger such as codeband run sends the input as JSON, and the code server checks it against the parameters before the run starts, so a run never starts with an input that the pipeline can’t read. The Pipeline page explains the run input in full.
Write the types of the plan
Section titled “Write the types of the plan”Save this file as py_factory/models.py:
"""The values that the function steps take and give."""
from typing import Literal
import codeband as cb
type Kind = Literal["bug", "feature", "chore"]type Size = Literal["small", "medium", "large"]
class Ticket(cb.Model): """One unit of work that the intake pipeline plans."""
number: int title: str kind: Kind size: Size
class Plan(cb.Model): """The tickets of one request, in the order of its bullets."""
title: str tickets: list[Ticket]Ticket and Plan are the values that pass between the parts of the pipeline. Each class subclasses cb.Model, a pydantic model that refuses unknown fields. Kind and Size limit a ticket’s kind and size to a few strings.
Plain pipeline code
Section titled “Plain pipeline code”codeband moves a run forward by run replay: it runs your pipeline function again from the start for each next step, and each step that already ran returns its recorded value. One such run of the function is an invocation. Code between the steps, plain pipeline code, runs on every invocation.
Plain pipeline code must give the same result for the same input and the same recorded values, because each invocation must ask for the same steps in the same order. Code that only computes, such as parsing the request body, follows this rule without any help from codeband. It needs no function step and costs nothing to run again.
Write the plan
Section titled “Write the plan”Save this file as py_factory/planning.py:
"""Planning: plain pipeline code without side effects.
Pipeline code runs again on every invocation, so it must give the same plan for the same input. It needs no function step."""
from typing import Final
from py_factory.models import Kind, Plan, Size, Ticket
_BUG_WORDS: Final = frozenset({"bug", "broken", "crash", "crashes", "error", "fails", "fix", "wrong"})_CHORE_WORDS: Final = frozenset({"bump", "clean", "docs", "remove", "rename", "update", "upgrade"})
def plan_tickets(title: str, body: str) -> Plan: """Make one ticket per Markdown bullet of the body of a request.""" tickets = [_ticket(n, line) for n, line in enumerate(_bullets(body), start=1)]
return Plan(title=title, tickets=tickets)
def _bullets(body: str) -> list[str]: bullets: list[str] = [] for line in body.splitlines(): stripped = line.strip() if stripped.startswith(("- ", "* ")) and stripped[2:].strip(): bullets.append(stripped[2:].strip())
return bullets
def _ticket(number: int, line: str) -> Ticket: words = [w.strip(".,:;!?()").lower() for w in line.split()]
return Ticket(number=number, title=line, kind=_kind(words), size=_size(words))
def _kind(words: list[str]) -> Kind: if _BUG_WORDS.intersection(words): return "bug"
if _CHORE_WORDS.intersection(words): return "chore"
return "feature"
def _size(words: list[str]) -> Size: if len(words) <= 6: return "small"
if len(words) <= 15: return "medium"
return "large"plan_tickets makes one ticket for each line of the body that starts with - or * . A line with a word such as fix or crash becomes a bug, a line with a word such as update or docs becomes a chore, and any other line becomes a feature. The number of words decides the size. The function reads only its argument, so it gives the same plan every time.
Write the pipeline
Section titled “Write the pipeline”The first version of intake plans the tickets and ends the run with them. Save this file as py_factory/pipeline.py:
"""The pipelines of this factory. pyproject.toml lists them under [tool.codeband]."""
import codeband as cb
from py_factory.models import Plan, Ticketfrom py_factory.planning import plan_tickets
@cb.pipelinedef intake(title: str, body: str, max_tickets: int = 5) -> cb.RunResult | None: """Plan one ticket per Markdown bullet of the body of a request for work, as a person writes it.
The run stops when the body has no bullet or more than max_tickets. It ends with the tickets in its run result and no code change, and the daemon delivers the tickets. """ plan = plan_tickets(title, body) if not plan.tickets: raise cb.Stop("the request has no tickets: write each one as a '- ' bullet")
if len(plan.tickets) > max_tickets: raise cb.Stop(f"the request has {len(plan.tickets)} tickets, more than {max_tickets}: split it")
return cb.RunResult(tickets=[_new_ticket(plan, t) for t in plan.tickets])
def _new_ticket(plan: Plan, ticket: Ticket) -> cb.NewTicket: return cb.NewTicket(title=ticket.title, body=f"Part of the request {plan.title}.", tags=[ticket.kind, ticket.size])@cb.pipeline makes intake a pipeline. Its name is the function’s name, and its parameters are the fields of the run input: a request for work with a title, a body that lists one ticket per Markdown bullet, and max_tickets, which has a default and so may be left out. The value that the function returns or raises decides how the run ends:
| The function | The run ends | codeband run prints |
Exit code |
|---|---|---|---|
Raises cb.Stop with a reason |
Stopped, on purpose | stopped: REASON |
3 |
Returns None |
With no code change | no code change |
0 |
Returns a cb.RunResult with new tickets |
With no code change and the new tickets, each written as a Markdown file | no code change, then new ticket: TITLE: PATH for each new ticket |
0 |
Returns a cb.RunResult with a code change |
With a code change, written as a patch file | The path of the patch file | 0 |
A stop is for an input that the pipeline can’t work on. intake stops when the body has no bullet or more bullets than max_tickets. Otherwise it changes no code in the target repository and returns its plan as the new tickets of its run result: one cb.NewTicket with a title, a body and tags for each ticket. The pipeline doesn’t write the tickets anywhere. codeband delivers them when the run ends, to the place that the person who starts the run chooses.
Then list the pipeline in the settings of the factory. Add these lines at the end of pyproject.toml:
[tool.codeband]pipelines = ["py_factory.pipeline:intake"]The code server loads only the pipelines in this list, each as module:function. Commit the files, so each run names the commit of the code it ran:
git add -Agit commit -m "Add the pipeline intake"git prints the commit’s ID and 8 files changed.
Start codeband
Section titled “Start codeband”Open a second terminal, change to the folder py-factory and start the daemon and the code server:
uv run codeband devcodeband dev logs that it found no config file and checked git, serves the web interface and prints its address with a secret token, and starts the code server, which logs the pipelines it loaded: intake. Then the daemon starts. Both keep running and log to this terminal, with comp naming the part that logged each line:
Nov 25 20:46:42.180 INF Read no config file comp=daemon searched="codeband.toml, ~/.config/codeband/codeband.toml"Nov 25 20:46:42.187 INF Checked programs comp=daemon git=2.53.0Nov 25 20:46:42.188 INF Serving the web interface comp=web addr=127.0.0.1:8765http://127.0.0.1:8765/?token=AIK36GUY7PVMQZH77Q45FZCBTUNov 25 20:46:42.189 INF Started code server comp=daemon command=…/py-factory/.venv/bin/codeband-codeserver pid=68391Nov 25 20:46:42.189 INF Waiting for the code server comp=daemon code_server=unix:~/.local/state/codeband/codeserver.sockNov 25 20:46:44.099 INF Loaded pipelines comp=codeserver pipelines=[intake] folder=…/py-factoryNov 25 20:46:44.121 INF Serving pipelines comp=codeserver address=unix:~/.local/state/codeband/codeserver.sockNov 25 20:46:44.133 INF Starting daemon comp=daemon state_dir=~/.local/state/codeband store_dir=~/.local/state/codeband/store rate_limit_backoff="[5m0s 15m0s]" version=v0.0.0-…Nov 25 20:46:44.135 INF Listening comp=daemon socket=~/.local/state/codeband/daemon.sockRun the first version
Section titled “Run the first version”codeband dev serves the factory under the name of its folder, py-factory. Every command names a pipeline after its factory, so intake is py-factory/intake. codeband dev --factory NAME sets another name.
Back in the first terminal, start a run with a body that has no bullet:
uv run codeband run py-factory/intake --input '{"title": "Release 1.2", "body": "Fix the crash on start"}'--input is the run input as JSON. The run works on the repository of the folder you start it in, py-factory, at its HEAD commit. intake raises cb.Stop, so codeband run prints the run’s ID, which differs on your machine, and the reason, then exits with code 3:
Started run ravr1zhbsxstopped: the request has no tickets: write each one as a '- ' bulletNow make a folder for the tickets and start a run with two bullets:
mkdir -p /tmp/py-factory-ticketsuv run codeband run py-factory/intake --tickets /tmp/py-factory-tickets \ --input '{"title": "Release 1.2", "body": "- Fix the crash on start\n- Add a dark mode"}'--tickets names the folder for the ticket files. Without it, they go into the folder of the run’s patch file, here py-factory, where git would list them as files it doesn’t track. The plan has two tickets, so the function returns them, and the run finishes with no code change and exit code 0. codeband writes each new ticket into a folder named after the run and prints its title and path:
Started run mr85t4grvpno code changenew ticket: Fix the crash on start: /tmp/py-factory-tickets/mr85t4grvp/01-fix-the-crash-on-start.mdnew ticket: Add a dark mode: /tmp/py-factory-tickets/mr85t4grvp/02-add-a-dark-mode.mdShow the second ticket, with the run ID that codeband run printed in place of RUN_ID:
cat /tmp/py-factory-tickets/RUN_ID/02-add-a-dark-mode.mdThe file has the tags in YAML front matter, the title as its first heading, the body and a line that names the run:
---tags: ["feature","small"]---
# Add a dark mode
Part of the request Release 1.2.
From codeband run mr85t4grvp.In the terminal of codeband dev, each run shows one Invoked pipeline line from the code server. The function asked for no step, so one invocation ran it to its end:
Nov 25 20:47:05.644 INF Invoked pipeline comp=codeserver pipeline=intake end=finishedNov 25 20:47:05.666 INF Started run comp=daemon run=mr85t4grvp pipeline=py-factory/intake requested_by=adaNov 25 20:47:05.690 INF Run finished comp=daemon run=mr85t4grvp status=finished reason=""requested_by is your user name.
Function steps
Section titled “Function steps”A function step is a function of your pipeline code whose value the engine, the part of the daemon that executes runs, records in the run journal. The first invocation that reaches a function step runs it in the code server, and every later invocation of the run returns the recorded value without running the function again. So a function step runs once per run, while plain pipeline code runs on every invocation.
Put two kinds of code in a function step: a side effect, such as writing a file or calling a webhook, which would otherwise happen once per invocation, and a value that differs between invocations, such as the clock, which would otherwise break the rule that each invocation asks for the same steps. A function step runs at least once: when the code server stops after the side effect and before the engine records the value, the next invocation runs the function step again. So write each side effect in a way that is safe to repeat.
Write the function steps
Section titled “Write the function steps”Save this file as py_factory/function_steps.py:
"""Function steps: the side effect of the intake pipeline and the values that differ between runs.
The engine records the value of each function step, so a later invocation returns the recorded value and does not run the function stepagain."""
import jsonimport osimport urllib.requestfrom datetime import UTC, datetime, timedeltafrom typing import Final
import codeband as cb
WEBHOOK_ENV: Final = "PY_FACTORY_WEBHOOK""""Environment variable of the URL that post_summary sends to. Empty means post_summary sends nothing."""
@cb.function_stepdef received_at() -> datetime: """Return the time the pipeline took the request. The clock differs between invocations, so it is a function step.""" return datetime.now(UTC)
@cb.function_step(timeout=timedelta(seconds=10))def post_summary(text: str) -> bool: """Send the text as JSON to the webhook. Return False when no webhook is set.""" url = os.environ.get(WEBHOOK_ENV, "") if not url: return False
body = json.dumps({"text": text}).encode() request = urllib.request.Request(url, data=body, headers={"Content-Type": "application/json"}, method="POST") with urllib.request.urlopen(request, timeout=5) as response: response.read()
return True@cb.function_step makes a function a function step, named after the function. Arguments and return values are JSON values or models, so the engine can record them.
| Function step | What it does | Why it is a function step |
|---|---|---|
received_at |
Returns the current time | The clock differs between invocations. As a function step, every invocation of the run sees the same time |
post_summary |
Sends a summary to the webhook in PY_FACTORY_WEBHOOK, and returns False when the variable is empty |
A call to another service is a side effect. Its timeout of 10 seconds limits how long the function step may take, where the default is 5 minutes. Handle a function step that fails or times out shows what happens after it |
Function steps run in the code server, so they read its environment variables.
Call the function steps from the pipeline
Section titled “Call the function steps from the pipeline”Replace py_factory/pipeline.py with this version. The highlighted lines are new:
"""The pipelines of this factory. pyproject.toml lists them under [tool.codeband]."""
import contextlibfrom datetime import datetime
import codeband as cb
from py_factory.function_steps import post_summary, received_atfrom py_factory.models import Plan, Ticketfrom py_factory.planning import plan_tickets
@cb.pipelinedef intake(title: str, body: str, max_tickets: int = 5) -> cb.RunResult | None: """Plan one ticket per Markdown bullet of the body of a request for work, as a person writes it.
The run stops when the body has no bullet or more than max_tickets. It ends with the tickets in its run result and no code change, and the daemon delivers the tickets. """ plan = plan_tickets(title, body) if not plan.tickets: raise cb.Stop("the request has no tickets: write each one as a '- ' bullet")
if len(plan.tickets) > max_tickets: raise cb.Stop(f"the request has {len(plan.tickets)} tickets, more than {max_tickets}: split it")
received = received_at()
# The run still ends with its tickets when the summary fails to send. The run journal keeps the function step's # error. with contextlib.suppress(cb.FunctionStepFailedError): post_summary(_summary(plan, received))
return cb.RunResult(tickets=[_new_ticket(plan, t) for t in plan.tickets])
def _new_ticket(plan: Plan, ticket: Ticket) -> cb.NewTicket: return cb.NewTicket(title=ticket.title, body=f"Part of the request {plan.title}.", tags=[ticket.kind, ticket.size])
def _summary(plan: Plan, received: datetime) -> str: lines = [f"{plan.title}: {len(plan.tickets)} tickets at {received:%Y-%m-%d %H:%M:%S} UTC"] lines += [f"- {t.kind}, {t.size}: {t.title}" for t in plan.tickets]
return "\n".join(lines)intake now reads the time and sends a summary of the tickets before it returns them. A function step that raises, or runs longer than its timeout, raises cb.FunctionStepFailedError in pipeline code. contextlib.suppress catches it for post_summary, so a summary that fails to send doesn’t fail the run, and the run still ends with its tickets. _summary is plain pipeline code again: it builds the text from the plan and the recorded time.
Commit the change:
git add -Agit commit -m "Send a summary of the tickets in a function step"Run it with function steps
Section titled “Run it with function steps”codeband dev loaded the factory again when you saved the file. It started the code server again, and the code server logged Loaded pipelines comp=codeserver pipelines=[intake] once more. This is a factory reload, so codeband dev keeps running while you change pipeline code.
In the first terminal, start the same run as before:
uv run codeband run py-factory/intake --tickets /tmp/py-factory-tickets \ --input '{"title": "Release 1.2", "body": "- Fix the crash on start\n- Add a dark mode"}'codeband run now prints a line for each function step, named by its step ID: the function step’s name, # and a counter that counts the calls of that name in the run from 0. Then it prints no code change and the file of each new ticket, in a new folder named after this run, and exits with code 0:
Started run 9m6bzvwbpw✓ received_at#0 function step✓ post_summary#0 function stepno code changenew ticket: Fix the crash on start: /tmp/py-factory-tickets/9m6bzvwbpw/01-fix-the-crash-on-start.mdnew ticket: Add a dark mode: /tmp/py-factory-tickets/9m6bzvwbpw/02-add-a-dark-mode.mdSee how codeband replayed the run
Section titled “See how codeband replayed the run”The terminal of codeband dev shows the run from both processes. The code server logs three Invoked pipeline lines for this one run, and the daemon logs each step between them. The code server does not know the name of its factory, so its lines say pipeline=intake:
Nov 25 20:47:27.009 INF Invoked pipeline comp=codeserver pipeline=intake end=function_step_finishedNov 25 20:47:27.070 INF Started run comp=daemon run=9m6bzvwbpw pipeline=py-factory/intake requested_by=adaNov 25 20:47:27.070 INF Step started comp=daemon run=9m6bzvwbpw step=received_at#0Nov 25 20:47:27.070 INF Step finished comp=daemon run=9m6bzvwbpw step=received_at#0Nov 25 20:47:27.087 INF Invoked pipeline comp=codeserver pipeline=intake end=function_step_finishedNov 25 20:47:27.088 INF Step started comp=daemon run=9m6bzvwbpw step=post_summary#0Nov 25 20:47:27.088 INF Step finished comp=daemon run=9m6bzvwbpw step=post_summary#0Nov 25 20:47:27.104 INF Invoked pipeline comp=codeserver pipeline=intake end=finishedNov 25 20:47:27.135 INF Run finished comp=daemon run=9m6bzvwbpw status=finished reason=""Each invocation ran intake from the start. A function step with a recorded value returned that value. The first function step without a record ran and ended the invocation, and the engine recorded its value before the next invocation:
| Invocation | plan_tickets |
received_at#0 |
post_summary#0 |
Ends with |
|---|---|---|---|---|
| 1 | Runs | Runs | function_step_finished |
|
| 2 | Runs | Recorded value | Runs | function_step_finished |
| 3 | Runs | Recorded value | Recorded value | finished: the function returned its run result |
The engine wrote the ticket files after the last invocation, when it recorded the end of the run.
The first invocation comes before the daemon’s Started run line, because the daemon creates the run only after the code server accepts the run input.
The run journal holds the recorded values. The daemon keeps it in the run store in its state folder, ~/.local/state/codeband/store, or $XDG_STATE_HOME/codeband/store when you set XDG_STATE_HOME. Print the value of each function step:
jq -r 'select(.stepFinished) | "\(.stepFinished.stepId) \(.stepFinished.functionStep.value)"' \ ~/.local/state/codeband/store/runs/RUN_ID/journal.jsonlPut the run ID that codeband run printed in place of RUN_ID. The command prints one line per function step:
received_at#0 "2026-11-25T19:47:27.009585Z"post_summary#0 falseThe clock ran once, in the first invocation. The second invocation got its recorded value, 19:47:27.009585, and built the summary from it. post_summary returned false, because PY_FACTORY_WEBHOOK is not set. A third run with the same input writes its tickets again, into a folder of its own: every run records its own values and its own run result.
Outside a run, intake is a plain function, and its function steps run as plain functions. Test a pipeline without a daemon calls it from pytest, without codeband dev.
Optional: Print the preview graph
Section titled “Optional: Print the preview graph”codeband infers the shape of a pipeline from its code before any run, as its preview graph. Print it with codeband graph:
uv run codeband graph py-factory/intakeIt prints one line per node, after its file and line, and indents the nodes inside a branch or a with block:
py_factory/pipeline.py:21 if not plan.ticketspy_factory/pipeline.py:22 stop "the request has no tickets: write each one as a '- ' bullet"py_factory/pipeline.py:24 if len(plan.tickets) > max_ticketspy_factory/pipeline.py:25 stop f'the request has {len(plan.tickets)} tickets, more than {max_tickets}: split it'py_factory/pipeline.py:27 function step received_atpy_factory/pipeline.py:31 with contextlib.suppress(cb.FunctionStepFailedError)py_factory/pipeline.py:32 function step post_summarypy_factory/pipeline.py:34 returnThe web interface draws the same graph. Open the address with the token that codeband dev printed in a browser. The page keeps the token, so http://127.0.0.1:8765/?pipeline=py-factory/intake then shows the graph of intake.
To stop the daemon, the code server and the web interface, press Ctrl-C in the terminal of codeband dev. To remove the tickets, run rm -rf /tmp/py-factory-tickets.
Troubleshooting
Section titled “Troubleshooting”For an error that this page doesn’t cover, see Run problems.
another daemon uses the state folder …
Section titled “another daemon uses the state folder …”A daemon already runs with the same state folder, for example the codeband dev of the Quickstart, and codeband dev exits with code 1. Press Ctrl-C in the terminal of that daemon, then start codeband dev again.
start run: invoke: factory …: the factory does not load: …/pyproject.toml has no list of strings at [tool.codeband] pipelines
Section titled “start run: invoke: factory …: the factory does not load: …/pyproject.toml has no list of strings at [tool.codeband] pipelines”pyproject.toml has no [tool.codeband] table with the pipeline, and codeband run exits with code 1. The code server logs the same text as The factory does not load when it starts. Add the two lines of Write the pipeline. codeband dev loads the factory again when you save pyproject.toml.
start run: run request rejected: the pipeline does not accept the input: …
Section titled “start run: run request rejected: the pipeline does not accept the input: …”The run input misses title or body, or a field has the wrong type. The lines after the message name the field. Copy the command whole: the \ at the end of its first line continues it on the next line.
codeband run prints no code change without a line for each function step
Section titled “codeband run prints no code change without a line for each function step”The code server still runs the first version of intake. Save the file of the pipeline: codeband dev then loads the factory again, and the code server logs Loaded pipelines once more. If you started codeband dev with --reload=false, stop it with Ctrl-C and start it again.
start run: run request rejected: the folder /tmp/py-factory-tickets for ticket files does not exist
Section titled “start run: run request rejected: the folder /tmp/py-factory-tickets for ticket files does not exist”The folder that --tickets names is missing, for example after a restart of your machine that cleared /tmp, and codeband run exits with code 1. codeband makes the folder of the run in it, but not the folder itself. Run mkdir -p /tmp/py-factory-tickets and start the run again.
The repository has uncommitted changes. The run does not see them.
Section titled “The repository has uncommitted changes. The run does not see them.”codeband run logs this warning when the target repository has files that git doesn’t track or changes that you didn’t commit, such as Python’s __pycache__ folders without the .gitignore of Create the factory. The run starts anyway at the HEAD commit. Add the missing .gitignore line or commit your changes.