From c90fcf747492fe16e3af5148618cc8bf395c0322 Mon Sep 17 00:00:00 2001 From: piquel Date: Fri, 20 Nov 2026 09:31:38 +0100 Subject: [PATCH 1/3] fix: just --list shows each recipe's whole summary --- just/db.just | 5 ++--- just/rust.just | 5 +++-- just/web.just | 5 ++--- justfile | 21 ++++++++++----------- 4 files changed, 17 insertions(+), 19 deletions(-) diff --git a/just/db.just b/just/db.just index 185dadb27..12561584d 100644 --- a/just/db.just +++ b/just/db.just @@ -13,8 +13,7 @@ test *ARGS: # Catches a migration that renames a column a cached query uses, and a cached # query the code no longer uses. `test` runs it last; CI runs it after its # database tests migrate the database. -# Fail unless the query cache matches exactly what the code compiles against -# TEST_DATABASE_URL's migrated schema. +# Fail unless the query cache matches exactly what the code compiles against TEST_DATABASE_URL's migrated schema. prepare-check: #!/usr/bin/env bash set -euo pipefail @@ -41,9 +40,9 @@ _prepare *ARGS: # DATABASE_URL, TEST_DATABASE_URL and libpq's PG* variables point at the cluster, # which listens only on a socket under /tmp (socket paths are limited to about 100 # bytes, which a long TMPDIR can exceed). Needs the PostgreSQL 18 server binaries. -# Run a command against a throwaway migrated cluster, e.g. `just db scratch -- psql`. # Every test fixture pools a few connections, and nextest runs one test per core, # so the cluster allows more than PostgreSQL's hundred. +# Run a command against a throwaway migrated cluster, e.g. `just db scratch -- psql`. [positional-arguments] scratch *ARGS: #!/usr/bin/env bash diff --git a/just/rust.just b/just/rust.just index 0818f54a2..78e59648c 100644 --- a/just/rust.just +++ b/just/rust.just @@ -25,6 +25,7 @@ fmt-check: # The workspace pass unifies features, so a crate's own tests can compile only # because another crate's dev-dependency enables a feature such as `test-util`. # Linting each crate alone too catches that. +# Clippy over the workspace, then over each crate alone, with warnings denied. lint: #!/usr/bin/env bash set -euo pipefail @@ -37,9 +38,9 @@ lint: unused: @cargo machete -# Advisories, licenses, wildcard requirements and sources other than crates.io, -# as deny.toml configures them. Every feature is on, so the audit covers what +# deny.toml configures the checks. Every feature is on, so the audit covers what # the SDKs' features pull in even when no workspace crate enables them. +# Advisories, licenses, wildcard requirements and sources other than crates.io, by cargo-deny. audit: @cargo deny --all-features check diff --git a/just/web.just b/just/web.just index 4f168b5ef..4110bd6de 100644 --- a/just/web.just +++ b/just/web.just @@ -12,8 +12,7 @@ fmt-check: lint: @pnpm lint -# The TypeScript SDK's unit tests, every shared vector included, with line, branch -# and function coverage of its sources. +# The TypeScript SDK's unit tests, every shared vector included, with line, branch and function coverage of its sources. test: @pnpm test @@ -26,7 +25,7 @@ smoke: @pnpm --filter @sourceorigin/auth exec node test/smoke/workerd.js # Builds the TypeScript SDK first, as browser-client.spec.ts serves the built package. -# Requires a running auth service; see tests/browser/README.md. +# Run the browser suite against a running auth service; see tests/browser/README.md. [positional-arguments] test-browser *ARGS: @pnpm --filter @sourceorigin/auth build diff --git a/justfile b/justfile index 82762bb13..54e77c076 100644 --- a/justfile +++ b/justfile @@ -28,24 +28,24 @@ validate: fmt lint unused check test web::test doc doc-test audit install: @pnpm install --frozen-lockfile -# Cargo tools used by the test, coverage, audit, database and docs recipes. CI -# installs mdBook and lychee at the same versions. +# CI installs mdBook and lychee at the same versions. +# Install the Cargo tools the test, coverage, audit, database and docs recipes use. install-tools: db::install-sqlx @cargo install --locked cargo-nextest cargo-llvm-cov cargo-deny cargo-machete cargo-semver-checks @cargo install --locked mdbook@0.5.4 lychee@0.24.2 -# Publish the SDKs: the Rust crates to crates.io, then @sourceorigin/auth to npm, -# skipping versions already published; see docs/dev/releasing.md. `--dry-run` +# Skips versions already published; see docs/dev/releasing.md. `--dry-run` # packages and builds them without uploading; `--allow-dirty` allows uncommitted # changes. +# Publish the SDKs: the Rust crates to crates.io, then @sourceorigin/auth to npm. [positional-arguments] publish *ARGS: @cargo xtask publish "$@" -# Release the workspace version from the latest main: publish the SDKs, tag the -# commit, create its GitHub release and close its milestone; see -# docs/dev/releasing.md. `--dry-run` runs the checks and the publish dry run, and -# only prints the other steps and the release notes. +# Publishes the SDKs, tags the commit, creates its GitHub release and closes its +# milestone. `--dry-run` runs the checks and the publish dry run, and only prints +# the other steps and the release notes. +# Release the workspace version from the latest main; see docs/dev/releasing.md. [positional-arguments] release *ARGS: @cargo xtask release "$@" @@ -107,9 +107,8 @@ coverage *ARGS: sdk-vectors: @UPDATE_SDK_VECTORS=1 cargo nextest run --locked -p sourceorigin-crypto --test sdk_vectors -# Regenerate the TypeScript SDK's wire types and shared constants, -# packages/auth/src/protocol.ts, from sourceorigin_common::protocol; `just test` -# fails while the committed file is stale. +# `just test` fails while the committed file is stale. +# Regenerate the TypeScript SDK's wire types and shared constants, packages/auth/src/protocol.ts, from sourceorigin_common::protocol. sdk-types: @UPDATE_SDK_TYPES=1 cargo nextest run --locked -p sourceorigin-common --lib protocol::typescript From 0f89b89418eec94fdf47d12e4192522e896e4df6 Mon Sep 17 00:00:00 2001 From: piquel Date: Fri, 20 Nov 2026 09:41:26 +0100 Subject: [PATCH 2/3] fix: recipes name their just --list summary with [doc], keeping their comments --- just/db.just | 7 +++++-- just/rust.just | 7 ++++--- just/web.just | 7 +++++-- justfile | 25 +++++++++++++++---------- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/just/db.just b/just/db.just index 12561584d..5403963ab 100644 --- a/just/db.just +++ b/just/db.just @@ -13,7 +13,9 @@ test *ARGS: # Catches a migration that renames a column a cached query uses, and a cached # query the code no longer uses. `test` runs it last; CI runs it after its # database tests migrate the database. -# Fail unless the query cache matches exactly what the code compiles against TEST_DATABASE_URL's migrated schema. +# Fail unless the query cache matches exactly what the code compiles against +# TEST_DATABASE_URL's migrated schema. +[doc("Fail unless the query cache matches the code against TEST_DATABASE_URL's schema.")] prepare-check: #!/usr/bin/env bash set -euo pipefail @@ -40,9 +42,10 @@ _prepare *ARGS: # DATABASE_URL, TEST_DATABASE_URL and libpq's PG* variables point at the cluster, # which listens only on a socket under /tmp (socket paths are limited to about 100 # bytes, which a long TMPDIR can exceed). Needs the PostgreSQL 18 server binaries. +# Run a command against a throwaway migrated cluster, e.g. `just db scratch -- psql`. # Every test fixture pools a few connections, and nextest runs one test per core, # so the cluster allows more than PostgreSQL's hundred. -# Run a command against a throwaway migrated cluster, e.g. `just db scratch -- psql`. +[doc("Run a command against a throwaway migrated cluster, e.g. `just db scratch -- psql`.")] [positional-arguments] scratch *ARGS: #!/usr/bin/env bash diff --git a/just/rust.just b/just/rust.just index 78e59648c..d9b875e94 100644 --- a/just/rust.just +++ b/just/rust.just @@ -25,7 +25,7 @@ fmt-check: # The workspace pass unifies features, so a crate's own tests can compile only # because another crate's dev-dependency enables a feature such as `test-util`. # Linting each crate alone too catches that. -# Clippy over the workspace, then over each crate alone, with warnings denied. +[doc("Clippy over the workspace, then over each crate alone, with warnings denied.")] lint: #!/usr/bin/env bash set -euo pipefail @@ -38,9 +38,10 @@ lint: unused: @cargo machete -# deny.toml configures the checks. Every feature is on, so the audit covers what +# Advisories, licenses, wildcard requirements and sources other than crates.io, +# as deny.toml configures them. Every feature is on, so the audit covers what # the SDKs' features pull in even when no workspace crate enables them. -# Advisories, licenses, wildcard requirements and sources other than crates.io, by cargo-deny. +[doc("Advisories, licenses, wildcards and sources other than crates.io, by cargo-deny.")] audit: @cargo deny --all-features check diff --git a/just/web.just b/just/web.just index 4110bd6de..96704fc4b 100644 --- a/just/web.just +++ b/just/web.just @@ -12,7 +12,9 @@ fmt-check: lint: @pnpm lint -# The TypeScript SDK's unit tests, every shared vector included, with line, branch and function coverage of its sources. +# The TypeScript SDK's unit tests, every shared vector included, with line, branch +# and function coverage of its sources. +[doc("The TypeScript SDK's unit tests and shared vectors, with coverage of its sources.")] test: @pnpm test @@ -25,7 +27,8 @@ smoke: @pnpm --filter @sourceorigin/auth exec node test/smoke/workerd.js # Builds the TypeScript SDK first, as browser-client.spec.ts serves the built package. -# Run the browser suite against a running auth service; see tests/browser/README.md. +# Requires a running auth service; see tests/browser/README.md. +[doc("Run the browser suite against a running auth service; see tests/browser/README.md.")] [positional-arguments] test-browser *ARGS: @pnpm --filter @sourceorigin/auth build diff --git a/justfile b/justfile index 54e77c076..50fb28a2d 100644 --- a/justfile +++ b/justfile @@ -28,24 +28,27 @@ validate: fmt lint unused check test web::test doc doc-test audit install: @pnpm install --frozen-lockfile -# CI installs mdBook and lychee at the same versions. -# Install the Cargo tools the test, coverage, audit, database and docs recipes use. +# Cargo tools used by the test, coverage, audit, database and docs recipes. CI +# installs mdBook and lychee at the same versions. +[doc("Install the Cargo tools the test, coverage, audit, database and docs recipes use.")] install-tools: db::install-sqlx @cargo install --locked cargo-nextest cargo-llvm-cov cargo-deny cargo-machete cargo-semver-checks @cargo install --locked mdbook@0.5.4 lychee@0.24.2 -# Skips versions already published; see docs/dev/releasing.md. `--dry-run` +# Publish the SDKs: the Rust crates to crates.io, then @sourceorigin/auth to npm, +# skipping versions already published; see docs/dev/releasing.md. `--dry-run` # packages and builds them without uploading; `--allow-dirty` allows uncommitted # changes. -# Publish the SDKs: the Rust crates to crates.io, then @sourceorigin/auth to npm. +[doc("Publish the SDKs: the Rust crates to crates.io, then @sourceorigin/auth to npm.")] [positional-arguments] publish *ARGS: @cargo xtask publish "$@" -# Publishes the SDKs, tags the commit, creates its GitHub release and closes its -# milestone. `--dry-run` runs the checks and the publish dry run, and only prints -# the other steps and the release notes. -# Release the workspace version from the latest main; see docs/dev/releasing.md. +# Release the workspace version from the latest main: publish the SDKs, tag the +# commit, create its GitHub release and close its milestone; see +# docs/dev/releasing.md. `--dry-run` runs the checks and the publish dry run, and +# only prints the other steps and the release notes. +[doc("Release the workspace version from the latest main; see docs/dev/releasing.md.")] [positional-arguments] release *ARGS: @cargo xtask release "$@" @@ -107,8 +110,10 @@ coverage *ARGS: sdk-vectors: @UPDATE_SDK_VECTORS=1 cargo nextest run --locked -p sourceorigin-crypto --test sdk_vectors -# `just test` fails while the committed file is stale. -# Regenerate the TypeScript SDK's wire types and shared constants, packages/auth/src/protocol.ts, from sourceorigin_common::protocol. +# Regenerate the TypeScript SDK's wire types and shared constants, +# packages/auth/src/protocol.ts, from sourceorigin_common::protocol; `just test` +# fails while the committed file is stale. +[doc("Regenerate packages/auth/src/protocol.ts from sourceorigin_common::protocol.")] sdk-types: @UPDATE_SDK_TYPES=1 cargo nextest run --locked -p sourceorigin-common --lib protocol::typescript From bd065df5d5c7431a83fe173a24e173f3268ec3b4 Mon Sep 17 00:00:00 2001 From: piquel Date: Sat, 21 Nov 2026 15:05:49 +0100 Subject: [PATCH 3/3] fix: the features recipe names its just --list summary with [doc] --- just/rust.just | 1 + 1 file changed, 1 insertion(+) diff --git a/just/rust.just b/just/rust.just index d9b875e94..4c062c4fd 100644 --- a/just/rust.just +++ b/just/rust.just @@ -6,6 +6,7 @@ check: # The workspace unifies features, so a published crate's feature that needs # another it doesn't enable still builds there. Checking each crate with no # features, then each feature alone, builds them as a dependent might. +[doc("Check each published crate with no features, then with each feature alone.")] features: #!/usr/bin/env bash set -euo pipefail