Skip to content

[Release] 02-source.sh fails creating verification PR for Release Candidate #50811

Closed

Description

@raulcd

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

The dev/release/02-source.sh scripts fails when creating the RC PR with the following:

$ SOURCE_DEFAULT=0 SOURCE_PR=1 dev/release/02-source.sh 25.0.1 0
Preparing source for tag apache-arrow-25.0.1-rc0
Using commit 2efbed957cb79a58f2a3af264d5d9956f38ecea6
Traceback (most recent call last):
  File "/home/raulcd/code/archery/bin/archery", line 7, in <module>
    sys.exit(archery())
             ~~~~~~~^^
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/click/core.py", line 1462, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/click/core.py", line 1383, in main
    rv = self.invoke(ctx)
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/click/core.py", line 1850, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/click/core.py", line 1850, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/click/core.py", line 1246, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/click/core.py", line 814, in invoke
    return callback(*args, **kwargs)
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/click/decorators.py", line 46, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/home/raulcd/code/arrow/dev/archery/archery/crossbow/cli.py", line 196, in verify_release_candidate
    response = arrow.github_pr(title=pr_title, head=head_branch,
                               base=base_branch, body=pr_body,
                               github_token=obj['queue'].github_token,
                               create=create_pr)
  File "/home/raulcd/code/arrow/dev/archery/archery/crossbow/core.py", line 566, in github_pr
    return repo.create_pull(title=title, base=base, head=head,
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                            body=body or "")
                            ^^^^^^^^^^^^^^^^
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/github/Repository.py", line 1858, in create_pull
    headers, data = self._requester.requestJsonAndCheck("POST", f"{self.url}/pulls", input=post_parameters)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/github/Requester.py", line 623, in requestJsonAndCheck
    return self.__check(
           ~~~~~~~~~~~~^
        *self.requestJson(
        ^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
        )
        ^
    )
    ^
  File "/home/raulcd/code/archery/lib/python3.13/site-packages/github/Requester.py", line 853, in __check
    raise self.createException(status, responseHeaders, data)
github.GithubException.GithubException: Validation Failed: 422 {"message": "Validation Failed", "errors": [{"resource": "PullRequest", "field": "base", "code": "invalid"}], "documentation_url": "https://docs.github.com/rest/pulls/pulls#create-a-pull-request", "status": "422"}

Component(s)

Release

Activity

  1. raulcd commented on Aug 5, 2026

    @raulcd
    MemberAuthor

    Ok, this also bite me on 03-binary-submit.sh. The base branch for patch releases is not maint-25.0.1 is maint-25.0.x. We should adapt release scripts to use maint-Major.Minor.X in the case of patch releases instead of the exact patch version.

  2. added a commit that references this issue on Aug 6, 2026
  3. added this to the 26.0.0 milestone on Aug 6, 2026
  4. raulcd commented on Aug 6, 2026

    @raulcd
    MemberAuthor

    Issue resolved by pull request 50813
    #50813

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions