Package Details: git-machete 3.25.0-1

Git Clone URL: https://aur.archlinux.org/git-machete.git (read-only, click to copy)
Package Base: git-machete
Description: Probably the sharpest git repository organizer & rebase/merge workflow automation tool you've ever seen
Upstream URL: https://github.com/VirtusLab/git-machete
Keywords: branches git rebase
Licenses: MIT
Submitter: alt0160
Maintainer: ilai
Last Packager: ilai
Votes: 0
Popularity: 0.000000
First Submitted: 2019-05-17 08:04 (UTC)
Last Updated: 2024-04-16 02:37 (UTC)

Dependencies (11)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

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ł

chrislea commented on 2023-05-16 16:46 (UTC)

Yup, @PawelLipski, looks good now. Just built 3.17.4 and everything worked correctly. Thanks!

PawelLipski commented on 2023-05-13 05:29 (UTC)

Think @chrislea, I think I've identified the problem now - pls check makepkg ... for v3.17.4 (should be already released now that you're reading this comment)

chrislea commented on 2023-05-10 12:51 (UTC)

@pawelLipski sure, here you go (sorry for the long output). This is with pycheck -vv building 3.17.3.

⠵ makepkg -s -i -c --config ~/AUR/makepkg.conf
==> Making package: git-machete 3.17.3-1 (Wed 10 May 2023 07:49:05 AM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found git-machete-3.17.3.tar.gz
==> Validating source files with sha256sums...
    git-machete-3.17.3.tar.gz ... Passed
==> Extracting sources...
  -> Extracting git-machete-3.17.3.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
running build
running build_py
running egg_info
writing git_machete.egg-info/PKG-INFO
writing dependency_links to git_machete.egg-info/dependency_links.txt
writing entry points to git_machete.egg-info/entry_points.txt
writing top-level names to git_machete.egg-info/top_level.txt
reading manifest file 'git_machete.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'git_machete.egg-info/SOURCES.txt'
==> Starting check()...
=================================================================== test session starts ====================================================================
platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /home/chl/AUR/git-machete/src/git-machete-3.17.3
plugins: typeguard-3.0.2, anyio-3.6.2, mock-3.10.0
collected 111 items                                                                                                                                        

tests/test_add.py::TestAdd::test_add PASSED                                                                                                          [  0%]
tests/test_add.py::TestAdd::test_add_check_out_remote_branch PASSED                                                                                  [  1%]
tests/test_add.py::TestAdd::test_add_already_managed_branch PASSED                                                                                   [  2%]
tests/test_advance.py::TestAdvance::test_advance_for_no_downstream_branches PASSED                                                                   [  3%]
tests/test_advance.py::TestAdvance::test_advance_for_no_applicable_downstream_branches PASSED                                                        [  4%]
tests/test_advance.py::TestAdvance::test_advance_with_immediate_cancel PASSED                                                                        [  5%]
tests/test_advance.py::TestAdvance::test_advance_with_push_for_one_downstream_branch PASSED                                                          [  6%]
tests/test_advance.py::TestAdvance::test_advance_without_push_for_one_downstream_branch PASSED                                                       [  7%]
tests/test_advance.py::TestAdvance::test_advance_for_a_few_possible_downstream_branches_and_yes_option PASSED                                        [  8%]
tests/test_anno.py::TestAnno::test_anno PASSED                                                                                                       [  9%]
tests/test_clean.py::TestClean::test_clean PASSED                                                                                                    [  9%]
tests/test_cli.py::TestCLI::test_aliases PASSED                                                                                                      [ 10%]
tests/test_client.py::TestClient::test_annotations_read_definition_file PASSED                                                                       [ 11%]
tests/test_delete_unmanaged.py::TestDeleteUnmanaged::test_delete_unmanaged PASSED                                                                    [ 12%]
tests/test_diff.py::TestDiff::test_diff PASSED                                                                                                       [ 13%]
tests/test_discover.py::TestDiscover::test_discover PASSED                                                                                           [ 14%]
tests/test_discover.py::TestDiscover::test_discover_main_branch_and_edit PASSED                                                                      [ 15%]
tests/test_edit.py::TestEdit::test_edit_git_machete_editor PASSED                                                                                    [ 16%]
tests/test_edit.py::TestEdit::test_edit_git_editor PASSED                                                                                            [ 17%]
tests/test_edit.py::TestEdit::test_edit_git_config_core_editor PASSED                                                                                [ 18%]
tests/test_file.py::TestFile::test_file PASSED                                                                                                       [ 18%]
tests/test_fork_point.py::TestForkPoint::test_fork_point_get PASSED                                                                                  [ 19%]
tests/test_fork_point.py::TestForkPoint::test_fork_point_override_to_commit PASSED                                                                   [ 20%]
tests/test_fork_point.py::TestForkPoint::test_fork_point_override_to_parent_and_inferred PASSED                                                      [ 21%]
tests/test_git_operations.py::TestGitOperations::test_run_git PASSED                                                                                 [ 22%]
tests/test_git_operations.py::TestGitOperations::test_popen_git PASSED                                                                               [ 23%]
tests/test_github.py::TestGitHub::test_github_retarget_pr PASSED                                                                                     [ 24%]
tests/test_github.py::TestGitHub::test_github_retarget_pr_explicit_branch PASSED                                                                     [ 25%]
tests/test_github.py::TestGitHub::test_github_retarget_pr_multiple_non_origin_remotes PASSED                                                         [ 26%]
tests/test_github.py::TestGitHub::test_github_anno_prs PASSED                                                                                        [ 27%]
tests/test_github.py::TestGitHub::test_github_create_pr PASSED                                                                                       [ 27%]
tests/test_github.py::TestGitHub::test_github_create_pr_missing_base_branch_on_remote PASSED                                                         [ 28%]
tests/test_github.py::TestGitHub::test_github_create_pr_with_multiple_non_origin_remotes PASSED                                                      [ 29%]
tests/test_github.py::TestGitHub::test_github_checkout_prs FAILED                                                                                    [ 30%]
tests/test_github.py::TestGitHub::test_github_checkout_prs_freshly_cloned PASSED                                                                     [ 31%]
tests/test_github.py::TestGitHub::test_github_checkout_prs_from_fork_with_deleted_repo PASSED                                                        [ 32%]
tests/test_github.py::TestGitHub::test_github_checkout_prs_of_current_user_and_other_users PASSED                                                    [ 33%]
tests/test_github.py::TestGitHub::test_github_sync PASSED                                                                                            [ 34%]
tests/test_github.py::TestGitHub::test_github_remote_patterns PASSED                                                                                 [ 35%]
tests/test_github.py::TestGitHub::test_github_api_pagination PASSED                                                                                  [ 36%]
tests/test_github.py::TestGitHub::test_github_enterprise_domain_fail PASSED                                                                          [ 36%]
tests/test_github.py::TestGitHub::test_github_enterprise_domain PASSED                                                                               [ 37%]
tests/test_github.py::TestGitHub::test_github_token_retrieval_order PASSED                                                                           [ 38%]
tests/test_github.py::TestGitHub::test_get_token_from_env_var PASSED                                                                                 [ 39%]
tests/test_github.py::TestGitHub::test_get_token_from_file_in_home_directory PASSED                                                                  [ 40%]
tests/test_github.py::TestGitHub::test_get_token_from_gh PASSED                                                                                      [ 41%]
tests/test_github.py::TestGitHub::test_get_token_from_hub PASSED                                                                                     [ 42%]
tests/test_github.py::TestGitHub::test_local_branch_name_different_than_tracking_branch_name PASSED                                                  [ 43%]
tests/test_go.py::TestGo::test_go_current PASSED                                                                                                     [ 44%]
tests/test_go.py::TestGo::test_go_invalid_direction PASSED                                                                                           [ 45%]
tests/test_go.py::TestGo::test_go_up PASSED                                                                                                          [ 45%]
tests/test_go.py::TestGo::test_go_down PASSED                                                                                                        [ 46%]
tests/test_go.py::TestGo::test_go_first_root_with_downstream PASSED                                                                                  [ 47%]
tests/test_go.py::TestGo::test_go_first_root_without_downstream PASSED                                                                               [ 48%]
tests/test_go.py::TestGo::test_go_last PASSED                                                                                                        [ 49%]
tests/test_go.py::TestGo::test_go_next_successor_exists PASSED                                                                                       [ 50%]
tests/test_go.py::TestGo::test_go_next_successor_on_another_root_tree PASSED                                                                         [ 51%]
tests/test_go.py::TestGo::test_go_prev_successor_exists PASSED                                                                                       [ 52%]
tests/test_go.py::TestGo::test_go_prev_successor_on_another_root_tree PASSED                                                                         [ 53%]
tests/test_go.py::TestGo::test_go_root PASSED                                                                                                        [ 54%]
tests/test_help.py::TestHelp::test_help PASSED                                                                                                       [ 54%]
tests/test_help.py::TestHelp::test_help_output_has_no_ansi_codes PASSED                                                                              [ 55%]
tests/test_is_managed.py::TestIsManaged::test_is_managed PASSED                                                                                      [ 56%]
tests/test_list.py::TestList::test_list PASSED                                                                                                       [ 57%]
tests/test_log.py::TestLog::test_log PASSED                                                                                                          [ 58%]
tests/test_reapply.py::TestReapply::test_reapply PASSED                                                                                              [ 59%]
tests/test_show.py::TestShow::test_show PASSED                                                                                                       [ 60%]
tests/test_show.py::TestShow::test_show_up PASSED                                                                                                    [ 61%]
tests/test_show.py::TestShow::test_show_down PASSED                                                                                                  [ 62%]
tests/test_show.py::TestShow::test_show_first PASSED                                                                                                 [ 63%]
tests/test_show.py::TestShow::test_show_last PASSED                                                                                                  [ 63%]
tests/test_show.py::TestShow::test_show_next PASSED                                                                                                  [ 64%]
tests/test_show.py::TestShow::test_show_prev PASSED                                                                                                  [ 65%]
tests/test_show.py::TestShow::test_show_root PASSED                                                                                                  [ 66%]
tests/test_slide_out.py::TestSlideOut::test_slide_out PASSED                                                                                         [ 67%]
tests/test_slide_out.py::TestSlideOut::test_slide_out_with_valid_down_fork_point PASSED                                                              [ 68%]
tests/test_slide_out.py::TestSlideOut::test_slide_out_with_invalid_down_fork_point PASSED                                                            [ 69%]
tests/test_slide_out.py::TestSlideOut::test_slide_out_with_down_fork_point_and_multiple_children_of_last_branch PASSED                               [ 70%]
tests/test_squash.py::TestSquash::test_squash_no_commits PASSED                                                                                      [ 71%]
tests/test_squash.py::TestSquash::test_squash_single_commit PASSED                                                                                   [ 72%]
tests/test_squash.py::TestSquash::test_squash_with_valid_fork_point PASSED                                                                           [ 72%]
tests/test_squash.py::TestSquash::test_squash_with_invalid_fork_point PASSED                                                                         [ 73%]
tests/test_status.py::TestStatus::test_branch_reappears_in_definition PASSED                                                                         [ 74%]
tests/test_status.py::TestStatus::test_indent_not_multiply_of_base_indent PASSED                                                                     [ 75%]
tests/test_status.py::TestStatus::test_indent_too_deep PASSED                                                                                        [ 76%]
tests/test_status.py::TestStatus::test_status_branch_hook_output PASSED                                                                              [ 77%]
tests/test_status.py::TestStatus::test_extra_space_before_branch_name PASSED                                                                         [ 78%]
tests/test_status.py::TestStatus::test_squashed_branch_recognized_as_merged PASSED                                                                   [ 79%]
tests/test_status.py::TestStatus::test_inferring_counterpart_for_fetching_of_branch PASSED                                                           [ 80%]
tests/test_status.py::TestStatus::test_status_when_child_branch_is_pushed_immediately_after_creation PASSED                                          [ 81%]
tests/test_status.py::TestStatus::test_status_fork_point_without_reflogs PASSED                                                                      [ 81%]
tests/test_traverse.py::TestTraverse::test_traverse_no_remotes PASSED                                                                                [ 82%]
tests/test_traverse.py::TestTraverse::test_traverse_no_push PASSED                                                                                   [ 83%]
tests/test_traverse.py::TestTraverse::test_traverse_no_push_override PASSED                                                                          [ 84%]
tests/test_traverse.py::TestTraverse::test_traverse_no_push_untracked PASSED                                                                         [ 85%]
tests/test_traverse.py::TestTraverse::test_traverse_push_config_key PASSED                                                                           [ 86%]
tests/test_traverse.py::TestTraverse::test_traverse_no_push_no_checkout PASSED                                                                       [ 87%]
tests/test_traverse.py::TestTraverse::test_traverse_and_squash PASSED                                                                                [ 88%]
tests/test_traverse.py::TestTraverse::test_traverse_with_merge PASSED                                                                                [ 89%]
tests/test_traverse.py::TestTraverse::test_traverse_qualifiers_no_push PASSED                                                                        [ 90%]
tests/test_traverse.py::TestTraverse::test_traverse_qualifiers_no_rebase PASSED                                                                      [ 90%]
tests/test_traverse.py::TestTraverse::test_traverse_qualifiers_no_rebase_no_push PASSED                                                              [ 91%]
tests/test_traverse.py::TestTraverse::test_traverse_qualifiers_no_slide_out PASSED                                                                   [ 92%]
tests/test_traverse.py::TestTraverse::test_traverse_no_managed_branches PASSED                                                                       [ 93%]
tests/test_update.py::TestUpdate::test_update_with_fork_point_not_specified PASSED                                                                   [ 94%]
tests/test_update.py::TestUpdate::test_update_by_merge PASSED                                                                                        [ 95%]
tests/test_update.py::TestUpdate::test_update_drops_empty_commits PASSED                                                                             [ 96%]
tests/test_update.py::TestUpdate::test_update_with_fork_point_specified PASSED                                                                       [ 97%]
tests/test_update.py::TestUpdate::test_update_with_invalid_fork_point PASSED                                                                         [ 98%]
tests/test_utils.py::TestUtils::test_fmt PASSED                                                                                                      [ 99%]
tests/test_version.py::TestVersion::test_version PASSED                                                                                              [100%]

========================================================================= FAILURES =========================================================================
___________________________________________________________ TestGitHub.test_github_checkout_prs ____________________________________________________________

self = <tests.test_github.TestGitHub object at 0x7f1a82534610>, mocker = <pytest_mock.plugin.MockerFixture object at 0x7f1a824fce90>
tmp_path = PosixPath('/tmp/pytest-of-chl/pytest-1/test_github_checkout_prs0')

    def test_github_checkout_prs(self, mocker: Any, tmp_path: Any) -> None:
        # We need to mock GITHUB_REMOTE_PATTERNS in the tests for `test_github_checkout_prs`
        # due to `git fetch` executed by `checkout-prs` subcommand.
        mocker.patch('git_machete.github.github_remote_url_patterns', mock_github_remote_url_patterns)
        mocker.patch('git_machete.options.CommandLineOptions', FakeCommandLineOptions)
        mocker.patch('git_machete.utils.run_cmd', mock_run_cmd_and_discard_output)
        mocker.patch('git_machete.github.GitHubToken.for_domain', mock_for_domain_none)
        mocker.patch('urllib.request.Request', self.git_api_state_for_test_checkout_prs.new_request())
        mocker.patch('urllib.request.urlopen', MockContextManager)

        (
            self.repo_sandbox.new_branch("root")
            .commit("initial commit")
            .new_branch("develop")
            .commit("first commit")
            .push()
            .new_branch("enhance/feature")
            .commit("introduce feature")
            .push()
            .new_branch("bugfix/feature")
            .commit("bugs removed")
            .push()
            .new_branch("allow-ownership-link")
            .commit("fixes")
            .push()
            .new_branch('restrict_access')
            .commit('authorized users only')
            .push()
            .new_branch("chore/redundant_checks")
            .commit('remove some checks')
            .push()
            .check_out("root")
            .new_branch("master")
            .commit("Master commit")
            .push()
            .new_branch("hotfix/add-trigger")
            .commit("HOTFIX Add the trigger")
            .push()
            .new_branch("ignore-trailing")
            .commit("Ignore trailing data")
            .push()
            .delete_branch("root")
            .new_branch('chore/fields')
            .commit("remove outdated fields")
            .push()
            .check_out('develop')
            .new_branch('enhance/add_user')
            .commit('allow externals to add users')
            .push()
            .new_branch('bugfix/add_user')
            .commit('first round of fixes')
            .push()
            .new_branch('testing/add_user')
            .commit('add test set for add_user feature')
            .push()
            .new_branch('chore/comments')
            .commit('code maintenance')
            .push()
            .check_out('master')
        )
        for branch in ('chore/redundant_checks', 'restrict_access', 'allow-ownership-link', 'bugfix/feature', 'enhance/add_user',
                       'testing/add_user', 'chore/comments', 'bugfix/add_user'):
            self.repo_sandbox.execute(f"git branch -D {branch}")

        body: str = \
            """
            master
                hotfix/add-trigger
                    ignore-trailing
                        chore/fields
            develop
                enhance/feature
                    bugfix/feature
                        allow-ownership-link
                            restrict_access
                                chore/redundant_checks
            """
        rewrite_definition_file(body)

        # not broken chain of pull requests (root found in dependency tree)
        launch_command('github', 'checkout-prs', '18')
        assert_success(
            ["status"],
            """
            master
            |
            o-hotfix/add-trigger
              |
              o-ignore-trailing  PR #3 (github_user) rebase=no push=no
                |
                o-chore/fields

            develop
            |
            o-enhance/feature
              |
              o-bugfix/feature  PR #6 (github_user) rebase=no push=no
                |
                o-allow-ownership-link  PR #12 (github_user) rebase=no push=no
                  |
                  o-restrict_access  PR #17 (github_user) rebase=no push=no
                    |
                    o-chore/redundant_checks *  PR #18 (github_user) rebase=no push=no
            """
        )
        # broken chain of pull requests (add new root)
        launch_command('github', 'checkout-prs', '24')
        assert_success(
            ["status"],
            """
            master
            |
            o-hotfix/add-trigger
              |
              o-ignore-trailing  PR #3 (github_user) rebase=no push=no
                |
                o-chore/fields

            develop
            |
            o-enhance/feature
              |
              o-bugfix/feature  PR #6 (github_user) rebase=no push=no
                |
                o-allow-ownership-link  PR #12 (github_user) rebase=no push=no
                  |
                  o-restrict_access  PR #17 (github_user) rebase=no push=no
                    |
                    o-chore/redundant_checks  PR #18 (github_user) rebase=no push=no

            bugfix/add_user
            |
            o-testing/add_user  PR #22 (github_user) rebase=no push=no
              |
              o-chore/comments *  PR #24 (github_user) rebase=no push=no
            """
        )

        # broken chain of pull requests (branches already added)
        launch_command('github', 'checkout-prs', '24')
        assert_success(
            ["status"],
            """
            master
            |
            o-hotfix/add-trigger
              |
              o-ignore-trailing  PR #3 (github_user) rebase=no push=no
                |
                o-chore/fields

            develop
            |
            o-enhance/feature
              |
              o-bugfix/feature  PR #6 (github_user) rebase=no push=no
                |
                o-allow-ownership-link  PR #12 (github_user) rebase=no push=no
                  |
                  o-restrict_access  PR #17 (github_user) rebase=no push=no
                    |
                    o-chore/redundant_checks  PR #18 (github_user) rebase=no push=no

            bugfix/add_user
            |
            o-testing/add_user  PR #22 (github_user) rebase=no push=no
              |
              o-chore/comments *  PR #24 (github_user) rebase=no push=no
            """
        )

        # all PRs
        launch_command('github', 'checkout-prs', '--all')
        assert_success(
            ["status"],
            """
            master
            |
            o-hotfix/add-trigger
              |
              o-ignore-trailing  PR #3 (github_user) rebase=no push=no
                |
                o-chore/fields

            develop
            |
            o-enhance/feature
            | |
            | o-bugfix/feature  PR #6 (github_user) rebase=no push=no
            |   |
            |   o-allow-ownership-link  PR #12 (github_user) rebase=no push=no
            |     |
            |     o-restrict_access  PR #17 (github_user) rebase=no push=no
            |       |
            |       o-chore/redundant_checks  PR #18 (github_user) rebase=no push=no
            |
            o-enhance/add_user  PR #19 (github_user) rebase=no push=no

            bugfix/add_user
            |
            o-testing/add_user  PR #22 (github_user) rebase=no push=no
              |
              o-chore/comments *  PR #24 (github_user) rebase=no push=no
            """
        )

        # check against wrong pr number
        remote_org_repo = RemoteAndOrganizationAndRepository.from_url(domain=GitHubClient.DEFAULT_GITHUB_DOMAIN,
                                                                      url=self.repo_sandbox.remote_path,
                                                                      remote='origin')
        assert remote_org_repo is not None
        expected_error_message = f"PR #100 is not found in repository {remote_org_repo.organization}/{remote_org_repo.repository}"
        assert_failure(['github', 'checkout-prs', '100'], expected_error_message)

        assert_failure(['github', 'checkout-prs', '19', '100'], expected_error_message)

        # check against user with no open pull requests
        expected_msg = ("Checking for open GitHub PRs... OK\n"
                        f"Warn: User tester has no open pull request in repository "
                        f"{remote_org_repo.organization}/{remote_org_repo.repository}\n")
        assert_success(['github', 'checkout-prs', '--by', 'tester'], expected_msg)

        # Check against closed pull request with head branch deleted from remote
        local_path = tmp_path
        self.repo_sandbox.new_repo(GitRepositorySandbox.second_remote_path)
        (self.repo_sandbox.new_repo(local_path)
            .execute(f"git remote add origin {GitRepositorySandbox.second_remote_path}")
            .execute('git config user.email "tester@test.com"')
            .execute('git config user.name "Tester Test"')
            .new_branch('main')
            .commit('initial commit')
>           .push()
         )

/home/chl/AUR/git-machete/src/git-machete-3.17.3/tests/test_github.py:1575: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/chl/AUR/git-machete/src/git-machete-3.17.3/tests/base_test.py:87: in push
    self.execute(f"git push {'--set-upstream' if set_upstream else ''} {remote} {branch}:{tracking_branch}")
/home/chl/AUR/git-machete/src/git-machete-3.17.3/tests/base_test.py:41: in execute
    subprocess.check_call(command, shell=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = ('git push --set-upstream origin main:main',), kwargs = {'shell': True}, retcode = 1, cmd = 'git push --set-upstream origin main:main'

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command 'git push --set-upstream origin main:main' returned non-zero exit status 1.

/usr/lib/python3.11/subprocess.py:413: CalledProcessError
------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------
[root (root-commit) 71b1927] initial commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 0.txt
[develop a1eb42b] first commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 1.txt
branch 'develop' set up to track 'origin/develop'.
[enhance/feature b5a3d87] introduce feature
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 2.txt
branch 'enhance/feature' set up to track 'origin/enhance/feature'.
[bugfix/feature 7184b56] bugs removed
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 3.txt
branch 'bugfix/feature' set up to track 'origin/bugfix/feature'.
[allow-ownership-link 41b2375] fixes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 4.txt
branch 'allow-ownership-link' set up to track 'origin/allow-ownership-link'.
[restrict_access 5a7956a] authorized users only
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 5.txt
branch 'restrict_access' set up to track 'origin/restrict_access'.
[chore/redundant_checks 5e7d50f] remove some checks
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 6.txt
branch 'chore/redundant_checks' set up to track 'origin/chore/redundant_checks'.
[master ac659df] Master commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 7.txt
branch 'master' set up to track 'origin/master'.
[hotfix/add-trigger 899a4be] HOTFIX Add the trigger
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 8.txt
branch 'hotfix/add-trigger' set up to track 'origin/hotfix/add-trigger'.
[ignore-trailing 8d561eb] Ignore trailing data
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 9.txt
branch 'ignore-trailing' set up to track 'origin/ignore-trailing'.
Deleted branch root (was 71b1927).
[chore/fields dc95ad7] remove outdated fields
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 10.txt
branch 'chore/fields' set up to track 'origin/chore/fields'.
Your branch is up to date with 'origin/develop'.
[enhance/add_user bcb2eac] allow externals to add users
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 11.txt
branch 'enhance/add_user' set up to track 'origin/enhance/add_user'.
[bugfix/add_user 5faff4b] first round of fixes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 12.txt
branch 'bugfix/add_user' set up to track 'origin/bugfix/add_user'.
[testing/add_user 1131ea7] add test set for add_user feature
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 13.txt
branch 'testing/add_user' set up to track 'origin/testing/add_user'.
[chore/comments f5a3f94] code maintenance
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 14.txt
branch 'chore/comments' set up to track 'origin/chore/comments'.
Your branch is up to date with 'origin/master'.
Deleted branch chore/redundant_checks (was 5e7d50f).
Deleted branch restrict_access (was 5a7956a).
Deleted branch allow-ownership-link (was 41b2375).
Deleted branch bugfix/feature (was 7184b56).
Deleted branch enhance/add_user (was bcb2eac).
Deleted branch testing/add_user (was 1131ea7).
Deleted branch chore/comments (was f5a3f94).
Deleted branch bugfix/add_user (was 5faff4b).
[main (root-commit) 144c388] initial commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 15.txt
------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------
Switched to a new branch 'root'
Switched to a new branch 'develop'
To /tmp/tmpk7ugz_a2
 * [new branch]      develop -> develop
Switched to a new branch 'enhance/feature'
To /tmp/tmpk7ugz_a2
 * [new branch]      enhance/feature -> enhance/feature
Switched to a new branch 'bugfix/feature'
To /tmp/tmpk7ugz_a2
 * [new branch]      bugfix/feature -> bugfix/feature
Switched to a new branch 'allow-ownership-link'
To /tmp/tmpk7ugz_a2
 * [new branch]      allow-ownership-link -> allow-ownership-link
Switched to a new branch 'restrict_access'
To /tmp/tmpk7ugz_a2
 * [new branch]      restrict_access -> restrict_access
Switched to a new branch 'chore/redundant_checks'
To /tmp/tmpk7ugz_a2
 * [new branch]      chore/redundant_checks -> chore/redundant_checks
Switched to branch 'root'
Switched to a new branch 'master'
To /tmp/tmpk7ugz_a2
 * [new branch]      master -> master
Switched to a new branch 'hotfix/add-trigger'
To /tmp/tmpk7ugz_a2
 * [new branch]      hotfix/add-trigger -> hotfix/add-trigger
Switched to a new branch 'ignore-trailing'
To /tmp/tmpk7ugz_a2
 * [new branch]      ignore-trailing -> ignore-trailing
Switched to a new branch 'chore/fields'
To /tmp/tmpk7ugz_a2
 * [new branch]      chore/fields -> chore/fields
Switched to branch 'develop'
Switched to a new branch 'enhance/add_user'
To /tmp/tmpk7ugz_a2
 * [new branch]      enhance/add_user -> enhance/add_user
Switched to a new branch 'bugfix/add_user'
To /tmp/tmpk7ugz_a2
 * [new branch]      bugfix/add_user -> bugfix/add_user
Switched to a new branch 'testing/add_user'
To /tmp/tmpk7ugz_a2
 * [new branch]      testing/add_user -> testing/add_user
Switched to a new branch 'chore/comments'
To /tmp/tmpk7ugz_a2
 * [new branch]      chore/comments -> chore/comments
Switched to branch 'master'
Switched to a new branch 'main'
remote: error: refusing to update checked out branch: refs/heads/main        
remote: error: By default, updating the current branch in a non-bare repository        
remote: is denied, because it will make the index and work tree inconsistent        
remote: with what you pushed, and will require 'git reset --hard' to match        
remote: the work tree to HEAD.        
remote: 
remote: You can set the 'receive.denyCurrentBranch' configuration variable        
remote: to 'ignore' or 'warn' in the remote repository to allow pushing into        
remote: its current branch; however, this is not recommended unless you        
remote: arranged to update its work tree to match what you pushed in some        
remote: other way.        
remote: 
remote: To squelch this message and still keep the default behaviour, set        
remote: 'receive.denyCurrentBranch' configuration variable to 'refuse'.        
To /tmp/tmpy1lyrnc0
 ! [remote rejected] main -> main (branch is currently checked out)
error: failed to push some refs to '/tmp/tmpy1lyrnc0'
================================================================= short test summary info ==================================================================
FAILED tests/test_github.py::TestGitHub::test_github_checkout_prs - subprocess.CalledProcessError: Command 'git push --set-upstream origin main:main' returned non-zero exit status 1.
============================================================== 1 failed, 110 passed in 46.31s ==============================================================
==> ERROR: A failure occurred in check().
    Aborting... 

PawelLipski commented on 2023-05-03 14:25 (UTC)

Huh okay... one more thing, could you change the pytest invocation in check() to pytest -vv and then run makepkg -s -i -c? I hope for more useful output (stack traces etc.) showing up this way

chrislea commented on 2023-05-02 16:27 (UTC)

@PawelLipski here is the complete log output up to where it outputs the specific error info from my local machine. Please note that I am not running this as root / sudo, which it looks like you were in your docker build. I'm not sure if that should make any difference.

makepkg -s -i -c
==> Making package: git-machete 3.16.1-1 (Tue 02 May 2023 09:25:05 AM MST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading git-machete-3.16.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1369k  100 1369k    0     0  1630k      0 --:--:-- --:--:-- --:--:-- 1630k
==> Validating source files with sha256sums...
    git-machete-3.16.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting git-machete-3.16.1.tar.gz with bsdtar
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/git_machete
copying git_machete/__init__.py -> build/lib/git_machete
copying git_machete/annotation.py -> build/lib/git_machete
copying git_machete/cli.py -> build/lib/git_machete
copying git_machete/client.py -> build/lib/git_machete
copying git_machete/constants.py -> build/lib/git_machete
copying git_machete/exceptions.py -> build/lib/git_machete
copying git_machete/generated_docs.py -> build/lib/git_machete
copying git_machete/git_config_keys.py -> build/lib/git_machete
copying git_machete/git_operations.py -> build/lib/git_machete
copying git_machete/github.py -> build/lib/git_machete
copying git_machete/options.py -> build/lib/git_machete
copying git_machete/utils.py -> build/lib/git_machete
running egg_info
creating git_machete.egg-info
writing git_machete.egg-info/PKG-INFO
writing dependency_links to git_machete.egg-info/dependency_links.txt
writing top-level names to git_machete.egg-info/top_level.txt
writing manifest file 'git_machete.egg-info/SOURCES.txt'
reading manifest file 'git_machete.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'git_machete.egg-info/SOURCES.txt'
running build_scripts
creating build/scripts-3.10
copying and adjusting git-machete -> build/scripts-3.10
changing mode of build/scripts-3.10/git-machete from 644 to 755
==> Starting check()...
============================================================================ test session starts =============================================================================
platform linux -- Python 3.10.10, pytest-7.3.1, pluggy-1.0.0
rootdir: /home/chl/AUR/git-machete/src/git-machete-3.16.1
plugins: anyio-3.6.2, mock-3.10.0
collected 84 items

tests/test_add.py .                                                                                                                                                    [  1%]
tests/test_advance.py ....                                                                                                                                             [  5%]
tests/test_anno.py .                                                                                                                                                   [  7%]
tests/test_clean.py .                                                                                                                                                  [  8%]
tests/test_cli.py .                                                                                                                                                    [  9%]
tests/test_client.py .                                                                                                                                                 [ 10%]
tests/test_diff.py .                                                                                                                                                   [ 11%]
tests/test_discover.py .                                                                                                                                               [ 13%]
tests/test_file.py .                                                                                                                                                   [ 14%]
tests/test_fork_point.py ..                                                                                                                                            [ 16%]
tests/test_git_operations.py ..                                                                                                                                        [ 19%]
tests/test_github.py ......F.............                                                                                                                              [ 42%]
tests/test_go.py ..........                                                                                                                                            [ 54%]
tests/test_help.py ..                                                                                                                                                  [ 57%]
tests/test_is_managed.py .                                                                                                                                             [ 58%]
tests/test_list.py .                                                                                                                                                   [ 59%]
tests/test_log.py .                                                                                                                                                    [ 60%]
tests/test_show.py ........                                                                                                                                            [ 70%]
tests/test_slide_out.py ....                                                                                                                                           [ 75%]
tests/test_squash.py ..                                                                                                                                                [ 77%]
tests/test_status.py .....                                                                                                                                             [ 83%]
tests/test_traverse.py ..........                                                                                                                                      [ 95%]
tests/test_update.py ...                                                                                                                                               [ 98%]
tests/test_utils.py .                                                                                                                                                  [100%]

================================================================================== FAILURES ==================================================================================
____________________________________________________________________ TestGitHub.test_github_checkout_prs _____________________________________________________________________

chrislea commented on 2023-05-02 16:14 (UTC)

Hello @PawelLipski, sorry for the late reply. The failure just happens on my local machine. I'm running the basic command

makepkg -s -i -c

in the directory where the PKGBUILD is. In the PKGBUILD, it looks like it's just running pytest.

check() {
  cd "$srcdir/$pkgname-${pkgver}"
  pytest
}

Please let me know if there's any additional information I can provide.

PawelLipski commented on 2023-04-11 18:05 (UTC)

This means that either the tests are flaky, or, more likely, that the Dockerfile that I've cooked up doesn't simulate the actual build environment well ;D @chrislea, how did you run the check that reproduced the failure in test_github as of 3.16.1? was it a log from your local machine, or from some AUR build system?

Also, how is it possible that an updated version of the package (3.16.1) is published despite the failure happening in test_github AND check function in PKGBUILD still having a call to pytest?

PawelLipski commented on 2023-04-11 18:02 (UTC)

Hmmm FWIW I've just tried reproducing the problems locally, using the following Dockerfile:

FROM archlinux
RUN pacman -Sy --noconfirm base-devel
RUN mkdir /build
RUN chmod a+w /build
WORKDIR /build
COPY PKGBUILD .
#RUN echo 'nobody ALL=(ALL:ALL) ALL' >> /etc/sudoers
RUN pacman -S --noconfirm git python python-setuptools python-pytest python-pytest-mock
RUN sudo -u nobody  makepkg #--syncdeps (not working easily with sudo -u nobody)

but the build apparently passed:

#12 [8/8] RUN sudo -u nobody  makepkg #--syncdeps
#12 sha256:bfb538672df2b2a041c976838592eda42b3559d75c01f6277f7629bdb66175b2
#12 1.056 ==> Making package: git-machete 3.16.1-1 (Tue Apr 11 17:59:49 2023)
#12 1.059 ==> Checking runtime dependencies...
#12 1.080 ==> Checking buildtime dependencies...
#12 1.098 ==> Retrieving sources...
#12 1.109   -> Downloading git-machete-3.16.1.tar.gz...
#12 1.115   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#12 1.115                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1369k    0 1369k    0     0  1256k      0 --:--:--  0:00:01 --:--:-- 35.6M
#12 2.215 ==> Validating source files with sha256sums...
#12 2.216     git-machete-3.16.1.tar.gz ... Passed
#12 2.239 ==> Extracting sources...
#12 2.270   -> Extracting git-machete-3.16.1.tar.gz with bsdtar
#12 2.324 ==> Starting build()...
#12 2.469 running build
#12 2.469 running build_py
#12 2.472 creating build
#12 2.472 creating build/lib
#12 2.472 creating build/lib/git_machete
#12 2.472 copying git_machete/client.py -> build/lib/git_machete
#12 2.473 copying git_machete/generated_docs.py -> build/lib/git_machete
#12 2.474 copying git_machete/annotation.py -> build/lib/git_machete
#12 2.474 copying git_machete/git_config_keys.py -> build/lib/git_machete
#12 2.475 copying git_machete/utils.py -> build/lib/git_machete
#12 2.475 copying git_machete/constants.py -> build/lib/git_machete
#12 2.475 copying git_machete/cli.py -> build/lib/git_machete
#12 2.475 copying git_machete/github.py -> build/lib/git_machete
#12 2.476 copying git_machete/__init__.py -> build/lib/git_machete
#12 2.476 copying git_machete/options.py -> build/lib/git_machete
#12 2.476 copying git_machete/git_operations.py -> build/lib/git_machete
#12 2.477 copying git_machete/exceptions.py -> build/lib/git_machete
#12 2.477 running egg_info
#12 2.485 creating git_machete.egg-info
#12 2.487 writing git_machete.egg-info/PKG-INFO
#12 2.487 writing dependency_links to git_machete.egg-info/dependency_links.txt
#12 2.488 writing top-level names to git_machete.egg-info/top_level.txt
#12 2.488 writing manifest file 'git_machete.egg-info/SOURCES.txt'
#12 2.493 reading manifest file 'git_machete.egg-info/SOURCES.txt'
#12 2.494 reading manifest template 'MANIFEST.in'
#12 2.494 adding license file 'LICENSE'
#12 2.495 writing manifest file 'git_machete.egg-info/SOURCES.txt'
#12 2.496 running build_scripts
#12 2.496 creating build/scripts-3.10
#12 2.496 copying and adjusting git-machete -> build/scripts-3.10
#12 2.496 changing mode of build/scripts-3.10/git-machete from 644 to 755
#12 2.521 ==> Starting check()...
#12 2.991 ============================= test session starts ==============================
#12 2.991 platform linux -- Python 3.10.10, pytest-7.3.0, pluggy-1.0.0
#12 2.991 rootdir: /build/src/git-machete-3.16.1
#12 2.991 plugins: mock-3.10.0
#12 2.991 collected 84 items
#12 2.991
#12 2.991 tests/test_add.py .                                                      [  1%]
#12 3.362 tests/test_advance.py ....                                               [  5%]
#12 4.375 tests/test_anno.py .                                                     [  7%]
#12 4.840 tests/test_clean.py .                                                    [  8%]
#12 5.458 tests/test_cli.py .                                                      [  9%]
#12 5.459 tests/test_client.py .                                                   [ 10%]
#12 5.887 tests/test_diff.py .                                                     [ 11%]
#12 6.148 tests/test_discover.py .                                                 [ 13%]
#12 6.576 tests/test_file.py .                                                     [ 14%]
#12 6.779 tests/test_fork_point.py ..                                              [ 16%]
#12 7.432 tests/test_git_operations.py ..                                          [ 19%]
#12 7.676 tests/test_github.py ....................                                [ 42%]
#12 26.85 tests/test_go.py ..........                                              [ 54%]
#12 30.13 tests/test_help.py ..                                                    [ 57%]
#12 31.09 tests/test_is_managed.py .                                               [ 58%]
#12 31.37 tests/test_list.py .                                                     [ 59%]
#12 31.85 tests/test_log.py .                                                      [ 60%]
#12 32.10 tests/test_show.py ........                                              [ 70%]
#12 36.16 tests/test_slide_out.py ....                                             [ 75%]
#12 39.25 tests/test_squash.py ..                                                  [ 77%]
#12 39.61 tests/test_status.py .....                                               [ 83%]
#12 42.64 tests/test_traverse.py ..........                                        [ 95%]
#12 69.12 tests/test_update.py ...                                                 [ 98%]
#12 70.04 tests/test_utils.py .                                                    [100%]
#12 70.05
#12 70.05 ======================== 84 passed in 67.32s (0:01:07) =========================
#12 70.10 ==> Entering fakeroot environment...
#12 71.32 ==> Starting package()...
#12 71.61 running install
#12 71.61 /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
#12 71.61   warnings.warn(
#12 71.62 running install_lib
#12 71.63 creating /build/pkg/git-machete/usr
#12 71.63 creating /build/pkg/git-machete/usr/lib
#12 71.63 creating /build/pkg/git-machete/usr/lib/python3.10
#12 71.63 creating /build/pkg/git-machete/usr/lib/python3.10/site-packages
#12 71.63 creating /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.63 copying build/lib/git_machete/client.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.63 copying build/lib/git_machete/generated_docs.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.63 copying build/lib/git_machete/annotation.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.63 copying build/lib/git_machete/git_config_keys.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 copying build/lib/git_machete/utils.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 copying build/lib/git_machete/constants.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 copying build/lib/git_machete/cli.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 copying build/lib/git_machete/github.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 copying build/lib/git_machete/__init__.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 copying build/lib/git_machete/options.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 copying build/lib/git_machete/git_operations.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 copying build/lib/git_machete/exceptions.py -> /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete
#12 71.64 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/client.py to client.cpython-310.pyc
#12 71.67 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/generated_docs.py to generated_docs.cpython-310.pyc
#12 71.67 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/annotation.py to annotation.cpython-310.pyc
#12 71.67 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/git_config_keys.py to git_config_keys.cpython-310.pyc
#12 71.68 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/utils.py to utils.cpython-310.pyc
#12 71.68 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/constants.py to constants.cpython-310.pyc
#12 71.68 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/cli.py to cli.cpython-310.pyc
#12 71.68 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/github.py to github.cpython-310.pyc
#12 71.69 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/__init__.py to __init__.cpython-310.pyc
#12 71.69 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/options.py to options.cpython-310.pyc
#12 71.69 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/git_operations.py to git_operations.cpython-310.pyc
#12 71.70 byte-compiling /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete/exceptions.py to exceptions.cpython-310.pyc
#12 71.70 writing byte-compilation script '/tmp/tmplgafh8f7.py'
#12 71.70 /usr/sbin/python /tmp/tmplgafh8f7.py
#12 72.06 removing /tmp/tmplgafh8f7.py
#12 72.06 running install_egg_info
#12 72.08 running egg_info
#12 72.08 writing git_machete.egg-info/PKG-INFO
#12 72.08 writing dependency_links to git_machete.egg-info/dependency_links.txt
#12 72.08 writing top-level names to git_machete.egg-info/top_level.txt
#12 72.11 reading manifest file 'git_machete.egg-info/SOURCES.txt'
#12 72.11 reading manifest template 'MANIFEST.in'
#12 72.12 adding license file 'LICENSE'
#12 72.12 writing manifest file 'git_machete.egg-info/SOURCES.txt'
#12 72.12 Copying git_machete.egg-info to /build/pkg/git-machete/usr/lib/python3.10/site-packages/git_machete-3.16.1-py3.10.egg-info
#12 72.13 running install_scripts
#12 72.13 creating /build/pkg/git-machete/usr/bin
#12 72.13 copying build/scripts-3.10/git-machete -> /build/pkg/git-machete/usr/bin
#12 72.13 changing mode of /build/pkg/git-machete/usr/bin/git-machete to 755
#12 72.26 ==> Tidying install...
#12 72.27   -> Removing libtool files...
#12 72.28   -> Purging unwanted files...
#12 72.30   -> Removing static library files...
#12 72.32   -> Stripping unneeded symbols from binaries and libraries...
#12 72.63   -> Compressing man and info pages...
#12 72.64 ==> Checking for packaging issues...
#12 72.70 ==> Creating package "git-machete"...
#12 72.70   -> Generating .PKGINFO file...
#12 72.78   -> Generating .BUILDINFO file...
#12 72.85   -> Generating .MTREE file...
#12 72.89   -> Compressing package...
#12 72.93 ==> Leaving fakeroot environment.
#12 72.94 ==> Finished making: git-machete 3.16.1-1 (Tue Apr 11 18:01:01 2023)
#12 DONE 73.0s

chrislea commented on 2023-04-05 17:19 (UTC)

@PawelLipski I just checked and as of 3.16.1 there is still an error in test_github.py. If you'd like more information please let me know what I can get to you.

============================================================================= short test summary info ==============================================================================
FAILED tests/test_github.py::TestGitHub::test_github_checkout_prs - subprocess.CalledProcessError: Command 'git push --set-upstream origin main' returned non-zero exit status 1.
========================================================================== 1 failed, 83 passed in 37.58s ===========================================================================
==> ERROR: A failure occurred in check().
    Aborting...