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

ROX-27352: Set automerge schedule to create branches at quiet time #20

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

msugakov
Copy link
Contributor

@msugakov msugakov commented Jan 3, 2025

Description

Renovate automerging started happening after #18.
I thought we need to additionally configure StackRox, Collector and Scanner repos to update our quay.io/rhacs-eng/konflux-tasks image but this seems to be happening without any extra config. Yay!
See stackrox/stackrox#13493 and stackrox/collector#2003.

What remains in the scope of https://issues.redhat.com/browse/ROX-27352 is to calm down Renovate to not send changes during our working hours.

In this change I simply restore the same after 3am and before 7am expression we use in other repos. I don't know yet whether it would be too frequent or ok.
Note that this schedule configures the time when Renovate will create new branches or refresh existing ones. In order to additionally limit the time when Renovate merges them, we could use the automergeSchedule setting. At this point, I don't see a case for us to limit that assuming that the pipeline should execute quickly enough. I suggest that we leave it out for now but have in mind for the future.

There's an obvious downside of having Renovate making and merging changes automatically - potential merge conflicts if an engineer makes a change to the step image or to tasks in the build pipeline in their PR. This is unavoidable and the only way to limit the impact is by reducing the frequency through the schedule. Again, let's start with this schedule and see if the conflicts become bothering, then we can reduce it.

Testing

None. Just ran a validator.
Will observe Renovate commits for a few days after this change gets merged.

@msugakov msugakov requested a review from tommartensen January 3, 2025 09:38
@msugakov msugakov requested a review from a team as a code owner January 3, 2025 09:38
@msugakov msugakov merged commit 3f6856d into main Jan 3, 2025
1 check passed
@msugakov msugakov deleted the misha/ROX-27352-set-renovate-schedule branch January 3, 2025 19:01
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.

2 participants