Skip to content

ci(tests): Exercise tmux 3.7c in place of 3.7b - #746

Merged
tony merged 3 commits into
masterfrom
tmux-3.7c-support
Nov 28, 2026
Merged

tony merged 3 commits into
masterfrom
tmux-3.7c-support

Conversation

@tony

@tony tony commented Aug 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Pin the tmux 3.7c release archive digest in .github/tmux-releases.toml.
  • Replace the 3.7b CI matrix lane with 3.7c in .github/workflows/tests.yml.
  • Generalize 3.7a/3.7b test docstrings in tests/test_pane.py and tests/test_window.py.
  • Record 3.7c CI coverage and Pane.new_pane() zoom behavior in CHANGES.

Design decisions

Why no library change is needed

libtmux.common.get_version() strips point-release letter suffixes, parsing "3.7c" as LooseVersion("3.7") so every has_gte_version("3.7") gate accepts it. The single caller reading the raw suffix, libtmux.common.get_version_str(), feeds the Pane.break_pane() crash workaround and compares against literal "3.7", so 3.7c takes the fixed path.

Upstream changes assessed

Every entry in the 3.7c changelog and 3.7b..3.7c diff was checked against libtmux's surface:

  • Building with jemalloc on macOS (configure.ac, proc.c) affects native builds only.
  • Initializing window scrollbar state (window.c) touches no libtmux API.
  • Checking time periodically in format loops (format.c) preserves identical output.
  • Applying message-style as the message-format default (status.c) leaves typed option fields unchanged.
  • Unzooming before creating a floating pane (layout.c) requires no library guard (see below).
  • Restoring empty window names (spawn.c), treating a lone empty command string as -E (cmd-split-window.c), and clearing self-matches under SORT_NAME in server_destroy_session() (server-fn.c) need no libtmux changes.

Behavior note for new_pane()

On 3.7c, creating a floating pane in a zoomed window unzooms it (window_zoomed_flag goes from 1 to 0), whereas 3.7 through 3.7b left the window zoomed:

3.7:  window_zoomed_flag before=1 after new-pane=1
3.7a: window_zoomed_flag before=1 after new-pane=1
3.7b: window_zoomed_flag before=1 after new-pane=1
3.7c: window_zoomed_flag before=1 after new-pane=0

Upstream unzooms the window before creating the floating pane to avoid a layout crash; neither detached nor pty-attached runs on 3.7, 3.7a, or 3.7b trigger one through Pane.new_pane(), so libtmux needs no version guard.

Why the 3.7a lane stays

3.7a and 3.7b are the only releases where an empty -n name falls back to the command name instead of staying empty. Probed across tmux 3.2a through 3.7c:

3.2a  -n "" -> []
3.3a  -n "" -> []
3.4   -n "" -> []
3.5   -n "" -> []
3.6   -n "" -> []
3.7   -n "" -> rejected, server refuses to start
3.7a  -n "" -> [sleep]
3.7b  -n "" -> [sleep]
3.7c  -n "" -> []

3.7a is the older release still deployed in the wild, so it keeps its CI lane.

Test plan

  • uv run pytest --reruns=0 passes against a locally built tmux 3.7c binary
  • uv run pytest .github/scripts/test_tmux_build.py --reruns=0 validates .github/tmux-releases.toml archive pinning
  • just build-docs builds documentation and resolves MyST roles in CHANGES
  • uv run ruff check ., uv run ruff format --check ., and uv run mypy pass

@codecov

codecov Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.01%. Comparing base (3d9397e) to head (464099b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #746      +/-   ##
==========================================
+ Coverage   56.45%   58.01%   +1.56%     
==========================================
  Files          29       29              
  Lines        4416     4416              
  Branches      895      895              
==========================================
+ Hits         2493     2562      +69     
+ Misses       1607     1543      -64     
+ Partials      316      311       -5     

☔ 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.

tony added a commit that referenced this pull request Oct 2, 2026
why: The matrix should cover tmux 3.2a through the 3.8 release
candidate. #746 swaps 3.7b for 3.7c, which leaves 3.7b untested. The
`git checkout <tag>` build step takes a release-candidate tag the way it
takes a release tag. A cache hit could otherwise run the suite against a
binary other than the one the cell names.

what:
- Restore 3.7b beside 3.7c and add 3.8-rc3 to the matrix
- Fail the pytest step when `tmux -V` lacks the cell's version
  (skipped for `master`)
- Add a CHANGES entry
tony added a commit that referenced this pull request Oct 2, 2026
why: The matrix should cover tmux 3.2a through the 3.8 release
candidate. #746 swaps 3.7b for 3.7c, which leaves 3.7b untested. The
`git checkout <tag>` build step takes a release-candidate tag the way it
takes a release tag. A cache hit could otherwise run the suite against a
binary other than the one the cell names.

what:
- Restore 3.7b beside 3.7c and add 3.8-rc3 to the matrix
- Fail the pytest step when `tmux -V` lacks the cell's version
  (skipped for `master`)
- Add a CHANGES entry
@tony
tony force-pushed the tmux-3.7c-support branch from 2a603e9 to 817f6ad Compare November 7, 2026 03:06
@tony
tony force-pushed the tmux-3.7c-support branch 4 times, most recently from 7c2a393 to 44eb210 Compare November 22, 2026 19:24
@tony tony added the area: tmux-versions tmux version support, feature gates, new tmux tokens label Nov 24, 2026
@tony
tony force-pushed the tmux-3.7c-support branch 2 times, most recently from 9a89022 to 625ee72 Compare November 28, 2026 12:49
@tony tony mentioned this pull request Nov 28, 2026
43 of 62 tasks
@tony tony added this to the 0.70.0 milestone Nov 28, 2026
tony added 3 commits November 28, 2026 07:27
why: tmux 3.7c is the current 3.7 point release. libtmux needs no code
change to accept it -- get_version() strips the point-release suffix so
the existing 3.7 feature gates already match, and the break-pane crash
workaround keys on the raw "3.7" string via get_version_str().

what:
- Swap the 3.7b matrix lane for 3.7c
- Reword two test docstrings that named 3.7b as a tested point release,
  phrasing them so later point releases need no edit

Verified: full suite against a locally built tmux 3.7c, 1455 passed,
1 skipped.
why: Record the tested-version change and the one tmux-side behavior
shift users of new_pane() will notice.

what:
- Add a Development entry noting CI exercises tmux 3.7c and why the
  point release needs no library change
- Note that a floating pane created in a zoomed window unzooms it on
  3.7c, where 3.7 through 3.7b left the window zoomed
why: The current cache builder requires a release checksum for every
stable matrix entry. The branch adds tmux 3.7c to that matrix.

what:
- Record the official 3.7c archive digest in the release manifest

Source: https://github.com/tmux/tmux/releases/tag/3.7c
@tony
tony force-pushed the tmux-3.7c-support branch from 625ee72 to 464099b Compare November 28, 2026 13:27
@tony tony changed the title Test against tmux 3.7c ci(tests): Exercise tmux 3.7c in place of 3.7b Nov 28, 2026
@tony
tony merged commit 8c219e8 into master Nov 28, 2026
15 checks passed
@tony
tony deleted the tmux-3.7c-support branch November 28, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tmux-versions tmux version support, feature gates, new tmux tokens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant