Skip to content

docs: warn of moving tags, check node kernels - #223

Merged
uniqueg merged 2 commits into
devfrom
docs/moving-tags-kernels
Oct 24, 2026
Merged

uniqueg merged 2 commits into
devfrom
docs/moving-tags-kernels

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Two generic additions to the deployment docs (deployment/README.md),
found while writing the notes of the ELIXIR On-Cloud deployment:

  • Image: in production, deploy a release (the chart attached to it, or a
    fixed tag or digest), not the moving tags latest or dev, which a pod
    restart may replace with another version.
  • MongoDB version: the kubectl command that lists the nodes' kernel
    versions, to check before moving to MongoDB 8.0 (SERVER-121912).

Light lane: docs only (two paragraphs and one command), no code, chart or
workflow changes; reviewed the diff myself.

Verification

  • mkdocs build --strict (docs extra of pyproject.toml): passes.
  • git diff --check: clean.

Declined review findings

None.

Open questions

None.

Closes #222

🤖 Generated with Claude Code

Summary by Sourcery

Strengthen deployment documentation with safeguards for stable production images and MongoDB 8.0 upgrades.

Enhancements:

  • Clarify deployment guidance to use immutable releases, fixed image tags, or digests instead of moving image tags in production.
  • Add guidance and a kubectl command for verifying node kernel compatibility before upgrading MongoDB to 8.0.

Documentation:

  • Update deployment documentation with production image pinning guidance and MongoDB 8.0 kernel compatibility checks.

Recommend deploying a release (chart of the release, fixed tag or
digest) instead of the moving tags `latest` and `dev`, which a pod
restart may replace with another version. Add the command that lists
the nodes' kernel versions before moving MongoDB to 8.0.

Closes #222

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 (collapsed on small PRs)

Reviewer's Guide

Updates deployment documentation with production image-pinning guidance and a node-kernel inspection command to support safer MongoDB 8.0 upgrades; no code, chart, or workflow behavior changes.

Flow diagram for production image pinning

flowchart LR
    Release[Release image or fixed tag/digest] --> Deploy[Deploy to production]
    Deploy --> Restart[Pod restart]
    Restart --> Same[Same intended image version]
    Moving[latest or dev] --> Restart
    Restart --> Changed[Tag may resolve to a new release]
Loading

File-Level Changes

Change Details Files
Add production guidance to pin deployed images to an immutable release, fixed tag, or digest instead of moving tags.
  • Explain the restart risk of latest and dev, including unexpected image/config incompatibilities.
  • Point operators to the chart attached to a release as a deployment option.
deployment/README.md
Add a pre-upgrade kernel compatibility check for MongoDB 8.0.
  • Document the kubectl get nodes custom-column command for inspecting kernel versions on eligible nodes.
  • Retain guidance to verify MongoDB version and FCV before changing an existing database image.
deployment/README.md

Assessment against linked issues

Issue Objective Addressed Explanation
#222 Warn production operators to deploy a release or a fixed image tag or digest rather than the moving latest or dev tags. ✅
#222 Document how to list node kernel versions before choosing MongoDB 8.0. ✅

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

@uniqueg
uniqueg marked this pull request as ready for review October 24, 2026 02:30
@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 (716c203) to head (3a984a9).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #223   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines         1283      1283           
=========================================
  Hits          1283      1283           

☔ 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.

@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 found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="deployment/README.md" line_range="733" />
<code_context>
+moving to 8.0, check the kernels of the nodes that MongoDB may run on:
+
+```bash
+kubectl get nodes -o custom-columns=NODE:.metadata.name,KERNEL:.status.nodeInfo.kernelVersion
+```
+
</code_context>
<issue_to_address>
**New nodes bypass kernel check**

When a node with an incompatible kernel is added or becomes eligible after the command runs but before the MongoDB upgrade, mongoDB can be scheduled onto a newly added or newly eligible node that the command did not list; MongoDB 8.0 then refuses to start, leaving the Recreate deployment unavailable.

Document that all eligible and autoscaled nodes must have compatible kernels, or constrain MongoDB to a checked compatible node pool through the upgrade.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: deployment/README.md:733


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

Comment thread deployment/README.md Resolved

@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.

Sourcery assessment

Approved.

@uniqueg
uniqueg merged commit d3be11c into dev Oct 24, 2026
19 checks passed
@uniqueg
uniqueg deleted the docs/moving-tags-kernels branch October 24, 2026 02:49
uniqueg added a commit to elixir-cloud-aai/docs that referenced this pull request Oct 24, 2026
Use the live ELIXIR On-Cloud website as the organization URL in the
service info, and link the generic notes on moving image tags and
node kernels now in the Cloud Registry docs
(elixir-cloud-aai/cloud-registry#223).

Refs #50

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

docs: warn of moving tags, check node kernels

1 participant