From 42db6a6a80be3800cf170b2d610c1c7a1c1c641e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rio=20Val=C3=A9rio?= Date: Sun, 9 Nov 2025 14:43:59 +0200 Subject: [PATCH 1/4] Don't warn when parsing storeOptions for 'memory' cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, a fresh Backstage installation prints the following warning at app startup: "backstage warn No configuration found for cache store 'memory' at 'backend.cache.memory'. type="cacheManager"" The 'memory' cache store does not have any extra config, like 'redis' or 'infinispan'. Warning about missing configuration can cause confusion to the users. See config here: https://github.com/backstage/backstage/blob/master/packages/backend-defaults/config.d.ts#L623 This warning was introduced here: https://github.com/backstage/backstage/pull/30743/files#diff-42975462070406316e4534ce0579d1d12d54fc5cd62e239d1ae676c1e290b473R137 Signed-off-by: Valério Valério --- .changeset/short-cloths-tie.md | 5 +++++ .../backend-defaults/src/entrypoints/cache/CacheManager.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/short-cloths-tie.md diff --git a/.changeset/short-cloths-tie.md b/.changeset/short-cloths-tie.md new file mode 100644 index 0000000000..90b84af830 --- /dev/null +++ b/.changeset/short-cloths-tie.md @@ -0,0 +1,5 @@ +--- +'@backstage/backend-defaults': minor +--- + +Don't warn when parsing storeOptions for 'memory' cache diff --git a/packages/backend-defaults/src/entrypoints/cache/CacheManager.ts b/packages/backend-defaults/src/entrypoints/cache/CacheManager.ts index 06b2b0c57b..428a4b7592 100644 --- a/packages/backend-defaults/src/entrypoints/cache/CacheManager.ts +++ b/packages/backend-defaults/src/entrypoints/cache/CacheManager.ts @@ -134,7 +134,7 @@ export class CacheManager { ): CacheStoreOptions | undefined { const storeConfigPath = `backend.cache.${store}`; - if (!config.has(storeConfigPath)) { + if (store !== 'memory' && !config.has(storeConfigPath)) { logger?.warn( `No configuration found for cache store '${store}' at '${storeConfigPath}'.`, ); From 762985b0df5a053e2952d19c6e547035c5ccf45d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rio=20Val=C3=A9rio?= Date: Wed, 19 Nov 2025 19:58:43 +0200 Subject: [PATCH 2/4] Fix Vale check failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Valério Valério --- .changeset/short-cloths-tie.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/short-cloths-tie.md b/.changeset/short-cloths-tie.md index 90b84af830..409d12c480 100644 --- a/.changeset/short-cloths-tie.md +++ b/.changeset/short-cloths-tie.md @@ -2,4 +2,4 @@ '@backstage/backend-defaults': minor --- -Don't warn when parsing storeOptions for 'memory' cache +Don't warn when parsing 'storeOptions' for 'memory' cache From b24b5780d77fcfd483c1ab81010cf5e4613ed9b5 Mon Sep 17 00:00:00 2001 From: Ben Lambert Date: Thu, 20 Nov 2025 11:31:08 +0100 Subject: [PATCH 3/4] Update warning message format in changeset Signed-off-by: Ben Lambert --- .changeset/short-cloths-tie.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/short-cloths-tie.md b/.changeset/short-cloths-tie.md index 409d12c480..1ee308c308 100644 --- a/.changeset/short-cloths-tie.md +++ b/.changeset/short-cloths-tie.md @@ -2,4 +2,4 @@ '@backstage/backend-defaults': minor --- -Don't warn when parsing 'storeOptions' for 'memory' cache +Don't warn when parsing `storeOptions` for `memory` cache From 825ebb9994326e9da1fcb11a28003f4e6f68c30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Sat, 13 Dec 2025 19:33:04 +0100 Subject: [PATCH 4/4] Update .changeset/short-cloths-tie.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/short-cloths-tie.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/short-cloths-tie.md b/.changeset/short-cloths-tie.md index 1ee308c308..fe379fb18d 100644 --- a/.changeset/short-cloths-tie.md +++ b/.changeset/short-cloths-tie.md @@ -1,5 +1,5 @@ --- -'@backstage/backend-defaults': minor +'@backstage/backend-defaults': patch --- Don't warn when parsing `storeOptions` for `memory` cache