Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec'], chrootPath='/var/lib/mock/f40-build-2315116-57862/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Wrote: /builddir/build/SRPMS/python-git-revise-0.7.0-8.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec'], chrootPath='/var/lib/mock/f40-build-2315116-57862/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.S8irVp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf git-revise-0.7.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/git-revise-0.7.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd git-revise-0.7.0 + rm -rf /builddir/build/BUILD/git-revise-0.7.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/git-revise-0.7.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nF4Fym + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd git-revise-0.7.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build creating build/lib creating build/lib/gitrevise copying gitrevise/__main__.py -> build/lib/gitrevise copying gitrevise/merge.py -> build/lib/gitrevise copying gitrevise/tui.py -> build/lib/gitrevise copying gitrevise/__init__.py -> build/lib/gitrevise copying gitrevise/todo.py -> build/lib/gitrevise copying gitrevise/utils.py -> build/lib/gitrevise copying gitrevise/odb.py -> build/lib/gitrevise + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.mR3fp0 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch ++ dirname /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd git-revise-0.7.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch --prefix /usr running install /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12 creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/__main__.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/merge.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/tui.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/__init__.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/todo.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/utils.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/odb.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise/__main__.py to __main__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise/merge.py to merge.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise/tui.py to tui.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise/todo.py to todo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise/utils.py to utils.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/gitrevise/odb.py to odb.cpython-312.pyc writing byte-compilation script '/tmp/tmpacvw2867.py' /usr/bin/python3 /tmp/tmpacvw2867.py removing /tmp/tmpacvw2867.py running install_data creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/share creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/share/man creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/share/man/man1 copying git-revise.1 -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/share/man/man1 running install_egg_info running egg_info creating git_revise.egg-info writing git_revise.egg-info/PKG-INFO writing dependency_links to git_revise.egg-info/dependency_links.txt writing entry points to git_revise.egg-info/entry_points.txt writing top-level names to git_revise.egg-info/top_level.txt writing manifest file 'git_revise.egg-info/SOURCES.txt' reading manifest file 'git_revise.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'git_revise.egg-info/SOURCES.txt' Copying git_revise.egg-info to /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages/git_revise-0.7.0-py3.12.egg-info running install_scripts Installing git-revise script to /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/bin + rm -rfv /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.7.0-8.fc40 --unique-debug-suffix -0.7.0-8.fc40.noarch --unique-debug-src-base python-git-revise-0.7.0-8.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/git-revise-0.7.0 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.0WYLKg + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd git-revise-0.7.0 + PYTHONPATH=/builddir/build/BUILDROOT/python-git-revise-0.7.0-8.fc40.noarch/usr/lib/python3.12/site-packages + /usr/bin/python3 -m pytest ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 rootdir: /builddir/build/BUILD/git-revise-0.7.0 collected 38 items tests/test_cut.py FF [ 5%] tests/test_fixup.py ....FFF....... [ 42%] tests/test_gpgsign.py . [ 44%] tests/test_interactive.py FFFFFFFFFF [ 71%] tests/test_rerere.py FFFF. [ 84%] tests/test_reword.py FFF... [100%] =================================== FAILURES =================================== ___________________________________ test_cut ___________________________________ repo = def test_cut(repo): bash( """ echo "Hello, World" >> file1 git add file1 git commit -m "commit 1" echo "Append f1" >> file1 echo "Make f2" >> file2 git add file1 file2 git commit -m "commit 2" echo "Append f3" >> file2 git add file2 git commit -m "commit 3" """ ) prev = repo.get_commit("HEAD") prev_u = prev.parent() prev_uu = prev_u.parent() with editor_main(["--cut", "HEAD~"], input=b"y\nn\n") as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_cut.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 7e4c160] commit 1 Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master ffbe77d] commit 2 Author: Bash Author 2 files changed, 2 insertions(+) create mode 100644 file2 [master 59f98d3] commit 3 Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '--cut', 'HEAD~'] {'input': b'y\nn\n', 'check': True} diff --git b/file1 a/file1 index 3fa0d4b..ada44cf 100644 --- b/file1 +++ a/file1 @@ -1 +1,2 @@ Hello, World +Append f1 (1/1) Apply this hunk to index [y,n,q,a,d,e,?]? diff --git b/file2 a/file2 new file mode 100644 index 0000000..93350fe --- /dev/null +++ a/file2 @@ -0,0 +1 @@ +Make f2 (1/1) Apply addition to index [y,n,q,a,d,e,?]? Cutting commit ffbe77d7e082 Select changes to be included in part [1]: editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:32813/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:32813/', 'COMMIT_EDITMSG']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ________________________________ test_cut_root _________________________________ repo = def test_cut_root(repo): bash( """ echo "Hello, World" >> file1 echo "Make f2" >> file2 git add file1 file2 git commit -m "root commit" """ ) prev = repo.get_commit("HEAD") assert prev.is_root assert len(prev.parent_oids) == 0 with editor_main(["--cut", "HEAD"], input=b"y\nn\n") as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_cut.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 0f76953] root commit Author: Bash Author 2 files changed, 2 insertions(+) create mode 100644 file1 create mode 100644 file2 Running ['/usr/bin/python3', '-m', 'gitrevise', '--cut', 'HEAD'] {'input': b'y\nn\n', 'check': True} diff --git b/file1 a/file1 new file mode 100644 index 0000000..3fa0d4b --- /dev/null +++ a/file1 @@ -0,0 +1 @@ +Hello, World (1/1) Apply addition to index [y,n,q,a,d,e,?]? diff --git b/file2 a/file2 new file mode 100644 index 0000000..93350fe --- /dev/null +++ a/file2 @@ -0,0 +1 @@ +Make f2 (1/1) Apply addition to index [y,n,q,a,d,e,?]? Cutting commit 0f769538d035 Select changes to be included in part [1]: editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:44107/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:44107/', 'COMMIT_EDITMSG']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ____________________________ test_fixup_head_editor ____________________________ basic_repo = def test_fixup_head_editor(basic_repo): old = basic_repo.get_commit("HEAD") newmsg = "fixup_head_editor test\n\nanother line\n" with fixup_helper_editor(basic_repo, ["-e"], "HEAD", newmsg) as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_fixup.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ---------------------------- Captured stdout setup ----------------------------- [master (root-commit) 593ae2e] commit1 Author: Bash Author 1 file changed, 2 insertions(+) create mode 100644 file1 [master efccd1e] commit2 Author: Bash Author 1 file changed, 1 insertion(+) ----------------------------- Captured stdout call ----------------------------- Running ['/usr/bin/python3', '-m', 'gitrevise', '-e', 'HEAD'] {'check': True} Applying staged changes to 'HEAD' editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:34605/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:34605/', 'COMMIT_EDITMSG']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out __________________________ test_fixup_nonhead_editor ___________________________ basic_repo = def test_fixup_nonhead_editor(basic_repo): old = basic_repo.get_commit("HEAD~") newmsg = "fixup_nonhead_editor test\n\nanother line\n" with fixup_helper_editor(basic_repo, ["-e"], "HEAD~", newmsg) as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_fixup.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ---------------------------- Captured stdout setup ----------------------------- [master (root-commit) 593ae2e] commit1 Author: Bash Author 1 file changed, 2 insertions(+) create mode 100644 file1 [master efccd1e] commit2 Author: Bash Author 1 file changed, 1 insertion(+) ----------------------------- Captured stdout call ----------------------------- Running ['/usr/bin/python3', '-m', 'gitrevise', '-e', 'HEAD~'] {'check': True} Applying staged changes to 'HEAD~' editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:45233/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:45233/', 'COMMIT_EDITMSG']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out _________________________ test_fixup_nonhead_conflict __________________________ basic_repo = def test_fixup_nonhead_conflict(basic_repo): bash('echo "conflict" > file1') bash("git add file1") old = basic_repo.get_commit("HEAD~") assert old.persisted with editor_main(["HEAD~"], input=b"y\ny\ny\ny\n") as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_fixup.py:122: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ---------------------------- Captured stdout setup ----------------------------- [master (root-commit) 593ae2e] commit1 Author: Bash Author 1 file changed, 2 insertions(+) create mode 100644 file1 [master efccd1e] commit2 Author: Bash Author 1 file changed, 1 insertion(+) ----------------------------- Captured stdout call ----------------------------- Running ['/usr/bin/python3', '-m', 'gitrevise', 'HEAD~'] {'input': b'y\ny\ny\ny\n', 'check': True} Applying staged changes to 'HEAD~' Conflict applying '' Path: '/file1' Edit conflicted file? (Y/n) editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:32865/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:32865/', 'file1']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ___________________________ test_interactive_reorder ___________________________ repo = def test_interactive_reorder(repo): > interactive_reorder_helper(repo, cwd=repo.workdir) /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:29: in interactive_reorder_helper with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~~'] {'cwd': PosixPath('/tmp/pytest-of-mockbuild/pytest-0/workdir17'), 'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:33471/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:33471/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out _______________________ test_interactive_reorder_subdir ________________________ repo = def test_interactive_reorder_subdir(repo): bash("mkdir subdir") > interactive_reorder_helper(repo, cwd=repo.workdir / "subdir") /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:29: in interactive_reorder_helper with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~~'] {'cwd': PosixPath('/tmp/pytest-of-mockbuild/pytest-0/workdir18/subdir'), 'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:34895/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:34895/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ___________________________ test_interactive_on_root ___________________________ repo = def test_interactive_on_root(repo): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" echo "second file" > file2 git add file2 git commit -m "commit two" echo "new line!" >> file1 git add file1 git commit -m "commit three" """ ) orig_commit3 = prev = repo.get_commit("HEAD") orig_commit2 = prev_u = prev.parent() orig_commit1 = prev_u.parent() index_tree = repo.index.tree() with editor_main(["-i", "--root"]) as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', '--root'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43247/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43247/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ____________________________ test_interactive_fixup ____________________________ repo = def test_interactive_fixup(repo): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" echo "second file" > file2 git add file2 git commit -m "commit two" echo "new line!" >> file1 git add file1 git commit -m "commit three" echo "extra" >> file3 git add file3 """ ) prev = repo.get_commit("HEAD") prev_u = prev.parent() prev_uu = prev_u.parent() index_tree = repo.index.tree() with editor_main(["-i", "HEAD~~"]) as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~~'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:32861/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:32861/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ___________________ test_autosquash_config[None-None-False] ____________________ repo = rebase_config = None, revise_config = None, expected = False @pytest.mark.parametrize( "rebase_config,revise_config,expected", [ (None, None, False), ("1", "0", False), ("0", "1", True), ("1", None, True), (None, "1", True), ], ) def test_autosquash_config(repo, rebase_config, revise_config, expected): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" echo "second file" > file2 git add file2 git commit -m "commit two" echo "new line!" >> file1 git add file1 git commit -m "commit three" echo "extra line" >> file2 git add file2 git commit --fixup=HEAD~ """ ) if rebase_config is not None: bash(f"git config rebase.autoSquash '{rebase_config}'") if revise_config is not None: bash(f"git config revise.autoSquash '{revise_config}'") head = repo.get_commit("HEAD") headu = head.parent() headuu = headu.parent() disabled = f"""\ pick {headuu.oid.short()} commit two pick {headu.oid.short()} commit three pick {head.oid.short()} fixup! commit two """ enabled = f"""\ pick {headuu.oid.short()} commit two fixup {head.oid.short()} fixup! commit two pick {headu.oid.short()} commit three """ def subtest(args, expected_todos): with editor_main(args + ["-i", "HEAD~3"]) as ed: with ed.next_file() as f: assert f.startswith_dedent(expected_todos) f.replace_dedent(disabled) # don't mutate state assert repo.get_commit("HEAD") == head > subtest([], enabled if expected else disabled) /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:258: in subtest with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) [master f42cd51] fixup! commit two Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~3'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43483/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43483/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ______________________ test_autosquash_config[1-0-False] _______________________ repo = rebase_config = '1', revise_config = '0', expected = False @pytest.mark.parametrize( "rebase_config,revise_config,expected", [ (None, None, False), ("1", "0", False), ("0", "1", True), ("1", None, True), (None, "1", True), ], ) def test_autosquash_config(repo, rebase_config, revise_config, expected): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" echo "second file" > file2 git add file2 git commit -m "commit two" echo "new line!" >> file1 git add file1 git commit -m "commit three" echo "extra line" >> file2 git add file2 git commit --fixup=HEAD~ """ ) if rebase_config is not None: bash(f"git config rebase.autoSquash '{rebase_config}'") if revise_config is not None: bash(f"git config revise.autoSquash '{revise_config}'") head = repo.get_commit("HEAD") headu = head.parent() headuu = headu.parent() disabled = f"""\ pick {headuu.oid.short()} commit two pick {headu.oid.short()} commit three pick {head.oid.short()} fixup! commit two """ enabled = f"""\ pick {headuu.oid.short()} commit two fixup {head.oid.short()} fixup! commit two pick {headu.oid.short()} commit three """ def subtest(args, expected_todos): with editor_main(args + ["-i", "HEAD~3"]) as ed: with ed.next_file() as f: assert f.startswith_dedent(expected_todos) f.replace_dedent(disabled) # don't mutate state assert repo.get_commit("HEAD") == head > subtest([], enabled if expected else disabled) /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:258: in subtest with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) [master f42cd51] fixup! commit two Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~3'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:38337/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:38337/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out _______________________ test_autosquash_config[0-1-True] _______________________ repo = rebase_config = '0', revise_config = '1', expected = True @pytest.mark.parametrize( "rebase_config,revise_config,expected", [ (None, None, False), ("1", "0", False), ("0", "1", True), ("1", None, True), (None, "1", True), ], ) def test_autosquash_config(repo, rebase_config, revise_config, expected): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" echo "second file" > file2 git add file2 git commit -m "commit two" echo "new line!" >> file1 git add file1 git commit -m "commit three" echo "extra line" >> file2 git add file2 git commit --fixup=HEAD~ """ ) if rebase_config is not None: bash(f"git config rebase.autoSquash '{rebase_config}'") if revise_config is not None: bash(f"git config revise.autoSquash '{revise_config}'") head = repo.get_commit("HEAD") headu = head.parent() headuu = headu.parent() disabled = f"""\ pick {headuu.oid.short()} commit two pick {headu.oid.short()} commit three pick {head.oid.short()} fixup! commit two """ enabled = f"""\ pick {headuu.oid.short()} commit two fixup {head.oid.short()} fixup! commit two pick {headu.oid.short()} commit three """ def subtest(args, expected_todos): with editor_main(args + ["-i", "HEAD~3"]) as ed: with ed.next_file() as f: assert f.startswith_dedent(expected_todos) f.replace_dedent(disabled) # don't mutate state assert repo.get_commit("HEAD") == head > subtest([], enabled if expected else disabled) /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:258: in subtest with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) [master f42cd51] fixup! commit two Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~3'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:44133/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:44133/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out _____________________ test_autosquash_config[1-None-True] ______________________ repo = rebase_config = '1', revise_config = None, expected = True @pytest.mark.parametrize( "rebase_config,revise_config,expected", [ (None, None, False), ("1", "0", False), ("0", "1", True), ("1", None, True), (None, "1", True), ], ) def test_autosquash_config(repo, rebase_config, revise_config, expected): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" echo "second file" > file2 git add file2 git commit -m "commit two" echo "new line!" >> file1 git add file1 git commit -m "commit three" echo "extra line" >> file2 git add file2 git commit --fixup=HEAD~ """ ) if rebase_config is not None: bash(f"git config rebase.autoSquash '{rebase_config}'") if revise_config is not None: bash(f"git config revise.autoSquash '{revise_config}'") head = repo.get_commit("HEAD") headu = head.parent() headuu = headu.parent() disabled = f"""\ pick {headuu.oid.short()} commit two pick {headu.oid.short()} commit three pick {head.oid.short()} fixup! commit two """ enabled = f"""\ pick {headuu.oid.short()} commit two fixup {head.oid.short()} fixup! commit two pick {headu.oid.short()} commit three """ def subtest(args, expected_todos): with editor_main(args + ["-i", "HEAD~3"]) as ed: with ed.next_file() as f: assert f.startswith_dedent(expected_todos) f.replace_dedent(disabled) # don't mutate state assert repo.get_commit("HEAD") == head > subtest([], enabled if expected else disabled) /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:258: in subtest with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) [master f42cd51] fixup! commit two Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~3'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43269/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43269/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out _____________________ test_autosquash_config[None-1-True] ______________________ repo = rebase_config = None, revise_config = '1', expected = True @pytest.mark.parametrize( "rebase_config,revise_config,expected", [ (None, None, False), ("1", "0", False), ("0", "1", True), ("1", None, True), (None, "1", True), ], ) def test_autosquash_config(repo, rebase_config, revise_config, expected): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" echo "second file" > file2 git add file2 git commit -m "commit two" echo "new line!" >> file1 git add file1 git commit -m "commit three" echo "extra line" >> file2 git add file2 git commit --fixup=HEAD~ """ ) if rebase_config is not None: bash(f"git config rebase.autoSquash '{rebase_config}'") if revise_config is not None: bash(f"git config revise.autoSquash '{revise_config}'") head = repo.get_commit("HEAD") headu = head.parent() headuu = headu.parent() disabled = f"""\ pick {headuu.oid.short()} commit two pick {headu.oid.short()} commit three pick {head.oid.short()} fixup! commit two """ enabled = f"""\ pick {headuu.oid.short()} commit two fixup {head.oid.short()} fixup! commit two pick {headu.oid.short()} commit three """ def subtest(args, expected_todos): with editor_main(args + ["-i", "HEAD~3"]) as ed: with ed.next_file() as f: assert f.startswith_dedent(expected_todos) f.replace_dedent(disabled) # don't mutate state assert repo.get_commit("HEAD") == head > subtest([], enabled if expected else disabled) /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:258: in subtest with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) [master f42cd51] fixup! commit two Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~3'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:33639/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:33639/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ___________________________ test_interactive_reword ____________________________ repo = def test_interactive_reword(repo): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" -m "extended1" echo "second file" > file2 git add file2 git commit -m "commit two" -m "extended2" echo "new line!" >> file1 git add file1 git commit -m "commit three" -m "extended3" """ ) prev = repo.get_commit("HEAD") prev_u = prev.parent() prev_uu = prev_u.parent() with editor_main(["-ie", "HEAD~~"]) as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 8ac616b] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master 28ea97a] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0ecbace] commit three Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-ie', 'HEAD~~'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43347/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43347/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ________________________ test_reuse_recorded_resolution ________________________ repo = def test_reuse_recorded_resolution(repo): history_with_two_conflicting_commits(autoUpdate=True) with editor_main(("-i", "HEAD~~"), input=b"y\ny\ny\ny\n") as ed: > flip_last_two_commits(repo, ed) /builddir/build/BUILD/git-revise-0.7.0/tests/test_rerere.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_rerere.py:351: in flip_last_two_commits with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) d72132e] initial commit Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file [master 698fe81] commit one Author: Bash Author 1 file changed, 1 insertion(+), 1 deletion(-) [master b1efb1b] commit two Author: Bash Author 1 file changed, 1 insertion(+), 1 deletion(-) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~~'] {'input': b'y\ny\ny\ny\n', 'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:37719/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:37719/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out __________________________ test_rerere_no_autoupdate ___________________________ repo = def test_rerere_no_autoupdate(repo): history_with_two_conflicting_commits(autoUpdate=False) with editor_main(("-i", "HEAD~~"), input=b"y\ny\ny\ny\n") as ed: > flip_last_two_commits(repo, ed) /builddir/build/BUILD/git-revise-0.7.0/tests/test_rerere.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_rerere.py:351: in flip_last_two_commits with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) d72132e] initial commit Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file [master 698fe81] commit one Author: Bash Author 1 file changed, 1 insertion(+), 1 deletion(-) [master b1efb1b] commit two Author: Bash Author 1 file changed, 1 insertion(+), 1 deletion(-) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~~'] {'input': b'y\ny\ny\ny\n', 'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:39373/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:39373/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ______________________________ test_rerere_merge _______________________________ repo = def test_rerere_merge(repo): (repo.workdir / "file").write_bytes(10 * b"x\n") bash( """ git config rerere.enabled true git config rerere.autoUpdate true git add file; git commit -m 'initial commit' """ ) changeline("file", 0, b"original1\n") bash("git commit -am 'commit 1'") changeline("file", 0, b"original2\n") bash("git commit -am 'commit 2'") # Record a resolution for changing the order of two commits. with editor_main(("-i", "HEAD~~"), input=b"y\ny\ny\ny\n") as ed: > flip_last_two_commits(repo, ed) /builddir/build/BUILD/git-revise-0.7.0/tests/test_rerere.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_rerere.py:351: in flip_last_two_commits with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 78ab633] initial commit Author: Bash Author 1 file changed, 10 insertions(+) create mode 100644 file [master bc4398a] commit 1 Author: Bash Author 1 file changed, 1 insertion(+), 1 deletion(-) [master 8ede3c3] commit 2 Author: Bash Author 1 file changed, 1 insertion(+), 1 deletion(-) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~~'] {'input': b'y\ny\ny\ny\n', 'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:37973/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:37973/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ____________________ test_replay_resolution_recorded_by_git ____________________ repo = def test_replay_resolution_recorded_by_git(repo): history_with_two_conflicting_commits(autoUpdate=True) # Switch the order of the last two commits, recording the conflict # resolution with Git itself. bash( r""" one=$(git rev-parse HEAD~) two=$(git rev-parse HEAD) git reset --hard HEAD~~ git cherry-pick "$two" 2>&1 | grep 'could not apply' echo resolved two > file; git add file; GIT_EDITOR=: git cherry-pick --continue git cherry-pick "$one" 2>&1 | grep 'could not apply' echo resolved one > file; git add file; GIT_EDITOR=: git cherry-pick --continue --no-edit git reset --hard "$two" """ ) # Now let's try to do the same thing with git-revise, reusing the recorded resolution. with editor_main(("-i", "HEAD~~")) as ed: > flip_last_two_commits(repo, ed) /builddir/build/BUILD/git-revise-0.7.0/tests/test_rerere.py:172: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_rerere.py:351: in flip_last_two_commits with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) d72132e] initial commit Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file [master 698fe81] commit one Author: Bash Author 1 file changed, 1 insertion(+), 1 deletion(-) [master b1efb1b] commit two Author: Bash Author 1 file changed, 1 insertion(+), 1 deletion(-) HEAD is now at d72132e initial commit error: could not apply b1efb1b... commit two [master 4a30f41] commit two Author: Bash Author Date: Thu Jul 13 21:40:00 2017 -0500 1 file changed, 1 insertion(+), 1 deletion(-) error: could not apply 698fe81... commit one [master 73083a0] commit one Author: Bash Author Date: Thu Jul 13 21:40:00 2017 -0500 1 file changed, 1 insertion(+), 1 deletion(-) HEAD is now at b1efb1b commit two Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~~'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:41025/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:41025/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Recorded resolution for 'file'. Recorded resolution for 'file'. Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ____________________________ test_reword[True-HEAD] ____________________________ repo = , target = 'HEAD' use_editor = True @pytest.mark.parametrize("target", ["HEAD", "HEAD~", "HEAD~~"]) @pytest.mark.parametrize("use_editor", [True, False]) def test_reword(repo, target, use_editor): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit 1" echo "new line!" >> file1 git add file1 git commit -m "commit 2" echo "yet another line!" >> file1 git add file1 git commit -m "commit 3" """ ) message = textwrap.dedent( """\ reword test another line """ ).encode() old = repo.get_commit(target) assert old.message != message assert old.persisted if use_editor: with editor_main(["--no-index", "-e", target]) as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_reword.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 4cf9097] commit 1 Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master 1697281] commit 2 Author: Bash Author 1 file changed, 1 insertion(+) [master 67cdb39] commit 3 Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '--no-index', '-e', 'HEAD'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43951/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43951/', 'COMMIT_EDITMSG']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ___________________________ test_reword[True-HEAD~] ____________________________ repo = , target = 'HEAD~' use_editor = True @pytest.mark.parametrize("target", ["HEAD", "HEAD~", "HEAD~~"]) @pytest.mark.parametrize("use_editor", [True, False]) def test_reword(repo, target, use_editor): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit 1" echo "new line!" >> file1 git add file1 git commit -m "commit 2" echo "yet another line!" >> file1 git add file1 git commit -m "commit 3" """ ) message = textwrap.dedent( """\ reword test another line """ ).encode() old = repo.get_commit(target) assert old.message != message assert old.persisted if use_editor: with editor_main(["--no-index", "-e", target]) as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_reword.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 4cf9097] commit 1 Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master 1697281] commit 2 Author: Bash Author 1 file changed, 1 insertion(+) [master 67cdb39] commit 3 Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '--no-index', '-e', 'HEAD~'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43589/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:43589/', 'COMMIT_EDITMSG']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out ___________________________ test_reword[True-HEAD~~] ___________________________ repo = , target = 'HEAD~~' use_editor = True @pytest.mark.parametrize("target", ["HEAD", "HEAD~", "HEAD~~"]) @pytest.mark.parametrize("use_editor", [True, False]) def test_reword(repo, target, use_editor): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit 1" echo "new line!" >> file1 git add file1 git commit -m "commit 2" echo "yet another line!" >> file1 git add file1 git commit -m "commit 3" """ ) message = textwrap.dedent( """\ reword test another line """ ).encode() old = repo.get_commit(target) assert old.message != message assert old.persisted if use_editor: with editor_main(["--no-index", "-e", target]) as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_reword.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 4cf9097] commit 1 Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master 1697281] commit 2 Author: Bash Author 1 file changed, 1 insertion(+) [master 67cdb39] commit 3 Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '--no-index', '-e', 'HEAD~~'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:37821/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:37821/', 'COMMIT_EDITMSG']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out =========================== short test summary info ============================ FAILED tests/test_cut.py::test_cut - Exception: timeout while waiting for req... FAILED tests/test_cut.py::test_cut_root - Exception: timeout while waiting fo... FAILED tests/test_fixup.py::test_fixup_head_editor - Exception: timeout while... FAILED tests/test_fixup.py::test_fixup_nonhead_editor - Exception: timeout wh... FAILED tests/test_fixup.py::test_fixup_nonhead_conflict - Exception: timeout ... FAILED tests/test_interactive.py::test_interactive_reorder - Exception: timeo... FAILED tests/test_interactive.py::test_interactive_reorder_subdir - Exception... FAILED tests/test_interactive.py::test_interactive_on_root - Exception: timeo... FAILED tests/test_interactive.py::test_interactive_fixup - Exception: timeout... FAILED tests/test_interactive.py::test_autosquash_config[None-None-False] - E... FAILED tests/test_interactive.py::test_autosquash_config[1-0-False] - Excepti... FAILED tests/test_interactive.py::test_autosquash_config[0-1-True] - Exceptio... FAILED tests/test_interactive.py::test_autosquash_config[1-None-True] - Excep... FAILED tests/test_interactive.py::test_autosquash_config[None-1-True] - Excep... FAILED tests/test_interactive.py::test_interactive_reword - Exception: timeou... FAILED tests/test_rerere.py::test_reuse_recorded_resolution - Exception: time... FAILED tests/test_rerere.py::test_rerere_no_autoupdate - Exception: timeout w... FAILED tests/test_rerere.py::test_rerere_merge - Exception: timeout while wai... FAILED tests/test_rerere.py::test_replay_resolution_recorded_by_git - Excepti... FAILED tests/test_reword.py::test_reword[True-HEAD] - Exception: timeout whil... FAILED tests/test_reword.py::test_reword[True-HEAD~] - Exception: timeout whi... FAILED tests/test_reword.py::test_reword[True-HEAD~~] - Exception: timeout wh... ================== 22 failed, 16 passed in 3533.93s (0:58:53) ================== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.0WYLKg (%check) Bad exit status from /var/tmp/rpm-tmp.0WYLKg (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec