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

Use deep clone for SpaceDockAdder #315

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

HebaruSan
Copy link
Member

Problem

We've been getting spammed by these every 5 minutes:

image

Cause

The CKAN checkbox came unchecked for this mod on SpaceDock, so I re-checked it, which caused the webhooks to put an entry into the SpaceDockAdder's input queue for it.

The SpaceDockAdder then fails to process it, leaves it in the queue, and tries again in 5 minutes. This happens because KSP-CKAN/NetKAN#9778 is still open and its branch still exists, so the adder fails to push the branch, because it's using a shallow clone.

This is the same problem that the AutoFreezer was having in #302.

Changes

Just like #303 did for the AutoFreezer, the SpaceDockAdder now uses a deep clone, which will allow it to re-use existing branches.

@HebaruSan HebaruSan added Bug Something isn't working Environment It's about the dev/prod environment SpaceDock Adder Receives indexing requests and generates PRs. labels Sep 5, 2023
@HebaruSan HebaruSan merged commit cdb4ec7 into KSP-CKAN:master Sep 5, 2023
2 of 3 checks passed
@HebaruSan HebaruSan deleted the fix/adder-deep-clone branch September 5, 2023 16:50
@HebaruSan
Copy link
Member Author

HebaruSan commented Sep 5, 2023

Didn't work. ☹️

... oh right, changes to prod-stack.py don't deploy automatically! I always forget that.
Hey @techman83, could you please apply these changes in production?

@techman83
Copy link
Member

I was going to do this, but was feeling a bit under the weather. Thanks @HebaruSan - I'll nudge this out shortly!

@HebaruSan
Copy link
Member Author

HebaruSan commented Sep 6, 2023

Oh no, get well soon! 🤒

... and that worked! 🎉 KSP-CKAN/NetKAN#9778 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Environment It's about the dev/prod environment SpaceDock Adder Receives indexing requests and generates PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants