惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
Jina AI
Jina AI
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 司徒正美
罗磊的独立博客
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Vercel News
Vercel News
A
About on SuperTechFans
I
InfoQ
D
DataBreaches.Net
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - git-machete
2026-06-17 · via AUR Newest Packages

PawelLipski commented on 2026-05-20 10:44 (UTC)

Hey, a heads-up for an update to 3.41.0 - a new package git_machete/utils was added to packages in setup.py, pls reflect that in setup_packages.patch

PawelLipski commented on 2024-12-11 15:48 (UTC)

And this fix should be available as version v3.31.1 soon. Thanks for reporting, that was a non-trivial find!

jan-one commented on 2024-12-11 15:14 (UTC)

@PawelLipski that did the trick - the test is passing now on the branch. Thanks a lot!

PawelLipski commented on 2024-12-11 15:12 (UTC)

Okay! I think what's special about your setup is that you've got git config core.editor set to nano. I'm now clearing that git config key before the affected tests... pls pull debug/test-edit-aur and run tox -e py -- -k test_edit -rP

jan-one commented on 2024-12-11 14:51 (UTC) (edited on 2024-12-11 14:51 (UTC) by jan-one)

@PawelLipski apologies, I missed the part about checking out that branch. Here's the redacted output:

py: install_deps> pip install -r [path to repo]/tmp/git-machete/requirements/testenv.txt
py: commands[0]> mkdir -p test-results/
py: commands[1]> python -m pytest -p tests.pytest_full_operands --numprocesses=auto --junitxml=test-results/testenv-py.xml -m 'not completion_e2e' -k test_edit_editor -vv
============================================================ test session starts ============================================================
platform linux -- Python 3.12.7, pytest-8.3.4, pluggy-1.5.0 -- [path to repo]/tmp/git-machete/.tox/py/bin/python
cachedir: .tox/py/.pytest_cache
rootdir: [path to repo]/tmp/git-machete
configfile: tox.ini
plugins: clarity-1.0.1, mock-3.14.0, xdist-3.6.1
20 workers [1 item]       
scheduling tests via LoadScheduling

tests/test_edit.py::TestEdit::test_edit_editor 
[gw0] [100%] FAILED tests/test_edit.py::TestEdit::test_edit_editor 

================================================================= FAILURES ==================================================================
_________________________________________________________ TestEdit.test_edit_editor _________________________________________________________
[gw0] linux -- Python 3.12.7 [path to repo]/tmp/git-machete/.tox/py/bin/python

self = <tests.test_edit.TestEdit object at 0x75a47a2d50d0>

    def test_edit_editor(self) -> None:
        self.repo_sandbox.set_git_config_key("advice.macheteEditorSelection", "false")

        with overridden_environment(GIT_MACHETE_EDITOR="  ", GIT_EDITOR="lolxd-this-doesnt-exist", VISUAL="", EDITOR=dummy_editor):
>           assert_success(["edit", "--debug"], "")

[path to repo]/tmp/git-machete/tests/test_edit.py:51: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cmd_and_args = ['edit', '--debug'], expected_result = ''

    def assert_success(cmd_and_args: Iterable[str], expected_result: str) -> None:
        if expected_result.startswith("\n"):
            # removeprefix is only available since Python 3.9
            expected_result = expected_result[1:]
        expected_result = textwrap.dedent(expected_result)
        actual_result = re.sub(" +$", "", textwrap.dedent(launch_command(*cmd_and_args)), flags=re.MULTILINE)
>       assert actual_result == expected_result
E       AssertionError: assert == failed. [pytest-clarity diff shown]
E         
E         LHS vs RHS shown below
E         
E         >>> git -c log.showSignature=false config --list --null
E         <stdout>:
E         user.name
E         [name]user.email
E         [email]user.signingkey
E         [key]gui.editor
E         codediff.tool
E         kdiff3merge.tool
E         kdiff3core.editor
E         nanoinit.defaultbranch
E         mainpush.autosetupremote
E         truecore.repositoryformatversion
E         0core.filemode
E         truecore.bare
E         falsecore.logallrefupdates
E         trueuser.email
E         tester@test.comuser.name
E         Tester Testremote.origin.url
E         /tmp/tmppbo8a79n/remoteremote.origin.fetch
E         +refs/heads/*:refs/remotes/origin/*advice.macheteeditorselection
E         falselog.showsignature
E         false
E         >>> git -c log.showSignature=false rev-parse --git-dir
E         <stdout>:
E         .git
E         
E         __get_editor_with_args(): '$GIT_MACHETE_EDITOR' shlexes into an empty list
E         __get_editor_with_args(): 'lolxd-this-doesnt-exist' executable ('$GIT_EDITOR') not found
E         find_executable(executable=nano): found nano at /usr/bin/nano
E         __get_editor_with_args(): 'nano' executable ('git config core.editor') found
E         >>> nano .git/machete
E         <exit code: 1>
E         
E         

[path to repo]/tmp/git-machete/tests/mockers.py:58: AssertionError
----------------------------------------------------------- Captured stdout call ------------------------------------------------------------

----------------------------------------------------------- Captured stderr call ------------------------------------------------------------
Standard input is not a terminal
---------------------------- generated xml file: [path to repo]/tmp/git-machete/test-results/testenv-py.xml -----------------------------
========================================================== short test summary info ==========================================================
FAILED tests/test_edit.py::TestEdit::test_edit_editor - AssertionError: assert == failed. [pytest-clarity diff shown]

[rest redundant]

PawelLipski commented on 2024-12-11 14:09 (UTC) (edited on 2024-12-11 14:09 (UTC) by PawelLipski)

Hmmm pls make sure you're on PR #1376 (branch debug/test-edit-aur). In particular, the test has been renamed from test_edit_git_config_core_editor to test_edit_editor (I incidentally realized that the name is outdated) - and the output indicates that there's still test_edit_git_config_core_editor :/

jan-one commented on 2024-12-11 14:05 (UTC)

@PawelLipski thanks a lot for your quick response. I ran the command, but the output seems almost identical:

py: commands[0]> mkdir -p test-results/
py: commands[1]> python -m pytest -p tests.pytest_full_operands --numprocesses=auto --junitxml=test-results/testenv-py.xml -m 'not completion_e2e' -k test_edit -vv
============================================================ test session starts ============================================================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- [path to repo]/git-machete/src/git-machete-3.31.0/.tox/py/bin/python
cachedir: .tox/py/.pytest_cache
rootdir: [path to repo]/git-machete/src/git-machete-3.31.0
configfile: tox.ini
plugins: clarity-1.0.1, mock-3.14.0, xdist-3.6.1
20 workers [6 items]      
scheduling tests via LoadScheduling

tests/test_edit.py::TestEdit::test_edit_git_config_core_editor 
tests/test_edit.py::TestEdit::test_edit_git_machete_editor_not_valid_executable 
tests/test_edit.py::TestEdit::test_edit_git_editor 
tests/test_edit.py::TestEdit::test_edit_git_machete_editor_full_path 
tests/test_edit.py::TestEdit::test_edit_git_machete_editor 
tests/test_edit.py::TestEdit::test_edit_no_variant_matches 
[gw0] [ 16%] PASSED tests/test_edit.py::TestEdit::test_edit_git_machete_editor 
[gw2] [ 33%] PASSED tests/test_edit.py::TestEdit::test_edit_git_machete_editor_not_valid_executable 
[gw1] [ 50%] PASSED tests/test_edit.py::TestEdit::test_edit_git_machete_editor_full_path 
[gw5] [ 66%] PASSED tests/test_edit.py::TestEdit::test_edit_no_variant_matches 
[gw3] [ 83%] PASSED tests/test_edit.py::TestEdit::test_edit_git_editor 
[gw4] [100%] FAILED tests/test_edit.py::TestEdit::test_edit_git_config_core_editor 

================================================================= FAILURES ==================================================================
_________________________________________________ TestEdit.test_edit_git_config_core_editor _________________________________________________
[gw4] linux -- Python 3.12.7 [path to repo]/git-machete/src/git-machete-3.31.0/.tox/py/bin/python

self = <tests.test_edit.TestEdit object at 0x72559a36d550>

    def test_edit_git_config_core_editor(self) -> None:
        self.repo_sandbox.set_git_config_key("advice.macheteEditorSelection", "false")

        with overridden_environment(GIT_MACHETE_EDITOR="  ", GIT_EDITOR="lolxd-this-doesnt-exist", VISUAL="", EDITOR=dummy_editor):
            assert_success(["edit"], "")
>       assert self.repo_sandbox.read_file(".git/machete").strip() == "foo"
E       assert == failed. [pytest-clarity diff shown]
E         
E         LHS vs RHS shown below
E         
E         foo
E         

[path to repo]/git-machete/src/git-machete-3.31.0/tests/test_edit.py:52: AssertionError
----------------------------------------------------------- Captured stdout call ------------------------------------------------------------

----------------------------------------------------------- Captured stderr call ------------------------------------------------------------
Standard input is not a terminal
------------------- generated xml file: [path to repo]/git-machete/src/git-machete-3.31.0/test-results/testenv-py.xml -------------------
========================================================== short test summary info ==========================================================
FAILED tests/test_edit.py::TestEdit::test_edit_git_config_core_editor - assert == failed. [pytest-clarity diff shown]

  LHS vs RHS shown below

  foo

======================================================== 1 failed, 5 passed in 1.14s ========================================================
py: exit 1 (1.31 seconds) [path to repo]/git-machete/src/git-machete-3.31.0> python -m pytest -p tests.pytest_full_operands --numprocesses=auto --junitxml=test-results/testenv-py.xml -m 'not completion_e2e' -k test_edit -vv pid=316207
  py: FAIL code 1 (1.34=setup[0.03]+cmd[0.00,1.31] seconds)
  evaluation failed :( (1.38 seconds)

PawelLipski commented on 2024-12-11 13:14 (UTC) (edited on 2024-12-11 13:14 (UTC) by PawelLipski)

Hmmm I struggling to reproduce your issue as it's probably something caused by the executables present on the specific machine... but actually, could you check out https://github.com/VirtusLab/git-machete/pull/1376, install tox (https://tox.wiki/en/4.23.2/installation.html) and then run:

tox -e py -- -k test_edit_editor -vv

This test will fail, but extra debug info should give us more insight into what's failing specifically. Pls check the output for any info that should be redacted (like file paths, or anything global git configs). Thanks!

jan-one commented on 2024-12-11 12:40 (UTC) (edited on 2024-12-11 14:03 (UTC) by jan-one)

I'm getting a failure in test tests/test_edit.py when installing the package. Any idea what might cause this? I tried different versions of git-machete down to 3.17.4, but go the same error each time.

_________________________________________________ TestEdit.test_edit_git_config_core_editor _________________________________________________
[gw11] linux -- Python 3.12.7 /usr/bin/python

self = <tests.test_edit.TestEdit object at 0x73b97b5ecd10>

    def test_edit_git_config_core_editor(self) -> None:
        self.repo_sandbox.set_git_config_key("advice.macheteEditorSelection", "false")

        with overridden_environment(GIT_MACHETE_EDITOR="  ", GIT_EDITOR="lolxd-this-doesnt-exist", VISUAL="", EDITOR=dummy_editor):
            assert_success(["edit"], "")
>       assert self.repo_sandbox.read_file(".git/machete").strip() == "foo"
E       AssertionError: assert '' == 'foo'
E         
E         - foo

[path to repo]/git-machete/src/git-machete-3.31.0/tests/test_edit.py:52: AssertionError

PawelLipski commented on 2023-08-09 19:10 (UTC)

Btw... @chrislea as I probably can't commit here directly (?), could you do the following:

  1. Add fish completion (completion/git-machete.fish), probably under "$pkgdir/usr/share/fish/vendor_completions.d" - see https://git.alpinelinux.org/aports/tree/community/git-machete/APKBUILD

  2. Add man page (docs/man/git-machete.1)... not sure what should be the target directory, but it's probably some pretty standard one :)

Best, Paweł