Skip to content

fix(chart): use a keep-alive of 100 s - #478

Merged
uniqueg merged 3 commits into
devfrom
fix/keep-alive-100
Oct 24, 2026
Merged

uniqueg merged 3 commits into
devfrom
fix/keep-alive-100

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Maintainer decision of 2026-10-24: keep-alive 100 s everywhere, matching foca.gunicorn_config (#463).

  • examples/petstore/chart/values.yaml: petstore.gunicorn.keepalive 75 → 100.
  • Library chart tests (charts/foca-common/tests/test_templates.py) and snapshots: --keep-alive 100.
  • Docs: docs/helm-chart.md (the generic keep-alive note no longer claims a chart default of 75, which the library chart doesn't have; the Traefik note now says that its 90 s are shorter than the 100 s), docs/deployment.md, and a note in the Gunicorn section of docs/migration-0.18.md for app charts that copied the example's values.
  • No chart version bump: the library chart itself (charts/foca-common outside tests/) is unchanged, and the example chart is unreleased.

Verification

  • helm lint --strict (Helm 3.22.1, as in CI) of charts/foca-common and examples/petstore/chart: passed
  • pytest charts/foca-common/tests: 203 passed
  • mkdocs build --strict: no warnings; pre-commit run --all-files: all hooks passed
  • CI: all 29 checks passed (2 skipped: image push/publish), incl. the kind installation of the petstore chart; Sourcery approved without comments.
  • Review (Helm chart, so full review): adversarial + quality reviewers, one round, no high or medium findings; doc wording lows fixed.

Declined review findings

  • Quality reviewer: the commit trailer should name another model: declined, the trailer is the one this session's attribution rules prescribe.

Open questions

None.

Closes #469

🤖 Generated with Claude Code

uniqueg and others added 3 commits October 24, 2026 16:26
The petstore example chart set gunicorn.keepalive to 75 seconds, while
foca.gunicorn_config uses 100, longer than the idle timeouts of common
proxies (60 s for ingress-nginx, 90 s for Traefik). Use 100 seconds in
the example chart, the library chart's tests and snapshots, and the
docs, so that apps have the same keep-alive with and without the chart.

Closes #469

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

The PR changes the unreleased petstore Helm example from a 75-second to a 100-second Gunicorn keep-alive, updates all affected template expectations, and revises deployment and migration documentation to align with the application default and Traefik's 90-second idle timeout. The library chart implementation is unchanged, so no chart version bump is needed.

File-Level Changes

Change Details Files
Align the example Helm chart's Gunicorn keep-alive with the 100-second application default.
  • Increase the petstore chart value from 75 to 100 seconds.
  • Update rendered-template assertions and snapshots, including quoted extra arguments, to expect --keep-alive 100.
  • Verify the library chart implementation itself is unchanged, so no chart version bump is required.
examples/petstore/chart/values.yaml
charts/foca-common/tests/test_templates.py
charts/foca-common/tests/__snapshots__/celery.yaml
charts/foca-common/tests/__snapshots__/default.yaml
charts/foca-common/tests/__snapshots__/http-route.yaml
charts/foca-common/tests/__snapshots__/ingress-https.yaml
charts/foca-common/tests/__snapshots__/mongodb-external.yaml
charts/foca-common/tests/__snapshots__/route.yaml
Update deployment guidance to explain the 100-second keep-alive and proxy timeout relationship.
  • Remove the incorrect generic claim that the library chart defaults to 75 seconds.
  • Document the petstore value as 100 seconds, matching foca.gunicorn_config.
  • Clarify that Traefik's 90-second idle timeout is shorter and that application charts copied from the example should raise their value accordingly.
  • Add migration guidance for charts inheriting the former 75-second example setting.
docs/deployment.md
docs/helm-chart.md
docs/migration-0.18.md

Assessment against linked issues

Issue Objective Addressed Explanation
#469 Set the petstore example chart and the library chart’s test expectations and snapshots to a 100-second Gunicorn keep-alive. ✅
#469 Align documentation with the 100-second keep-alive and explain the change for apps that copied the example chart’s values. ✅
#469 Verify the updated charts and documentation with the required lint, chart tests, and strict documentation build. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f6a2467) to head (c588dcb).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #478   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         3444      3444           
=========================================
  Hits          3444      3444           
Flag Coverage Δ
test_unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review October 24, 2026 15:01

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 30b2e87 into dev Oct 24, 2026
32 checks passed
@uniqueg
uniqueg deleted the fix/keep-alive-100 branch October 24, 2026 15:02
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.

fix: use a keep-alive of 100 s in charts and docs

1 participant