-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: Repository cache git backend #34324
base: main
Are you sure you want to change the base?
Conversation
lib/util/git/repo-store.ts
Outdated
} | ||
logger.debug(`Git commit created: ${commitSha}`); | ||
|
||
const refName = `refs/renovate-data/${key}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should separate refs/renovate
from refs/renovate-data
? e.g. not refs/renovate/data/*
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we need to change the branches we do for platform-based commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise I guarantee we'll get a weird bug some day
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let's do that then. Have everything under refs/renovate/<something>/*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW I thought you used refs/renovate/branches/*
already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but maybe let's have them under refs/renovate/tmp/*
, to be clear they're subject to cleanup
const commitSha = await createCommit({ tree: treeSha, message: key }); | ||
if (!commitSha) { | ||
return; | ||
} | ||
logger.debug(`Git commit created: ${commitSha}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this something you learned from previously, that it must be a commit to be retained by github?
parents?: LongCommitSha[]; | ||
} | ||
|
||
async function createCommit({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an "orphan" commit we push?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm not sure it's okay or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it's better to create an orphan commit, with no parent, or to make it branch off the very first commit of the repo ever
Changes
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: