Skip to content

SLOP-240: fix FILTER quoting in docs and tolerate quoted values - #18

Open
tosfos wants to merge 1 commit into
masterfrom
SLOP-240-filter-docs-quoting
Open

SLOP-240: fix FILTER quoting in docs and tolerate quoted values#18
tosfos wants to merge 1 commit into
masterfrom
SLOP-240-filter-docs-quoting

Conversation

@tosfos

@tosfos tosfos commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The README example set FILTER="label=... label=..." in a list-style compose environment entry; the double quotes are kept literally in the value (verified with `docker compose config`).
  • The scripts word-split $FILTER and wrap fragments in single quotes, so users following the docs got filters like '\"label=cron.extra_label=one' that match no container — jobs were silently never scheduled.
  • Fix: drop the quotes from the documented example, add an explicit warning against quoting, and strip one surrounding pair of double quotes defensively in both startup.sh and update_cron.sh so deployments that copied the old example recover automatically.

Jira: SLOP-240

Test plan

  • Corrected compose snippet validated with `docker compose config`: FILTER resolves without quote characters
  • Quoted legacy value through the filter-building loop now yields clean --filter label=... args (identical to unquoted input)
  • shellcheck --shell=sh + sh -n clean on both scripts

The README example set FILTER="..." in a list-style compose
environment entry, where the double quotes are kept literally in the
value. Word-splitting then produced filters starting/ending with quote
characters that match no container, so jobs were silently never
scheduled for users following the docs.

Drop the quotes from the documented example, warn against quoting,
and strip a surrounding pair of double quotes defensively in
startup.sh/update_cron.sh so existing deployments recover.
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c765bb8a-e873-4327-866d-e5dfd67466c4


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

🐳 The image based on be372092 commit has been built with 20260822-18 tag as ghcr.io/wikiteq/cron:20260822-18

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