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

Onboard Renovate to repo. #105

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

cevich
Copy link
Member

@cevich cevich commented Mar 28, 2024

No description provided.

@cevich cevich requested a review from lmilbaum March 28, 2024 13:52
@cevich
Copy link
Member Author

cevich commented Mar 28, 2024

Note: I named it json5 instead of json because the former allows comments. But I can rename to json if that's preferred.

Copy link
Collaborator

@lmilbaum lmilbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lmilbaum
Copy link
Collaborator

Note: I named it json5 instead of json because the former allows comments. But I can rename to json if that's preferred.

The json5 is actually preferred. The location might be a problem if the repo is synced to gitlab at some point.
Would it make sense to get the Renovate team to agree on the format and location?

@cevich
Copy link
Member Author

cevich commented Mar 28, 2024

Would it make sense to get the Renovate team to agree on the format and location?

Edit: ...deleted... I didn't read carefully enough.

@cevich
Copy link
Member Author

cevich commented Mar 28, 2024

The json5 is actually preferred. The location might be a problem if the repo is synced to gitlab at some point.
Would it make sense to get the Renovate team to agree on the format and location?

I'm assuming "Renovate team" means upstream?

Docs: https://docs.renovatebot.com/config-overview/#repository-config

If the repos are sync'd I think we specifically don't want renovate operating on them twice. We'd end up with PRs/MRs on the same topic in different systems. Unless I'm misunderstanding the question.

@lmilbaum
Copy link
Collaborator

The json5 is actually preferred. The location might be a problem if the repo is synced to gitlab at some point.
Would it make sense to get the Renovate team to agree on the format and location?

I'm assuming "Renovate team" means upstream?

No. I referred to our internal Renovate team

Docs: https://docs.renovatebot.com/config-overview/#repository-config

If the repos are sync'd I think we specifically don't want renovate operating on them twice. We'd end up with PRs/MRs on the same topic in different systems. Unless I'm misunderstanding the question.

That is a valid argument. Let me try with a different use case. What if the repo migrated to gitlab?

@lmilbaum
Copy link
Collaborator

Please rebase

Signed-off-by: Chris Evich <[email protected]>
@cevich cevich force-pushed the onboard_renovate branch from 0b42bdd to 2d85db2 Compare March 28, 2024 18:16
@cevich
Copy link
Member Author

cevich commented Mar 28, 2024

force-push: rebased

@rhatdan
Copy link
Member

rhatdan commented Mar 28, 2024

LGTM

@rhatdan rhatdan merged commit df1c29b into containers:main Mar 28, 2024
3 checks passed
@cevich
Copy link
Member Author

cevich commented Mar 29, 2024

That is a valid argument. Let me try with a different use case. What if the repo migrated to gitlab?

Just to follow up on this. I think we're still okay in case of migration. It seems to me reasonable to expect some items like adding a .gitlab-ci.yml and reviewing repo settings is "normal" for a migration.

In fact I could be wrong about renovate + gitlab ignoring .github/ files. Searching there IIUC, is part of the bot's logic and it may not care what's actually hosting the repo.

@lmilbaum
Copy link
Collaborator

That is a valid argument. Let me try with a different use case. What if the repo migrated to gitlab?

Just to follow up on this. I think we're still okay in case of migration. It seems to me reasonable to expect some items like adding a .gitlab-ci.yml and reviewing repo settings is "normal" for a migration.

In fact I could be wrong about renovate + gitlab ignoring .github/ files. Searching there IIUC, is part of the bot's logic and it may not care what's actually hosting the repo.

I don't want to drill into it. We can always wait until such a use case is actually happen and then take action.
Just a food for thought. What is the advantage of having the renovate config file "hidden" inside the .github folder?

@cevich
Copy link
Member Author

cevich commented Apr 1, 2024

What is the advantage of having the renovate config file "hidden" inside the .github folder?

Purely organizational, as it serves no direct function in the project, i.e. I see it as a kind of meta-config. It also keeps the repo-root ("Prime real-estate") clutter-free. But I don't have very a strong opinion, if it needs to live at the root for consistency with other projects, I'm fine with that.

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

Successfully merging this pull request may close these issues.

3 participants