GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add standalone window and pane examples by tony · Pull Request #828 · tmux-python/libtmux

Conversation

@tony

@tony tony commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The existing doctest fragments depend on fixture objects. Add three complete programs that create a window, rename a window without replacing it, and send literal input to a pane reader. Each creates a private socket, checks its advertised result, and explicitly cleans up its server.

Pytest executes the same files twice, checks their exit status and expected output, and verifies that another session and its shell remain alive. The docs show each whole file; source distributions include the programs, and mypy checks them. The programs use APIs already on master and require tmux 3.2a+.

The send-keys example uses ordinary channel acknowledgements, supported by tmux 3.2a's remembered-signal behavior. It asserts the captured response after the reader acknowledges input. It does not claim process completion or use the tmux 3.8 event-wait feature.

This is the initial executable-program slice of #815. Dedicated traversal, change watching, window movement, layouts, explicit argument lists, and run-to-exit examples remain open.

Validation:

  • Focused wrapper passes on tmux 3.2a, 3.3a, 3.4, 3.5, 3.6, 3.7a, 3.7b, 3.8, and the installed 3.8a development build, using Python 3.15.0.
  • Deliberately incorrect expectations in all three programs fail the wrapper. Incorrect stdout also fails it. Removing the reader's readiness signal produces the program's bounded error.
  • Ruff format, Ruff lint, and full-tree mypy pass.
  • Full configured pytest on tmux 3.2a: 1388 passed, 71 skipped, one warning from an existing display-message case; all 1456 prior collected cases retained plus the three examples checks.
  • The documented Sphinx build passes; rendered code matches the three complete source files. The source archive contains the exact programs and wrapper.

The passing focused 3.8 examples do not imply a passing full suite on 3.8: master's independently recorded hook/popup/floating-pane failures are handled by #825.

The first full stable-3.8 branch run is FAIL/incomplete: it reached its 280-second limit during severe unrelated host contention. Its original failure/error markers and cleanup receipt are retained; no complete failure count or baseline-equivalence claim is available from that interrupted run. The focused examples remain separately qualified. After host recovery, a complete run at the same head finished in 106.34 seconds: 18 failed, 1,438 passed, 3 skipped. All failure IDs and messages match unchanged master after checkout-path normalization. The three example cases pass in that complete run; the full-suite gate remains FAIL. Both attempts are retained, with pytest reruns disabled.

Hosted checks at 4f589c4906f623e7aecb4ce4c4bd93f54c5cc582 remain FAIL: tmux 3.2a and 3.3a pass; 3.4, 3.5, 3.6, 3.7a and 3.7b fail. Both CodeQL analyses and the aggregate pass; codecov/project fails. The existing cached-binary ABI problem is tracked by #825. The development-tmux job reports success despite failing to start pytest because of that ABI problem; it is not a passing test run. Maintainer review remains pending.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tony
examples(docs): Add runnable window and pane demos
fb7ee1b
why: Existing doctest fragments assume fixture objects and do not
provide complete programs that readers can run independently.

what:
- Add private-server programs for window creation, renaming, and input
- Run the exact files twice in pytest and preserve an unrelated shell
- Show whole programs in the docs and include them in source archives
- Type-check the examples with the existing mypy gate
@tony
tony force-pushed the docs/815-executable-examples branch from 4f589c4 to fb7ee1b Compare November 7, 2026 02:20
tony added 2 commits November 6, 2026 20:36
@tony
py(deps[dev]) Raise Ruff floor to 0.17.3
68bea31
why: Keep development and CI linting on the same Ruff release,
including corrected f-string conversions and safer lint fixes.

what:
- Raise Ruff floors in the development and lint dependency groups
- Lock Ruff 0.17.3 with its published source and wheel hashes

Ruff release notes:
https://github.com/astral-sh/ruff/releases/tag/0.17.2
https://github.com/astral-sh/ruff/releases/tag/0.17.3
@tony
CHANGES(docs): Record the Ruff development floor
b29161c
why: Contributors need the lint-tool requirement alongside other
development environment changes.

what:
- Document the Ruff 0.17.3 minimum for development and lint checks
@codecov

codecov Bot commented Nov 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.37%. Comparing base (03c4c4b) to head (b29161c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #828   +/-   ##
=======================================
  Coverage   52.37%   52.37%           
=======================================
  Files          26       26           
  Lines        3729     3729           
  Branches      747      747           
=======================================
  Hits         1953     1953           
  Misses       1472     1472           
  Partials      304      304           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@tony
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.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.