fix: resolve 17 bugs found during comprehensive code review#22
Merged
SimplicityGuy merged 4 commits intomainfrom Apr 4, 2026
Merged
fix: resolve 17 bugs found during comprehensive code review#22SimplicityGuy merged 4 commits intomainfrom
SimplicityGuy merged 4 commits intomainfrom
Conversation
Rename update-dependencies.sh to update-project.sh with expanded scope: - Add pre-commit autoupdate --freeze support - Scan all workflow files for GitHub Actions updates (not just build.yml) - Add docker build verification step after updates - Add --skip-tests flag and git dirty-tree warning - Use portable sed for macOS/Linux compatibility - Adopt emoji-based section logging style Also rename workflow, update dependabot with security update groups, and fix stale GitHub Action versions in build.yml. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
entrypoint.sh: - Fix CRONTAB_FILE evaluated before HOME_DIR is resolved - Fix jq pipeline crash on array-format configs (JSON/YAML) - Reject unsupported @every schedule with clear error - Remove fragile \* escape/unescape round-trip in schedule parsing - Fix [ -a ] test operator to [ -n ] for DOCKER_PORT_2375_TCP check - Add --rm to docker run to prevent container leak on every cron job - Sanitize COMMENT field to strip newlines (injection prevention) - Detect slug collisions and append counter suffix - Write scripts atomically via temp file then mv - Track onstart job PIDs and warn on non-zero exit - Warn when no config file is found - Scope IFS to read command instead of setting globally Dockerfile: - Fix LABEL created using BUILD_DATE build-arg instead of literal $(date) - Fix crond -d 7 (nearly silent) to -d 0 (most verbose) - Add gcompat for ARM glibc-linked rq binary compatibility - Validate DOCKER_GID is numeric before use CI/CD & config: - Fix update-project.yml grep pattern to match actual Dockerfile FROM lines - Fix update-project.yml update detection logic (was inverted) - Pass BUILD_DATE build-arg in build.yml - Remove deprecated docker-compose version key - Update EOL alpine:3.5 to alpine:3.21 in docker-compose and samples - Replace unsupported @every 2m with */2 * * * * in all sample configs - Fix corrupted TOML table key for logrotate entry - Fix TOML sample using ${PWD} instead of named volume - Add backups/ to .gitignore Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive bug review identified and fixes 17 issues across entrypoint.sh, Dockerfile, CI/CD workflows, and config samples.
Critical fixes
/crontabinstead of${HOME_DIR}/crontabto_entriesassumes object input; array configs (documented format) caused script exit@everyschedule silently dropped — BusyBox crond doesn't support@every; jobs never ran. Now errors clearly, samples updated to*/2 * * * *Important fixes
docker runmissing--rm, stopped containers accumulate indefinitely-d 7is nearly silent, not max debug; changed to-d 0rqbinaries fail on Alpine musl; addedgcompatLABEL created: Was literal$(date ...)string, now usesBUILD_DATEbuild-arg[ -a ]tests file existence, not variable non-emptinessmv'd into placewait+ exit status warning\*escape/unescape round-tripIFSset moved toreadcommand scopeTest plan
docker build -t crontab .config.sample.json)config.sample.mapping.json)config.sample.toml)@everyschedule produces clear error message${HOME_DIR}/crontabpath--rmis present in generated docker run commandsdocker inspectlabels show BUILD_DATE value🤖 Generated with Claude Code