Skip to content

Run CI on pull requests and let Dependabot keep dependencies current - #8

Merged
kain88-de merged 3 commits into
mainfrom
ci
Nov 27, 2026
Merged

kain88-de merged 3 commits into
mainfrom
ci

Conversation

@kain88-de

Copy link
Copy Markdown
Contributor

Re-lands #5, which was squash-merged into keyring-zbus instead of main. Same content.

main has had no CI so far: the test suite only ever ran on developer machines. This adds a build/test workflow for pull requests and a Dependabot config that groups minor and patch updates weekly.

Running the suite on a clean runner for the first time exposed problems that were already there:

  • Sandbox tests depended on the host's ~/.claude. They passed on developer machines and failed on the runner. The home directory is now a parameter, so tests build their own.
  • An agent exiting before reading its prompt hid its own failure. Writing the prompt hit a broken pipe, which aborted the step and showed "Broken pipe" instead of the agent's output and exit code. Timing-dependent, so the existing test was flaky; a new test makes it deterministic.

kain88-de and others added 3 commits November 24, 2026 21:14
keyring v3's sync-secret-service backend binds the C libdbus, so
building from source failed without libdbus-1-dev headers installed.
keyring v4 reaches the same Secret Service through zbus, which needs no
system libraries, so the CI install step goes away too.

Existing keys stay readable: v4 looks items up by service and username
only, a subset of the attributes v3 wrote. Verified against a v3-style
item in a live Secret Service.
* Let Dependabot keep dependencies current

Dependencies were only bumped by hand, so the lockfile drifted.
Grouping minor and patch bumps into one weekly PR keeps the noise low;
major bumps still arrive as separate PRs since they may need code
changes.

* Build and test pull requests

Only release tags ran CI, so Dependabot PRs (and any other PR) landed
untested.

* Use pure-Rust D-Bus for the keyring (#4)

keyring v3's sync-secret-service backend binds the C libdbus, so
building from source failed without libdbus-1-dev headers installed.
keyring v4 reaches the same Secret Service through zbus, which needs no
system libraries, so the CI install step goes away too.

Existing keys stay readable: v4 looks items up by service and username
only, a subset of the attributes v3 wrote. Verified against a v3-style
item in a live Secret Service.

* Update .github/workflows/ci.yml

Co-authored-by: cellador <9638241+cellador@users.noreply.github.com>

* Fix duplicate jobs key in CI workflow

Accepting the permissions suggestion in the GitHub UI left a second
`jobs:` line behind. GitHub rejects the duplicate key and fails the run
before any job starts.

* Stop sandbox tests depending on the host's ~/.claude

The claude mount tests read the real $HOME, so they passed on developer
machines and failed on the CI runner, which has no ~/.claude. Taking the
home directory as a parameter lets the tests build their own, and also
makes the shell-step test meaningful: it used to pass trivially wherever
~/.claude was missing.

The with/without-session variants are merged because the session never
affected the mounts.

* Report an agent's own failure when it ignores its prompt

An agent that exits before reading stdin, e.g. one crashing at startup,
closes the pipe while otter is still writing the prompt. The write's
broken pipe error aborted the step, so the run showed "Broken pipe"
instead of the agent's output and exit code. Whether that happened
depended on timing, which made execute_writes_partial_output_when_agent_fails
flaky in CI.

The new test sends a prompt larger than the pipe buffer, so the write
always hits the closed pipe instead of only on unlucky scheduling.

---------

Co-authored-by: cellador <9638241+cellador@users.noreply.github.com>
@kain88-de
kain88-de merged commit 48d7704 into main Nov 27, 2026
2 checks passed
@kain88-de
kain88-de deleted the ci branch November 27, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant