Skip to content

0.1.1: the #102 setup-script fix, certifi 2026.10.23, version 0.1.1 (release/0.1.x) - #105

Merged
brettheap merged 3 commits into
release/0.1.xfrom
patch/0.1.1
Nov 17, 2026
Merged

brettheap merged 3 commits into
release/0.1.xfrom
patch/0.1.1

Conversation

@brettheap

@brettheap brettheap commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The 0.1.1 patch release's contents, into the maintenance branch release/0.1.x. Do not merge yet: the release order and the landing are the coordinator's and Brett Heap's.

Ruling: opensoft/openXfactory#656 (comment) (Brett Heap, 2026-11-17).

  • Item 1: release/0.1.x is created from the commit v0.1.0 tags. It now exists at dede32b4b6f3d0f147d599776f83628c5af8ff3d, which the annotated tag v0.1.0 (tag object 9153c254) resolves to.
  • Item 2: 0.1.1 carries exactly three changes. This PR is those three changes and nothing else.

The three commits

commit change files
1a01343 The first-start setup-script fix (#102), cherry-picked with -x from main's 516560d (#103). Its patch id is identical to 516560d's (360bfba7…). both init-runtime-role.sh copies, tests_runtime/test_runtime_role_bootstrap.py
31c09b6 certifi 2026.7.22 -> 2026.10.23, by a bounded re-resolve of the lock, not a full regeneration constraints-cpython312-linux.txt
607c6ee version = "0.1.1", in the form the 0.1.0 release step took (#79): this one file, with the ruling cited above the line pyproject.toml

Diffstat against release/0.1.x: 5 files changed, 388 insertions(+), 8 deletions(-). 373 of those lines are #103 itself.

The bounded re-resolve, measured

This is the lock header's own recipe, run in a clean cpython 3.12.3 / linux x86_64 environment under every existing pin except certifi:

  • pip install --only-binary :all: -c <lock less certifi> -e ".[runtime,test]"
  • pip freeze --exclude-editable | sort

The freeze differs from the lock in one line only:

7c7
< certifi==2026.7.22
---
> certifi==2026.10.23
  • The committed pins now equal that freeze exactly.
  • The header gains one dated "Re-resolved" note beside the earlier ones.
  • certifi is transitive: httpx and httpcore require it.
  • 2026.7.22 is inside GHSA-6q48-6c7w-9gw2 (critical, >= 2019.03.09, < 2026.10.18). That is the one CRITICAL the runtime image's scan reported.
  • Not touched: .github/release-tools-cpython312-linux.txt also pins certifi 2026.7.22, hash-locked. It is the release job's build-tool environment, is not in the image, and is not "the constraints file" the ruling names.

What this PR does not do

It does not merge, tag v0.1.1, open the merge-back into main, move the openDox root pin, or dispatch release.yml. Those are the ruling's item 3 and come later, each by its own pull request or act.

CI on this base

  • validate.yml at dede32b triggers on every pull_request, with no branch filter, so validate runs on this PR.
  • This base predates the acceptance job, so validate is the only job.
  • Its runs-on is ubuntu-latest, which now resolves to ubuntu-26.04 (read from org job logs on 2026-11-17). main later pinned ubuntu-24.04. This is the suite's first run on 26.04, and the runner pin is deliberately not changed: it is outside the ruling's three changes.
  • The only rule on release/0.1.x is the organization's non-fast-forward rule. validate is not a required check there.

🤖 Generated with Claude Code

Summary by Sourcery

Prepare the 0.1.1 maintenance release with the runtime bootstrap fix, updated certifi constraint, and regression coverage.

Bug Fixes:

  • Fix first-start runtime role bootstrapping so existing migration owners are recognized correctly.
  • Update the runtime dependency lock to certifi 2026.10.23 to address the vulnerable older release.

Tests:

  • Add hermetic and PostgreSQL-backed regression coverage for runtime role bootstrap behavior across Compose and Kubernetes deployments.

Chores:

  • Set the project version to 0.1.1 for the maintenance release.

brettheap and others added 3 commits November 17, 2026 03:01
…ixes #102) (#103)

The migration-owner guard passed `:'owner'` inside `psql -c`. psql 16 sends a
-c string to the server as written and interpolates a variable only in what it
reads as input, so the server got a literal colon and answered a syntax error.
The `if !` read that as "no such role", so every first start on a fresh data
volume exited 1 with a refusal that blamed an owner which existed. The next
start skipped initialization and PostgreSQL came up healthy without the
runtime role.

The query now goes in on stdin, where `:'owner'` is interpolated. Both copies
of the script change identically and stay byte-identical. Nothing else in
either file moves, so the open edits to the same files do not conflict.

tests_runtime/test_runtime_role_bootstrap.py is new. Its DB-backed cases run
each copy of the script against a real PostgreSQL 16 and ask the catalogue
whether the runtime role, its CONNECT and USAGE grants and its default
privileges are there, and that a migration owner the database lacks is still
refused by name without a syntax error. Its hermetic cases hold that no
`psql -c` argument carries a psql variable. The existing shape cases
(test_deploy_shape.py) needed no change.

Co-authored-by: Brett Heap <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 516560d)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
….1.1)

The lock is re-resolved the way its header says, in a clean cpython 3.12.3 /
linux x86_64 environment, but under every existing pin less `certifi`
(`pip install --only-binary :all: -c <this file less certifi>
-e ".[runtime,test]"`, then `pip freeze --exclude-editable | sort`). The freeze
differs from the file in exactly one line: `certifi==2026.7.22` ->
`certifi==2026.10.23`. No other pin moved, and the header records the
re-resolve beside the earlier ones.

certifi 2026.7.22 is inside GHSA-6q48-6c7w-9gw2 (critical, ">= 2019.03.09,
< 2026.10.18"), the one CRITICAL the runtime image's scan reported. It is
transitive: `httpx` and `httpcore`, from the `runtime` extra, require it.

A full regeneration would have moved 26 pins (fastapi, starlette, pydantic,
psycopg and more) and added a package, which is not a patch release.

Ruling: opensoft/openXfactory#656 comment 6936600205, item 2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`pyproject.toml`'s version moves 0.1.0 -> 0.1.1, in the form the 0.1.0 release
step took (#79): the one file, with the ruling cited above the version line.
openDox-code keeps no changelog file, so nothing else carries the version.

0.1.1 is the patch release Brett Heap ruled: the branch `release/0.1.x`, from
the commit `v0.1.0` tags, with exactly three changes: the first-start
setup-script fix (#102, #103), `certifi` 2026.10.23 by a bounded re-resolve of
the lock, and this version. This is the last of the three.

Ruling: opensoft/openXfactory#656 comment 6936600205, item 2.

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

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 5 days and 11 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Pipe the migration-owner lookup into psql stdin in both deployment scripts so psql interpolates the owner variable instead of sending it literally through -c.

  • deploy/compose/init-runtime-role.sh L80-88
  • deploy/kubernetes/base/init-runtime-role.sh L80-88

Bump the package version to 0.1.1 for the ruled patch release.

  • pyproject.toml L23-30

Tests

Add hermetic and PostgreSQL-backed regression tests for the migration-owner guard and runtime-role bootstrap in both deployment scripts.

  • tests_runtime/test_runtime_role_bootstrap.py L1-355

Lock files and vendored code

Update the dependency lock's certifi pin to 2026.10.23 via the bounded re-resolve.

  • constraints-cpython312-linux.txt L42-47, L54

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

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T03:08:22.054958Z
We couldn’t complete this review. Comment @codex review to try again.
607c6ee Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@sonarqubecloud

Copy link
Copy Markdown

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