Skip to content

build(sentry): Exec the sentry image's Python entrypoint - #4536

Merged
oioki merged 2 commits into
masterfrom
alextarasov/sentry-python-entrypoint
Sep 29, 2026
Merged

oioki merged 2 commits into
masterfrom
alextarasov/sentry-python-entrypoint

Conversation

@oioki

@oioki oioki commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Exec /docker_entrypoint.py from sentry/entrypoint.sh instead of sourcing /docker-entrypoint.sh. getsentry/sentry#125892 ports the sentry image's entrypoint to Python and keeps the .sh only as a shim for this call, so it can be removed once this lands.

Also fixes sentry-admin.sh --help, which ran the container a second time with the whole help text as the command. The old bash entrypoint echoed that argument in its error message, so the help still appeared by accident; with the Python entrypoint (already in :nightly) it printed only a traceback and test_sentry_admin failed. --help now starts one container instead of two.

Prep for moving the sentry image to a distroless base.

Call /docker_entrypoint.py directly instead of sourcing /docker-entrypoint.sh, which getsentry/sentry#125892 turns into a compatibility shim so it can be removed.
rename_sentry_bin_in_help_output already receives the help output as $1, but it ran the container again with its own arguments, passing the whole help text as the command. The bash entrypoint echoed that argument in its error message, so the help text still appeared by accident; the Python entrypoint in the current sentry image doesn't, so --help printed only a traceback.
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Coverage Results 📊

✅ 22 passed | Total: 22 | Pass Rate: 100% | Execution Time: 10m 55s

📊 Comparison with Base Branch

Metric Change
Total Tests —
Passed Tests —
Failed Tests —
Skipped Tests —

✨ Test counts unchanged from base.

All tests are passing successfully.

✅ Patch coverage is 100.00% (no changed executable lines found; target 50%).
Project statement coverage is 95.54% (unchanged from base (85ef848) to head (c6ccbaf)).

Coverage diff
@@            Coverage Diff             @@
##        master     #4536       +/-##
==========================================
  Coverage    95.54%    95.54%        —%
==========================================
  Files            5         5         —
  Tracked lines       336       336         —
  Branches         0         0         —
==========================================
  Hits           321       321         —
  Misses          15        15         —
  Partials         0         0         —

Generated by Coverage Action

@oioki
oioki marked this pull request as ready for review September 29, 2026 20:59
@oioki
oioki merged commit 49e367f into master Sep 29, 2026
22 checks passed
@oioki
oioki deleted the alextarasov/sentry-python-entrypoint branch September 29, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants