Repository navigation
Herdr: Test Herdr in CI and Return the Revision From Pane Read - #320
Merged
Merged
Conversation
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runs Herdr's unit and CLI tests in dotfiles CI when anything under
herdr/changes, and makespane readreturn the pane's content revision likeagent readdoes since dotfiles PR 318.Rationale
protocol_schemaran in CI, so PR 318's CLI checks ran once, by hand, before merge.pane readstill returnedrevision: 0, so a caller reading throughpane readcould not use the revision for a guardedagent send-keys.Key Changes
.github/filters.yml: newherdr_testcomponent forherdr/**. Docs and tests underherdr/now select it; the release build (herdr_native) keeps its narrower inputs..github/workflows/ci.yml: newherdr-testjob on ubuntu-24.04 with the native build's Rust 1.96.1, Zig 0.16.0 and Rust cache setup. It runs the--bin herdrunit tests withcargo nextest run --locked --bin herdrand the CLI tests withcargo test --locked --test cli. Manual dispatch selects it; tag pushes do not. TheCI resultgate requires it when selected.herdr/justfile). Undercargo test,platform::remote_bridge_testscloses a pipe and SIGPIPE kills the whole test binary; nextest runs each test in its own process.client::shell::tests::copy::navigator_owns_search_mouse_selection_and_stable_target_focus, which also fails on main (panicked at src/client/shell/tests/copy.rs:1796:10: pane row). It needs its own fix.ci-routing.test.ts: routing cases, decision outputs and the job/selector map coverherdr_test.herdr/src/app/api/panes.rs:pane readreadscontent_seq()before the snapshot, asagent readdoes, and returns it.herdr/src/cli/pane.rs,herdr/src/cli/spec.rs:pane read --jsonprints the full reply with the revision.herdr/CHANGELOG.md: one Unreleased line.Tests
cargo test --locked --bin herdr -- pane_read:test app::api::panes::tests::api_pane_read_returns_the_content_revision ... ok,test result: ok. 7 passed. The new test reads, feeds the pane output, reads again, and checks the revision rose and matchescontent_seq().cargo test --locked --test cli -- agent_commands_work pane_read:test cases::agents::agent_commands_work ... ok,test result: ok. 2 passed.agent_commands_worknow also checkspane read --jsonreports a non-zero revision.bun test ci-routing.test.ts:55 pass, 0 fail.Herdr testsjob: pass in 4m33s. Unit:Summary [ 17.454s] 3540 tests run: 3540 passed, 15 skipped. CLI:test result: ok. 114 passed; 0 failed.bunx github-actionlint .github/workflows/*.yml: no findings.Dogfood
On googlebox, a debug build (
target/debug/herdr) as a separate headless server,herdr --session lab1450 server, withXDG_CONFIG_HOME,XDG_STATE_HOME,XDG_RUNTIME_DIRandHERDR_CONFIG_PATHunder$TMPDIR/l4-1450-herdr. The live Herdr server was not touched.The revision holds while the screen is unchanged and rises when it changes.
herdr --session lab1450 server stopandsession delete lab1450removed the server, and the scratch folder was deleted.