Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkouts.cfg does not get updated anymore. Github token missing? #79

Closed
mauritsvanrees opened this issue Mar 5, 2020 · 7 comments
Closed
Assignees
Labels

Comments

@mauritsvanrees
Copy link
Sponsor Member

When a PR is merged, the package should be added to checkouts.cfg, but this no longer happens.
Problem should be somewhere in the UpdateCoredevCheckouts subscriber. Looks okay at first glance, but maybe something is in the logs?

The last time the checkouts were successfully updated on 5.1 and 5.2, was on 23 January. On 4.3 it was on 26 December which may be correct: not many changes are coming in. On 6.0 we don't yet update the checkouts automatically.

So last success was 23 January.
Aha, a few days later @gforcada made several changes, so it could be caused by one of those. Mostly version pin updates, but there is one more likely candidate: PR #76 was merged, which uses GitHub token authentication.

@gforcada Is maybe something missing here? Does a new GitHub token need to be stored on the server, or passed along somehow?

I guess production.ini on the server needs to get the new github_token value, instead of github_user and github_password.

@gforcada
Copy link
Sponsor Member

gforcada commented Mar 5, 2020

That's supposed to be like that already, I will try to have a look

@gforcada
Copy link
Sponsor Member

gforcada commented Mar 5, 2020

@mauritsvanrees do you have a specific example where I can dig on the logs to see if there is a logged error? 🤔

@mauritsvanrees
Copy link
Sponsor Member Author

plone.app.content is a recent example on 5.2:

I did some commits yesterday with the help of plone.releaser, finding various packages with changes that were not in the checkouts. Those commits have the same message (<package> has changes) that mr.roboto would add, but without the [fc] for fake commit in front of it. For example this one: plone/buildout.coredev@bedb2ba

@gforcada
Copy link
Sponsor Member

gforcada commented Mar 5, 2020

Thanks! I will try to have a look at night

@mauritsvanrees
Copy link
Sponsor Member Author

Traceback in the mr.roboto log:

  File "/srv/mr.roboto/src/mr.roboto/src/mr/roboto/subscriber.py", line 501, in run
    self.add_pacakge_to_checkouts(not_in_checkouts)
  File "/srv/mr.roboto/src/mr.roboto/src/mr/roboto/subscriber.py", line 518, in add_pacakge_to_checkouts
    self.make_commit(repo, version, user)
  File "/srv/mr.roboto/src/mr.roboto/src/mr/roboto/subscriber.py", line 534, in make_commit
    checkouts_cfg_file = repo.get_file_contents(filename, head_ref.object.sha)
AttributeError: 'Repository' object has no attribute 'get_file_contents'

@mauritsvanrees
Copy link
Sponsor Member Author

https://github.com/PyGithub/PyGithub/search?q=get_file_contents

Deprecation

353 | * Repository.get_file_contents() no longer works use Repository.get_contents() instead

mauritsvanrees added a commit that referenced this issue Apr 30, 2021
@mauritsvanrees
Copy link
Sponsor Member Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants