Skip to content
go-libfossil Today In History
Login

Today In History

This Day In History For 2028-10-26

2 Years Ago (more context)

2026-10-26
14:45
Merge pull request #513 from danmestas/test/organize-root-tests

test: move black-box tests to apitest/, consolidate root tests by source file check-in: b4ac68be08 user: [email protected] tags: main, trunk

14:36
Merge remote-tracking branch 'origin/main' into test/organize-root-tests check-in: 2bb9dc608b user: [email protected] tags: main, trunk
14:36
Merge pull request #514 from danmestas/ci/cache-release-downloads

ci: cache the pinned Fossil and zit release tarballs check-in: 38eb1f810c user: [email protected] tags: main, trunk

14:28
ci: cache the pinned Fossil and zit release tarballs

fossil-scm.org answered 503 for the Fossil release tarball, and both test jobs failed before any test ran. The checksummed tarballs are now cached by version and checksum, so fossil-scm.org and zit's server are needed only on a cache miss; a cached copy is still verified before it is installed. check-in: b65ca240f1 user: [email protected] tags: main, trunk

14:05
test: consolidate root white-box tests by source file

Merge the root package's white-box test files so each mirrors the source file it exercises (checkout, fossil, horizon, repo_checkout, repo_history, repo_merge, repo_sync, repo_ticket, repo_extras, required_content, transport), and rename single files to match their source (repo_content_cache_test.go, repo_admin_test.go, required_content_checkout_test.go). Test bodies are unchanged; only imports are consolidated. check-in: af6431af27 user: [email protected] tags: main, trunk

14:00
test: move black-box root tests to apitest/

Every package libfossil_test file in the root used only exported identifiers and shared no helpers with the white-box tests, so all 21 move to a test-only apitest package. Docs that name their location follow. check-in: 6956a92661 user: [email protected] tags: main, trunk

13:09
Merge pull request #512 from danmestas/feat/opt-in-ssh-verify

feat(sshverify): make in-process SSH signature verification opt-in check-in: 5e7ce934cd user: [email protected] tags: main, trunk

13:00
Merge remote-tracking branch 'origin/main' into feat/opt-in-ssh-verify

# Conflicts: # CHANGELOG.md check-in: 52d7948375 user: [email protected] tags: main, trunk

12:59
test: guard simio against linking SSH crypto too

simio is the third package an embedder links; the opt-in guard now checks it alongside the library and db. check-in: d79a35c16a user: [email protected] tags: main, trunk

12:49
Merge pull request #511 from danmestas/feat/wasm-tickets

feat: ticket writes, ticket reads and timeline-since check-in: e448e2e48d user: [email protected] tags: main, trunk

12:45
feat(sshverify): make in-process SSH signature verification opt-in

internal/clearsign keeps the SSH envelope, SSHSIG parsing, namespace, hash and SHA-1 checks, none of which need cryptography, and hands the key parse and signature check to an SSHVerifier that the new public package sshverify registers from init. The library therefore no longer links golang.org/x/crypto/ssh and the ECDSA, P-256, Ed25519 and RSA code it pulls in; html-artifact-publisher's TinyGo engine drops from 1,347,569 to 1,093,647 bytes gzipped (3,777,936 to 3,208,411 raw).

Without the verifier nothing is accepted unchecked: a well-formed SSH signature is ErrSSHVerifierUnavailable, which wraps ErrCannotVerify, so a seed under an SSH horizon-seed-key is refused, the held one is kept, and the sync or rebuild fails naming the package to import. Malformed signatures are still bad. The cli package (and so cmd/libfossil) and examples/tinygo import sshverify; a go list guard keeps x/crypto/ssh out of the root and db closures. check-in: a87790f468 user: [email protected] tags: main, trunk

12:39
Merge remote-tracking branch 'origin/main' into feat/wasm-tickets

# Conflicts: # CHANGELOG.md check-in: 1d8b2e6658 user: [email protected] tags: main, trunk

12:38
Merge pull request #510 from danmestas/fix/create-unsupported-stat

fix: let Create proceed when the filesystem cannot stat the parent check-in: b7e00e1673 user: [email protected] tags: main, trunk

12:30
fix: let Create proceed when the filesystem cannot stat the parent

Create's parent-directory check, added in #457, refused a path whenever os.Stat of its parent failed. Under TinyGo wasm a repository lives in a SQLite VFS and os.Stat is unsupported, so every create failed with "parent directory does not exist: /"; standard Go's js/wasm build hung on the same check. It now refuses only a parent the filesystem confirms is missing or is not a directory, and otherwise lets SQLite's own open report a real failure (tracked in #509). check-in: 2449bcd313 user: [email protected] tags: main, trunk

03:24
fix: timelineSince means arrived after, not stamped after

A sync handler asks what a push brought in. Filtering on timestamps missed an artifact made on a machine whose clock runs behind the given check-in's. TimelineSince now keeps entries whose artifacts were stored after the given one: a later receipt (blob.rcvid, which a phantom fill updates), then a higher rid. Any held artifact hash is accepted; an unknown one is an error.

Tracked in #504. check-in: 29b53e75d2 user: [email protected] tags: main, trunk

03:14
feat: ticket writes, ticket reads and timeline-since

Repo.TicketAdd and Repo.TicketSet write the ticket-change artifact stock `fossil ticket add` / `fossil ticket set` write (D, J incl. +append, K, U, Z), byte for byte, and crosslink it in the same transaction so the ticket, ticketchng and event rows read back at once. TicketOpts.Comment is stored as the stock ticket forms store a remark: icomment with login, username and mimetype.

Repo.TicketList, Repo.TicketChanges and Repo.TimelineSince expose the reads the html-artifact-publisher engine needs, as JSON-ready values. manifest.Timeline gains Kinds and Since to back TimelineSince.

Tracked in #503 and #504. check-in: 68f2c3d930 user: [email protected] tags: main, trunk

02:38 • Edit [89f09bf179]: Add tag "v0.16.2" with note "Release v0.16.2

Reading and committing without the whole tree: - Repo.ReadBlob reads one artifact by its hash, with the same availability and horizon checks as ReadFile. - Repo.SetContentCache attaches an optional, byte-bounded cache that ReadFile, ReadFileAt, ReadBlob, ListFiles, ListFilesIn, Diff and Annotate share. Off by default; any write through the Repo empties it. - Repo.ListFilesIn lists a check-in's files narrowed to a Cone, skipping sub-manifests the cone cannot reach, so it works over a sparse store where ListFiles fails. - FileToCommit.UUID carries an unchanged file into a check-in by its hash, with no content, so a PartialManifest commit need not re-read the tree. A carried UUID must be a lowercase SHA1 or SHA3-256 hash. - Tree manifests parse each distinct sub-manifest once per cache (draft-fossil-submanifests-00 §7.4).

Horizons: - An origin dates a seed no earlier than the latest D it has minted, so shunning and purging a tag no longer sends structural clones back to the content horizon (§5.2.2). The minted D is kept across restarts. - OriginNamer lets an embedder's Transport keep a horizon cursor per origin (§6.2.6). - Four partial horizon conformance rows are now covered (73 of 76). CI interop is pinned to zit 0.7.3, which carries the same minted floor.

Fixed: - Create with no user configured no longer panics; the default login follows fossil: FOSSIL_USER, USER, LOGNAME, USERNAME, else root.

Known limitation (#506): a seed completed as a delta in a later round is refused but kept inert, where the draft says it is never kept.

See CHANGELOG.md for the full list.". artifact: 2377062570 user: [email protected]

02:38
Merge pull request #508 from danmestas/release/v0.16.2

chore(release): v0.16.2 check-in: 89f09bf179 user: [email protected] tags: main, trunk, v0.16.2

01:42
chore(release): v0.16.2 leaf check-in: 0da8ac4f50 user: [email protected] tags: release/v0.16.2, trunk
01:40
Merge pull request #507 from danmestas/test/horizon-partials

test(conformance): close four partial horizon rows check-in: 94717e5803 user: [email protected] tags: main, trunk

01:19
Merge remote-tracking branch 'origin/main' into test/horizon-partials check-in: 825a901dda user: [email protected] tags: fix/conformance-subtest-t, main, trunk
01:18
test(conformance): close four partial horizon rows

HZ-5.2-2: the seed label appears on no artifact an origin or its structural clone stores, across re-seeding and writes on both sides; the minted floor survives a restart of the origin. HZ-5.2-9: a seed's missing base filled by a pull, a local check-in and a local tag leaves the seed refused, unlinked and unserved, and the transfer that filled it linked. HZ-6.1-2: path-cone and cursor pragmas beside horizon-name are answered as beside pragma horizon, and act; a named clone with path members sends them and records both. HZ-6.2-17: an event-mtime tie resolves to the lowest full hash for tip and a branch; a full-hash-shaped name no check-in has resolves as a symbolic name, and one a check-in has names that check-in first. check-in: 7a375b6d73 user: [email protected] tags: fix/conformance-subtest-t, main, trunk

01:07
Merge pull request #505 from danmestas/fix/conformance-subtest-t

test(conformance): hand each case its subtest's t; cancel stale Race runs check-in: 49bf242db8 user: [email protected] tags: main, trunk

00:59
Merge remote-tracking branch 'origin/main' into fix/conformance-subtest-t leaf check-in: e0dcd0ea23 user: [email protected] tags: fix/conformance-subtest-t, main, trunk
00:59
test(conformance): hand each case its subtest's t; cancel stale Race runs

check runs each case as a subtest, but the suites passed the case the parent's t, captured in a closure. A fixture that skips or fails, as the fossil-built R-card fixture skips when fossil(1) is absent, then called SkipNow or FailNow on the parent from inside the subtest, which Go fails as "subtest may have called FailNow on a parent test". The Race workflow installs no fossil and failed this way in TestSparseCone. check now hands conforms the subtest's t, and all 150 call sites take it, so a case's skip or failure ends that case alone. TestCheckSkipEndsOnlyTheCase guards the harness.

A Race run takes most of an hour and merges land faster, so a new run on a ref now cancels the older one. check-in: 43df2fd2c2 user: [email protected] tags: fix/conformance-subtest-t, main, trunk

00:54
Merge pull request #502 from danmestas/docs/sdk-reference-check

docs: regenerate the SDK reference and check it in CI check-in: 51d3b9cf5f user: [email protected] tags: main, trunk

00:46
docs: regenerate the SDK reference and check it in CI

The gomarkdoc SDK pages had drifted about a thousand lines from the code: make docs-gen-sdk was never part of docs-gen, so nothing regenerated them and the docs check did not compare them. ReadBlob, SetContentCache, ListFilesIn and OriginNamer were missing from the libfossil page.

scripts/gen-sdk-docs.sh now renders them, running gomarkdoc v1.1.0 through go run so CI needs no install, then adds the frontmatter. It honours OUT_DIR, gen-docs.sh calls it, and check-docs-generated.sh compares the result, so a stale SDK page fails CI like any other generated input. make docs-gen-sdk calls the same script. llms.txt and llms-full.txt are regenerated from the refreshed pages. check-in: c12b02189f user: [email protected] tags: main, trunk

00:11
Merge pull request #501 from danmestas/perf/submanifest-node-memo

perf(manifest): memoize parsed sub-manifests by hash check-in: d82fddda6a user: [email protected] tags: main, trunk

00:02
perf(manifest): memoize parsed sub-manifests by hash

draft-fossil-submanifests-00 §7.4: enumeration results SHOULD be cached keyed by artifact name, so a rebuild parses each distinct sub-manifest once. The tree walk's loader now serves a resolved node from, and keeps it in, a new byte-bounded LRU memo on content.Cache (DerivedSized), keyed by the node's hash and charged its bytes, within a quarter of the cache's budget. The existing 32-entry Derived FIFO is sized for a few parsed check-ins; a tree's working set is every distinct node, which would thrash it and evict those check-ins.

Only a node that resolved is kept, so a phantom is looked up afresh and fails the walk as before. Depth, cycle and node-count bounds stay per walk. The memo is dropped with Derived on Invalidate and Clear, and the Repo's cache is replaced at every write.

Listing a tree that differs from one already read in one leaf now parses its manifest and that leaf; listing every check-in of zit's recorded tree history parses 48 sub-manifests instead of 109. SM-7.4-1 is covered.

Tracked in #493. check-in: 94f61db228 user: [email protected] tags: main, trunk

00:01
Merge pull request #500 from danmestas/feat/list-files-in-cone

feat: list a check-in's files in a cone check-in: e90c972c40 user: [email protected] tags: main, trunk