Skip to content

Creating new repo with planemo workflow_upload fails on first attempt #1248

@mvdbeek

Description

@mvdbeek

from https://github.com/galaxyproject/iwc/runs/6863110264?check_suite_focus=true:

+ planemo workflow_upload --namespace iwc-workflows workflows/VGP-assembly-v2/VGP-meryldb-creation
git ls-remote https://github.com/iwc-workflows/VGP-meryldb-creation
remote: Repository not found.
fatal: repository 'https://github.com/iwc-workflows/VGP-meryldb-creation/' not found
Cloning https://github.com/iwc-workflows/VGP-meryldb-creation
git clone https://github.com/iwc-workflows/VGP-meryldb-creation /tmp/tmp7e1sxlnl
Cloning into '/tmp/tmp7e1sxlnl'...
remote: Repository not found.
fatal: repository 'https://github.com/iwc-workflows/VGP-meryldb-creation/' not found
Creating repository https://github.com/iwc-workflows/VGP-meryldb-creation
/home/runner/.planemo/gh-1.5.0 repo create -y --public iwc-workflows/VGP-meryldb-creation
https://github.com/iwc-workflows/VGP-meryldb-creation
From /home/runner/work/iwc/iwc/workflows/VGP-assembly-v2/VGP-meryldb-creation to /tmp/tmp7e1sxlnl/VGP-meryldb-creation
git add .
git commit -m 'Update for version 0.1'
[main (root-commit) 73c9d46] Update for version 0.1
 11 files changed, 728 insertions(+)
 create mode 100644 .dockstore.yml
 create mode 100644 .github/workflows/wftest.yml
 create mode 100644 CHANGELOG.md
 create mode 100644 README.md
 create mode 100644 meryldb-creation-tests.yml
 create mode 100644 meryldb-creation.ga
 create mode 100644 ro-crate-metadata.json
 create mode 100644 test-data/GenomeScope_Linear_plot.png
 create mode 100644 test-data/GenomeScope_Log_plot.png
 create mode 100644 test-data/GenomeScope_Transformed_linear_plot.png
 create mode 100644 test-data/GenomeScope_Transformed_log_plot.png
git push
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
    git push --set-upstream origin main
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.13/x64/bin/planemo", line 8, in <module>
    sys.exit(planemo())
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/planemo/cli.py", line 96, in handle_blended_options
    return f(*args, **kwds)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/planemo/commands/cmd_workflow_upload.py", line 43, in cli
    ctx, from_dir=path, target_dir=repo, owner=owner, repo=repo, version=version, dry_run=dry_run
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/planemo/github_util.py", line 168, in create_release
    ctx, from_dir, target_dir, target_repository_path, version=version, dry_run=dry_run, notes=notes
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/planemo/github_util.py", line 120, in add_dir_contents_to_repo
    git.push(ctx, target_repository_path)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/planemo/git.py", line 49, in push
    io.communicate(cmd, env=env, cwd=repo_path)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/planemo/io.py", line 52, in communicate
    raise RuntimeError(msg)
RuntimeError: Problem executing commands git push - (None, None)
+ exit 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions