Skip to content

fix: pin strfry image and fix health check in CI#7

Merged
matthiasdebernardini merged 6 commits intomainfrom
fix/ci-strfry-healthcheck
Mar 8, 2026
Merged

fix: pin strfry image and fix health check in CI#7
matthiasdebernardini merged 6 commits intomainfrom
fix/ci-strfry-healthcheck

Conversation

@matthiasdebernardini
Copy link
Copy Markdown
Owner

Summary

  • Pin strfry image to a specific digest (sha256:7cf3b97c...) to resolve zizmor's unpinned-images warning
  • Fix health checkcurl -sf suppresses output on HTTP errors (strfry returns 426 Upgrade Required), causing the check to always fail and timeout. Replaced with status code check that accepts any non-zero HTTP response as "ready"

Test plan

  • All existing CI jobs pass (lint, test, security audit, zizmor)
  • New integration test job passes with fixed health check

🤖 Generated with Claude Code

matthiasdebernardini and others added 6 commits March 7, 2026 20:46
Pin strfry Docker image to a specific digest to satisfy zizmor's
unpinned-images check. Replace broken health check (curl -sf fails on
HTTP 426 Upgrade Required) with status code check that accepts any
non-zero HTTP response as "ready".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The strfry image requires a config file at /app/strfry.conf. Service
containers can't mount files, so switch to docker run with a generated
default config via `strfry export-config`. Also dump container logs on
health check failure for easier debugging.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The strfry image requires a config file and export-config also needs
one (chicken-and-egg). Add a checked-in CI config with bind=0.0.0.0
(so the container is reachable from the host) and auth disabled.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
strfry needs ./strfry-db/ to exist for its LMDB database. Mount a
tmpfs at that path so the container can initialize the database.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The container's ulimit (65536) is lower than the default nofiles
setting (1000000). Setting nofiles=0 tells strfry not to attempt
changing the limit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
delete_event: list-headers returns ok=false (NO_RESULTS) when no
headers remain after deletion. Use run() instead of run_ok() and
treat NO_RESULTS as a valid post-deletion state.

add_item_and_list: event_to_json does not extract the "r" tag as a
top-level "resource" field. Check the tags array directly for the
["r", url] entry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matthiasdebernardini matthiasdebernardini merged commit 3dc0970 into main Mar 8, 2026
6 checks passed
@matthiasdebernardini matthiasdebernardini deleted the fix/ci-strfry-healthcheck branch March 8, 2026 03:08
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