Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-12270

merge-kits trying to push to official repo

    • Icon: Story Story
    • Resolution: Expected Behavior
    • Icon: Normal Normal
    • None
    • None
    • None

      While generating local meta-repo at the very end stage, it trying to push to the official upstream:

      INFO     executing: (cd /home/oleg/repo_tmp/dest-trees/python-kit && git push --no-force repos@alkaline-dev-1:funtoo/staging/python-kit +refs/heads/* +refs/tags/*)                                                 
      INFO     executing: cd /home/oleg/repo_tmp/dest-trees/meta-repo && git add 'README' 'metadata'                                                                                                                      
      running: ( cd /home/oleg/repo_tmp/dest-trees/meta-repo && [ -n "$(git status --porcelain)" ] && git commit -a -F - << EOF
      kit updates
      
      EOF
      )
      
      [next bae5e66] kit updates
       3 files changed, 416 insertions(+)
       create mode 100644 metadata/kit-info.json
       create mode 100644 metadata/kit-sha1.json
       create mode 100644 metadata/version.json
      INFO     executing: (cd /home/oleg/repo_tmp/dest-trees/meta-repo && git push --no-force repos@alkaline-dev-1:funtoo/staging/meta-repo +refs/heads/* +refs/tags/*)                                                   
      INFO     executing: rm -rf /home/oleg/repo_tmp/tmp/mirror_repos                                                                                                                                                     
      INFO     executing: git clone --bare /home/oleg/repo_tmp/dest-trees/core-kit /home/oleg/repo_tmp/tmp/mirror_repos/core-kit.pushme                                                                                   
      INFO     executing: cd /home/oleg/repo_tmp/tmp/mirror_repos/core-kit.pushme && git remote add upstream ssh://git@github.com/funtoo/core-kit && git push --mirror upstream                                           
      Traceback (most recent call last):
        File "/usr/lib/python-exec/python3.9/merge-kits", line 94, in <module>
          if hub.LOOP.run_until_complete(main_thread(args)):
        File "/usr/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
          return future.result()
        File "/usr/lib/python-exec/python3.9/merge-kits", line 58, in main_thread
          success = await controller.generate()
        File "/home/oleg/development/funtoo-metatools/metatools/kit.py", line 875, in generate
          await self.mirror_all_repositories()
        File "/home/oleg/development/funtoo-metatools/metatools/kit.py", line 905, in mirror_all_repositories
          await self.mirror_repository(kit_job.out_tree, base_path, mirror)
        File "/home/oleg/development/funtoo-metatools/metatools/kit.py", line 887, in mirror_repository
          await run_shell(
        File "/home/oleg/development/funtoo-metatools/metatools/cmd.py", line 46, in run_shell
          raise ShellError(f"Aborted due to failed command. Error executing '{cmd_str}':\n{output}\n")
      metatools.cmd.ShellError: Aborted due to failed command. Error executing 'cd /home/oleg/repo_tmp/tmp/mirror_repos/core-kit.pushme && git remote add upstream ssh://git@github.com/funtoo/core-kit && git push --mirror upstream':
      ERROR: Permission to funtoo/core-kit.git denied to OlehVinichenko.
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      
      

      this is correct behavior, as there is, indeed ssh entry in repositories.yaml:
      mirrors:

            Unassigned Unassigned
            oleg oleg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: