Repository navigation
principles: Database extensions principle, two-mode currency - #33
Merged
Merged
Conversation
scripts/currency.sh takes one mode, report or upgrade, ported from docproc's shape: each scan emits "<item> <pin> <latest>" lines, and both modes read the same scans, so upgrade moves exactly what report lists. mise run currency runs report; mise run upgrade runs upgrade, replacing the inline task that moved Go before the mise pins. Decisions: - upgrade order: mise pins, then each module's go directive, direct requirements, and tidy (under `mise exec -- go`, so the Go just pinned is used), then action pins, image: lines, Dockerfile FROM tags, and Dockerfile source ARGs. The image-line scan is upgraded too, after the actions, before the FROM tags. - Report lines take docproc's "<where>: <item> <pin> -> <latest>" form; the go directive now reads "go 1.26 -> 1.27" (was "go 1.26 -> go 1.27"). Report runs the scans in upgrade's order. - mise tools are upgraded by naming each unheld trailing tool to `mise upgrade --bump --no-global`; --no-global replaces the deprecated --local. - A hold matches an anchored "<item> <pin>: " prefix, the item and pin regex-escaped. HOLDS ships empty in mise.toml's [env]. - Left out from docproc: Go-source image pins, tool modules, per-tool upgrades. - STANDARDS.md points to database-extensions.md (arrives in slice 4).
… carries the script (comments)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v1.data.extensions · task 5/5 · principles
Summary
(
standards/go-elemental/principles/database-extensions.md), listed in both Go Elementalindexes, with four rules:
and CI" cover a source a Dockerfile builds, pinned by a build argument.
scripts/currency.shnow has two modes.mise run currencyrunsreport, andmise run upgraderunsupgrade, which replaces the inline upgrade task.upgrademoves every pin thatreportlists, in this order: mise pins, Go modules, actionpins,
image:lines,FROMtags, source ARGs.HOLDS, which ships empty.postgresmodulenow requires go-database v0.13.0, with an Unreleased changelog entry.
STANDARDS.mdpoint to the new page, and sqlate's guide no longer says thepgvector ARG is raised by hand.
Core changes
Each example link is pinned at a tag, and the page states no repository's version or state.
Why: the strategy was in a coordinator note that no review could cite, and that note had fallen
behind the code in four places.
scripts/currency.sh report|upgrade: both modes run the same scans, so upgrade can'tdisagree with currency. Why: neither repository's upgrade moved action pins,
FROMtags orARGs, it read no holds, and it ran Go before the mise pins. Rolling currency rules out all
four.
reports and upgrade moves, with no hand-raise exception.
Verify
mise run check: ✓ sqlate, ✓ go-database · architecturescripts/check.sh: ✓ all checks passedmise run currency; echo $?prints nothing trailing and0.mise run upgrade && git status --shortprints noupgrade:lines andleaves no change.
cmp sqlate/scripts/currency.sh go-database/scripts/currency.shexits 0 with no output.jdx/mise-actionto v5.2.0,FROMtopostgres:18.4-alpine, andPGVECTOR_VERSIONto 0.8.6.mise run currencylists all three and exits 1.mise run upgradeprints threeupgrade:lines and restores them, after which currencyexits 0.
pgvector/pgvector 0.8.6: <reason>toHOLDS. The upgradeleaves the ARG, and currency prints
… held: <reason>and exits 0.architecture/standards/go-elemental/principles/database-extensions.md. It should stateonly rules (a)–(d), with no build flags, catalog names, metric table, sqlint syntax or shipper
rule.
Decided without you
postgres/pgvector/v0.1.0, notv0.8.0,because
v0.8.0predates the pgvector build. It also links go-database's examples atv0.13.0andpostgres/pgvector/v0.1.0.already provisioned can migrate under a role that can't install extensions.
sqlint doesn't read the
native:header.go 1.26 -> go 1.27intogo 1.26 -> 1.27. It also movesimage:lines, runs Go throughmise exec, and usesmise upgrade --bump --no-globalin place of the deprecated--local.# See docs/features.mdfrom the shared script, since go-databasehas no
docs/;release-and-ci.mdnow names theimage:lines the script already read.highest semver git tag, because pgvector publishes no releases.
toolchainline from agodirective that is otherwisecurrent, which the old upgrade did. No
go.modhas one today.Redirects and escalations
mise run upgradeto move every pin inthis task rather than in the backlog. Answer: yes.
Merge danger: two-way door · blast radius: docs, dev scripts and task wiring in sqlate,
go-database and architecture; no tag. sqlate and go-database merges wait on CI; architecture's
doesn't.
Needs you: none
Sync
references.md: the twopostgres/pgvectorsub-modules, plus pgvector and pgvector-go asupstream sources.
roadmap/v1.data.extensions.toml: delete. Its pending summary and repos fixes lapse withit.
context/postgres-extensions.md: delete, with itscontext/README.mdentry.context/data-intelligence.md: point the goal bullet and evidence 10 at the new page, and addthe
database/sqltext-format capstone check.context/migration-sets.md: drop the note pointer, and add "no shipped set needs an extensionyet".
roadmap/sqlate-test-tier.tomlandroadmap/sqlate-extension-match.toml: create, and add bothto
backlog.roadmap/index.toml: removev1.data.extensionsfromactive.