Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/usage/mend-hosted/.pages
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ title: Mend-hosted Apps
nav:
- 'Overview': 'overview.md'
- 'Configuration': 'hosted-apps-config.md'
- 'Job Scheduling': 'job-scheduling.md'
- 'Credentials': 'credentials.md'
- 'Migrating Secrets': 'migrating-secrets.md'
38 changes: 38 additions & 0 deletions docs/usage/mend-hosted/job-scheduling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Job Scheduling & Renovate Status

Mend Renovate Cloud will automatically schedule Renovate jobs to be run on installed repos.
When the scheduler runs, selected repositories are added to the Job Queue, and eventually executed by the job runners.

## Job Schedulers

There are four types of job schedulers, each with a different frequency and selection of repositories.

| Job Scheduler | Frequency | Renovate statuses |
| ------------- | ------------ | ------------------------------------------------------ |
| Active jobs | 4-hourly (1) | new, activated |
| Inactive jobs | Daily | onboarded, onboarding, silent, failed |
| Blocked | Weekly | timeout, resource-limit, kernel-out-of-memory, unknown |
| All repos | Monthly | All installed repos (including disabled) |

(1) Renovate Enterprise jobs are scheduled every hour for repositories on GitHub and Azure DevOps.

## Renovate Status

Each repository installed with Renovate Cloud has a Renovate Status. The Renovate Status is used by the job scheduler to determine which repositories will be selected.
The status appears in the list of repositories shown on the Org page of the Developer Portal.

The table below describes all the Renovate statuses.

| Renovate Status | Description | Schedule |
| -------------------- | ----------------------------------------------------- | -------- |
| <-blank-> | New repo. Renovate has never run on this repo. | Hourly |
| onboarding | Onboarding PR has not been merged | Daily |
| onboarded | Onboarding PR has been merged. No Renovate PRs merged | Daily |
| activated | At least one Renovate PR has been merged | Hourly |
| silent | Renovate will run, but not deliver PRs or issues | Daily |
| failed | An error occurred while running the last job | Daily |
| timeout | A timeout occurred while running the last job | Weekly |
| kernel-out-of-memory | An OOM error occurred while running the last job | Weekly |
| resource-limit | A resource limit was hit while running the last job | Weekly |
| unknown | An unknown error occurred while running the last job | Weekly |
| disabled | Renovate will not run on this repository | Monthly |
2 changes: 1 addition & 1 deletion lib/modules/manager/gomod/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { UpdateDependencyConfig } from '../types';

function getNameWithNoVersion(name: string): string {
// remove version suffixes like /v1 or /v2
let nameNoVersion = name.replace(/\/v\d+$/, '');
let nameNoVersion = name.replace(regEx(/\/v\d+$/), '');
// gopkg.in is a special case where the major version is added with a dot rather than a slash
if (nameNoVersion.startsWith('gopkg.in')) {
nameNoVersion = nameNoVersion.replace(regEx(/\.v\d+$/), '');
Expand Down
6 changes: 3 additions & 3 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ ARG BASE_IMAGE_TYPE=slim
# --------------------------------------
# slim image
# --------------------------------------
FROM ghcr.io/renovatebot/base-image:9.61.0@sha256:938341cddf2d8f8721524a1426aaf9dcce50d4e7763281788f71695b790fd230 AS slim-base
FROM ghcr.io/renovatebot/base-image:9.61.1@sha256:bf8e25316042b2f8ff58a1e00aa8c6e71206da10635034599565fbee472813d6 AS slim-base

# --------------------------------------
# full image
# --------------------------------------
FROM ghcr.io/renovatebot/base-image:9.61.0-full@sha256:6c0c8bb6f75e8c776baffb4d56e8bb7e6a4cf32d255396bcbd69a5f007c34b6c AS full-base
FROM ghcr.io/renovatebot/base-image:9.61.1-full@sha256:a51a0db4c0867028489132477e8e4ebdb1f3dd0a01f1e3727520e1d7ca8f3e13 AS full-base

ENV RENOVATE_BINARY_SOURCE=global

# --------------------------------------
# build image
# --------------------------------------
FROM --platform=$BUILDPLATFORM ghcr.io/renovatebot/base-image:9.61.0@sha256:938341cddf2d8f8721524a1426aaf9dcce50d4e7763281788f71695b790fd230 AS build
FROM --platform=$BUILDPLATFORM ghcr.io/renovatebot/base-image:9.61.1@sha256:bf8e25316042b2f8ff58a1e00aa8c6e71206da10635034599565fbee472813d6 AS build

# We want a specific node version here
# renovate: datasource=github-releases packageName=containerbase/node-prebuild versioning=node
Expand Down
Loading