Skip to content

fix(ci): stop creating MinIO ILM rules from the baked cache helper - #19

Merged
slayerjain merged 1 commit into
mainfrom
fix/ci-no-ilm-rules
Aug 13, 2026
Merged

fix(ci): stop creating MinIO ILM rules from the baked cache helper#19
slayerjain merged 1 commit into
mainfrom
fix/ci-no-ilm-rules

Conversation

@slayerjain

Copy link
Copy Markdown
Member

Why

The minio-cache helper baked into the keploy-ci-node and keploy-ci-playwright images runs mc ilm rule add ... || true on every cache save. Despite the comment, this is not idempotent — MinIO appends a duplicate lifecycle rule on every call. Accumulated duplicates hit MinIO's hard cap of 1000 rules per bucket on 2026-08-13, breaking retention enforcement and contributing to the CI storage outage. (Companion PRs already merged: enterprise#2375, api-server#1972, enterprise-ui#1684, playwrightDB#31.)

What

Remove the mc ilm rule add call from both copies of the helper; retention is owned by the server-side canonical rule set on the MinIO instance (applied 2026-08-13).

⚠️ Follow-up needed after merge

These scripts are baked into the CI base images — the fix only takes effect once the images are rebuilt/pushed and consuming pipelines pick up the new tag. Until then, running pipelines keep re-adding rules (slowly, one prefix).

Verification

  • grep -rn 'mc ilm' returns nothing
  • bash -n passes on both scripts

The minio-cache helper baked into the keploy-ci-node and keploy-ci-playwright images ran 'mc ilm rule add' on every cache save. The command is not idempotent - each call appends a duplicate lifecycle rule, and the accumulated duplicates hit MinIO's hard cap of 1000 rules on 2026-08-13, breaking retention enforcement bucket-wide. Retention is now owned by the server-side canonical rule set on the MinIO instance, so the helper must not manage lifecycle rules.

Signed-off-by: Shubham Jain <shubhamkjain@outlook.com>
@slayerjain
slayerjain force-pushed the fix/ci-no-ilm-rules branch from d32f0ae to befaa7a Compare August 13, 2026 15:01
@slayerjain
slayerjain merged commit f267479 into main Aug 13, 2026
22 checks passed
slayerjain added a commit that referenced this pull request Aug 22, 2026
… old one (#20)

keploy-ci-lighthouse builds FROM keploy-ci:node-1.2.17, which predates the
fix in #19 and bakes a minio-cache that ran 'mc ilm rule add' on every cache
save. Duplicate lifecycle rules accumulate toward MinIO's 1000-rule cap,
which silently breaks artifact retention.

Copy the current helper into the image the way keploy-ci-playwright already
does, rather than bumping the base tag: every node tag from 1.2.24 onward is
Node 24, so a base bump would drag an unrelated Node 20 -> 24 jump into the
landing Lighthouse build.

Add a helper-parity job so the per-context copies can never drift again -
divergence between them is exactly how this regression shipped.

Signed-off-by: Shubham Jain <shubhamkjain@outlook.com>
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.

1 participant