Skip to content

Commit 38fa771

Browse files
committed
ci: adjust bazel preset execution
This commit adjusts the bazel preset for Renovate to improve its behavior. The executionMode is changed from 'branch' to 'update' to prevent cases where multiple updates in the same branch by different managers would cause commands not to run. Additionally, with native Bazel support now available in Renovate, the pnpm install command is no longer necessary and has been removed. The bazel mod deps command is now run directly. To reduce the frequency of pull requests, especially new ones being opened immediately after a merge, the cross-repository updates are now scheduled to run every two hours.
1 parent d776aff commit 38fa771

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

renovate-presets/default.json5

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@
4545
postUpgradeTasks: {
4646
commands: [
4747
'git restore .npmrc || true', // In case `.npmrc` avoid a hard error.
48-
'pnpm install --frozen-lockfile',
49-
'pnpm bazel mod deps --lockfile_mode=update',
48+
'bazel mod deps --lockfile_mode=update',
5049
],
51-
executionMode: 'branch',
50+
// This is theory should be `branch` but in some cases this is causing the command not to
51+
// run when in the same branch there are mixtures of update types by different managers.
52+
executionMode: 'update',
5253
},
5354
matchManagers: ['bazel', 'bazel-module', 'bazelisk'],
5455
},
@@ -103,7 +104,7 @@
103104
followTag: 'next',
104105
minimumReleaseAge: null,
105106
separateMajorMinor: false,
106-
schedule: ['at any time'],
107+
schedule: ['0 */2 * * *'], // Every two hours.
107108
matchPackageNames: [
108109
'@angular-devkit/**',
109110
'@angular/**',

0 commit comments

Comments
 (0)