Skip to content

baldrick pulls config from fork's master branch #111

Open
@pllim

Description

File ".../flask/_compat.py", line 39, in reraise
  raise value
        └ AssertionError(b'{"message":"No commit found for the ref master","documentation_url":...
...
File ".../baldrick/github/github_api.py", line 282, in get_file_contents
  return super().get_file_contents(path_to_file, branch=branch)
                                    │                    └ 'master'
                                    └ 'pyproject.toml'
File ".../baldrick/github/github_api.py", line 89, in get_file_contents
  assert response.ok, response.content
         │        │   │        └ <property object at 0x7f51b612ce50>
         │        │   └ <Response [404]>
         │        └ <property object at 0x7f51b612cc70>
         └ <Response [404]>

The above log, combined with what I saw in astropy/astropy#11481

baldrick.github.github_api:get_repo_config:144 - Got this combined config from
nstarman/astropy@master:

suggests that baldrick is attempting to read the config from a fork's master, not upstream.

This would explain why it stopped running for my PRs because I deleted my fork's master branch a long time ago, as suggested in https://docs.astropy.org/en/latest/development/workflow/development_workflow.html#deleting-your-master-branch .

And I clearly remember that the bot used to work despite my fork not having a master branch before but I don't remember when it stopped working. I just know it's been that way (broken) for quite some time; just didn't know why until now.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions