Skip to content

[Archery] Crossbow refuses to run on the main branch of a fork #39996

@pitrou

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

When invoking @github-actions crossbow submit ... on a PR made from a fork's main branch, Archery fails triggering the builds. Example:
#39878 (comment)

Result:
https://github.com/apache/arrow/actions/runs/7828116460/job/21357317509#step:5:18

Run archery trigger-bot \
  archery trigger-bot \
    --event-name issue_comment \
    --event-payload /home/runner/work/_temp/_github_workflow/event.json
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
    ARROW_GITHUB_TOKEN: ***
    CROSSBOW_GITHUB_TOKEN: ***
fatal: not a git repository (or any of the parent directories): .git
Cloning into '/tmp/tmpze7d9_8y/arrow'...
fatal: refusing to fetch into branch 'refs/heads/main' checked out at '/tmp/tmpze7d9_8y/arrow'
ERROR:archery:Command '['git', '-C', '/tmp/tmpze7d9_8y/arrow', 'fetch', 'origin', 'pull/39878/head:main']' returned non-zero exit status 128.

Component(s)

Archery, Continuous Integration

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions