New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmuxp: 1.23.0 -> 1.27.0 #213891
Merged
Merged
tmuxp: 1.23.0 -> 1.27.0 #213891
Conversation
This file contains 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
Result of 4 packages failed to build:
|
otavio
force-pushed
the
topic/new-tmuxp
branch
from
February 1, 2023 22:41
06aacde
to
764ba60
Compare
I fixed one failing test but still fighting with this error: ============================= test session starts ==============================
platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0
rootdir: /build/source, configfile: setup.cfg
plugins: libtmux-0.21.0, rerunfailures-10.3
collected 252 items
tests/test_common.py .................... [ 7%]
tests/test_dataclasses.py .. [ 8%]
tests/test_pane.py ....... [ 11%]
tests/test_pytest_plugin.py . [ 11%]
tests/test_server.py ............F...... [ 19%]
tests/test_session.py ..........................s [ 30%]
tests/test_test.py ..... [ 32%]
tests/test_tmuxobject.py ..... [ 34%]
tests/test_version.py .................. [ 41%]
tests/test_window.py ........................s [ 51%]
tests/legacy_api/test_common.py .................... [ 59%]
tests/legacy_api/test_pane.py ..... [ 61%]
tests/legacy_api/test_server.py .................. [ 68%]
tests/legacy_api/test_session.py ..........................s [ 78%]
tests/legacy_api/test_test.py ..... [ 80%]
tests/legacy_api/test_tmuxobject.py ..... [ 82%]
tests/legacy_api/test_version.py .................. [ 90%]
tests/legacy_api/test_window.py ........................s [100%]
=================================== FAILURES ===================================
________________________ test_new_session_width_height _________________________
server = Server(socket_name=libtmux_testson36ubg)
@pytest.mark.skipif(has_version("3.2"), reason="Wrong width returned with 3.2")
def test_new_session_width_height(server: Server) -> None:
"""Server.new_session creates and returns valid session running with
specified width /height"""
cmd = "/usr/bin/env PS1='$ ' sh"
> mysession = server.new_session(
"test_new_session_width_height",
window_command=cmd,
x=32,
y=32,
)
tests/test_server.py:135:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/42bk3lrxw9yxnrfry13gxiclbiji2vz6-python3.10-libtmux-0.21.0/lib/python3.10/site-packages/libtmux/server.py:494: in new_session
return Session.from_session_id(
/nix/store/42bk3lrxw9yxnrfry13gxiclbiji2vz6-python3.10-libtmux-0.21.0/lib/python3.10/site-packages/libtmux/session.py:85: in from_session_id
session = fetch_obj(
/nix/store/42bk3lrxw9yxnrfry13gxiclbiji2vz6-python3.10-libtmux-0.21.0/lib/python3.10/site-packages/libtmux/neo.py:234: in fetch_obj
obj_formatters_filtered = fetch_objs(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
server = Server(socket_name=libtmux_testson36ubg), list_cmd = 'list-sessions'
list_extra_args = None
def fetch_objs(
server: "Server", list_cmd: "ListCmd", list_extra_args: "ListExtraArgs" = None
) -> OutputsRaw:
formats = list(Obj.__dataclass_fields__.keys())
cmd_args: t.List[t.Union[str, int]] = list()
if server.socket_name:
cmd_args.insert(0, f"-L{server.socket_name}")
if server.socket_path:
cmd_args.insert(0, f"-S{server.socket_path}")
tmux_formats = [f"#{{{f}}}{FORMAT_SEPARATOR}" for f in formats]
tmux_cmds = [
*cmd_args,
list_cmd,
]
if list_extra_args is not None and isinstance(list_extra_args, t.Iterable):
tmux_cmds.extend(list(list_extra_args))
tmux_cmds.append("-F%s" % "".join(tmux_formats))
proc = tmux_cmd(*tmux_cmds) # output
if proc.stderr:
> raise exc.LibTmuxException(proc.stderr)
E libtmux.exc.LibTmuxException: ['no server running on /tmp/tmux-1000/libtmux_testson36ubg']
/nix/store/42bk3lrxw9yxnrfry13gxiclbiji2vz6-python3.10-libtmux-0.21.0/lib/python3.10/site-packages/libtmux/neo.py:210: LibTmuxException |
One option would be to skip test |
otavio
force-pushed
the
topic/new-tmuxp
branch
from
February 2, 2023 00:32
764ba60
to
64b6136
Compare
Result of 4 packages built:
|
otavio
force-pushed
the
topic/new-tmuxp
branch
from
February 2, 2023 18:08
64b6136
to
bfe7cbb
Compare
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
otavio
force-pushed
the
topic/new-tmuxp
branch
from
February 2, 2023 18:59
bfe7cbb
to
c4724df
Compare
superherointj
approved these changes
Feb 2, 2023
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.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes