Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -834,15 +834,15 @@ jobs:
# DstackKmsEpoch epoch-0 pins opened from root_wrap, no key-recovery sidecar, the TC-287 retention
# sweeper env line, the TC-1791 delegated SQL caveats env line, the TC-1491 SQL size-cap and
# free-disk env lines, the TC-3739 node_request DB timing fields, the TC-3834 node_request
# error_code, the TC-3284 deletion ledger error events and the TC-3284 named node diagnostics and the TC-3973 startup events in the Vector config
# error_code, the TC-3284 deletion ledger error events and the TC-3284 named node diagnostics and the TC-3973 startup events and the TC-4177 deletion ledger start line and the TC-4190 duckdb_cache_cleanup_failed code in the Vector config
# and the TC-4194 cloudflared connector service (optional CLOUDFLARE_TUNNEL_TOKEN; no published ports; own cf-edge network shared only with tinycloud)
# (raw a52a126d…, with the TC-4249 ingress pin; 68f00873… / 91802e6c… before the pin; 7cc95bde… / 8c8785fb… before TC-4194; e0f99bcc… / a8fb25f7… before TC-3973; 97a180a4… / bced82d3… before the named diagnostics, db348152… / 27287a38… before TC-3284, cc219eb5… / 02d90755… before TC-3834, c6d05e1e… / 46287bc3… before TC-3739,
# (raw ef81b59f…, with TC-4177, TC-4190 and the four TC-1491 P4.2a codes; a52a126d… / a6902dd5… before them; 68f00873… / 91802e6c… before the TC-4249 ingress pin; 7cc95bde… / 8c8785fb… before TC-4194; e0f99bcc… / a8fb25f7… before TC-3973; 97a180a4… / bced82d3… before the named diagnostics, db348152… / 27287a38… before TC-3284, cc219eb5… / 02d90755… before TC-3834, c6d05e1e… / 46287bc3… before TC-3739,
# e5f1c356… / d1d2ef49… before the TC-1491 caps,
# e1cf031b… / f4f51e75… before TC-1791, 6a577c6d… / 272f43b8… before TC-287,
# 70c71aa0… / 8e602959… with the sidecar, 417719648a0c… / d6af7a70… before TC-3554,
# 5419a6fb… before TC-1491, d703d69b… before TC-2917, 298ea356… before TC-2346,
# 192dfb7e… before TC-1777), its single node digest normalized to 64 zeros.
n0_template_hash = 'a6902dd53525d2392146ef913f81bbdd19248116304a7f100fab206666e6b71c'
n0_template_hash = '693f06e86e0ea576a435b891214e9aaf528204c66131d85f53b4a805f8c47a60'
node_pin = re.compile(rb'(?m)^ image: ghcr\.io/tinycloudlabs/tinycloud-node@sha256:([0-9a-f]{64})$')
def n0_template(raw):
pins = list(node_pin.finditer(raw))
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/logship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ concurrency:
jobs:
boundary:
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 35
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
Expand All @@ -39,7 +39,7 @@ jobs:
with:
node-version: 22
- name: Verify request budgets and hosted acceptance guards
run: node --test log-shipper/budget.test.mjs log-shipper/profile.test.mjs log-shipper/ledger.test.mjs scripts/tc959-docker.test.mjs scripts/tc959-readiness.test.mjs
run: node --test log-shipper/budget.test.mjs log-shipper/profile.test.mjs log-shipper/ledger.test.mjs log-shipper/ledger-start.test.mjs scripts/tc959-docker.test.mjs scripts/tc959-readiness.test.mjs
- name: Check schema provenance and compose boundary without env interpolation
run: node scripts/tc959-check.mjs
- name: Install checksum-pinned native Vector
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
- Ops: added a reversible local-config HTTP ingress switch and operator runbook for a separately verified independent Cloudflare origin. Dry-run is the default; production routing and policy execution remain separate. Details: TC-1387.
- Production compose: stored SQL databases up to 320 MiB load again; saves still stop at 64 MiB (`TINYCLOUD_STORAGE__SQL__MAX_ARTIFACT_READ_BYTES: "320 MiB"`). Config only, no migration. Details: TC-1491.
- Production compose: a `cloudflared` Cloudflare Tunnel connector service (image pinned by digest, no published ports, metrics on loopback, no log driver, on its own `cf-edge` network shared only with `tinycloud`, credential from the optional sealed `CLOUDFLARE_TUNNEL_TOKEN`). Unset, the rest of the stack deploys unchanged and the connector has no credential and carries nothing. The N0 compose template hash becomes `91802e6c…` (raw `68f00873…`). Config only, no migration. Details: TC-4194.
- **Production compose:** the log shipper's `VECTOR_CONFIG_JSON` ships the node's one deletion-ledger line per start as the individual event `deletion_ledger_start` (`ledger_file` missing/empty/present, `bytes`, `operations`, `key_entries`, `committed`, `aborted`, `newest_deleted_at`; counts only, no ids or paths), so an OS move or deploy can compare the ledger before and after, and names the DuckDB cache cleanup warning `duckdb_cache_cleanup_failed`. It also pre-registers four `event_code` values for the store-master and shadow-local diagnostics that arrive with TC-1491 P4.2a (`store_master_mode_unreadable_refused`, `store_master_backstop_rotation_failed`, `shadow_local_working_copy_missing`, `shadow_local_read_failed`), so those lines are named from the first deploy. The N0 compose template hash becomes `693f06e8…` (raw `ef81b59f…`; `docs/releasing.md` has the full values). Details: TC-4177, TC-4190.
- DuckDB: a failed cache cleanup is a `warn` again (event `duckdb_cache_cleanup_failed`), shipped as a counted diagnostic. #647 had demoted it to `debug` because no event code existed. Details: TC-4190.
- DuckDB: the node opens and ends every transaction itself; client requests that send transaction control (`BEGIN`, `START TRANSACTION`, `COMMIT`, `END`, `ROLLBACK`, savepoints) are refused at every tier, and the SDK's `transactional` batches are unchanged. `nextval` and `setval` count as writes, so a read-tier or `readOnly` request is refused them. Line comments are parsed more strictly. Details: TC-3430.
- DuckDB: a request marked `readOnly` allows only queries and `EXPLAIN`, whatever its ability tier. Transaction control (`BEGIN`, `COMMIT`, `ROLLBACK`) counts as a write, so the read tier and `readOnly` requests are refused it. Details: TC-3035.
- The 503 body of a request that reached its deadline before its write began reads "request_timeout: no change was applied; retry the request with a new signature". Details: TC-1997.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dstack-postgres.yaml

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@ Before any CVM mutation the workflow requires:

- the main compose, with its one node digest replaced by 64 zeros, to hash
to the reviewed N0 template
**`91802e6cbec5eee1473d8bb63def043cc9e676c807b87904408bf44a2bc12adb`**
**`693f06e86e0ea576a435b891214e9aaf528204c66131d85f53b4a805f8c47a60`**
(raw `ef81b59ff3034ff17c049ac281173c4ac69ee8036f4d6333b19ed260c60e71b9` normalized). Before the TC-4177 deletion ledger start line (`deletion_ledger_start`), the TC-4190 `duckdb_cache_cleanup_failed` code and the four TC-1491 P4.2a codes (`store_master_mode_unreadable_refused`, `store_master_backstop_rotation_failed`, `shadow_local_working_copy_missing`, `shadow_local_read_failed`) in the Vector config the template was `a6902dd53525d2392146ef913f81bbdd19248116304a7f100fab206666e6b71c`
(raw `a52a126def0557db35c46c37477646cb7c2d26490b873b72223235e15c56d69c` normalized, with the TC-4249 ingress pin); before that pin the template was `91802e6cbec5eee1473d8bb63def043cc9e676c807b87904408bf44a2bc12adb`
(raw `68f008731b6c013a79dad6f17a0d7a4d141505c31b52a8a98f1acdb571c059d4` normalized). Before the TC-4194 `cloudflared` connector service (pinned by digest, no published ports, on its own `cf-edge` network shared only with `tinycloud`, optional sealed `CLOUDFLARE_TUNNEL_TOKEN`) the template was `8c8785fbc80e2dc16358abe0304cec32235367c9b9cfc5e1776704f7019af4f8`
(raw `7cc95bde531f100148a8bbcc8a8d104144d75e382873362dd6fb76b88403f27e` normalized). Before TC-3973 startup diagnostics and reindex counts in the Vector config the template was `e0f99bcca6f220c65d81cad15504790099d634243ea701350a509e995b672aa0`
(raw `a8fb25f7c3608cbf69911d054825fd4dd0da0a9a78fc5c8ff7701bf346693b6b` normalized). Before the TC-3284 named node diagnostics (every node warning and error message mapped to its own `event_code`) in the Vector config the template was `97a180a43ec70c7950e717417c5455b13ede1a3adab5a196f65b5aa21dcc5271`
Expand Down Expand Up @@ -962,8 +964,8 @@ gh workflow run docker.yml -R TinyCloudLabs/tinycloud-node --ref main \

The served/OCI identity remains **1.20.6-dstack / e18578ff9162986ddd813259c60f73866e3e60d1**.
With the template lock on main this redeploys exactly main's raw compose
`68f008731b6c013a79dad6f17a0d7a4d141505c31b52a8a98f1acdb571c059d4`
(the 1.21.0 compose `d95bfb70…` with the TC-1274, TC-1317, TC-1482, `current_kv_c_index_*`, `db_failure_5xx`, the 4xx and 5xx caps, `errors_dropped`, TC-2346 `db_operation_retried` / `db_operation_retry_skipped_slow`, TC-2917 `node_storage_headroom`, TC-3739 `node_request` DB timing, TC-3834 `node_request` `error_code`, TC-3284 deletion ledger error event and TC-3284 named node diagnostics and TC-3973 startup events in the Vector config, the optional TC-1482 `NODE_STATS_READ_TOKEN` env line, the TC-950 pool of 10, the TC-1777 `NAMED_KEYS_V1` gate env lines with the `deletion-ledger` volume, the TC-1491 artifact read limit env line, the TC-3554 `TINYCLOUD_KEYS__TYPE: DstackKmsEpoch` pins with no key-recovery sidecar, the TC-287 `TINYCLOUD_RETENTION__ENABLED: "true"` env line, the TC-1791 `TINYCLOUD_SQL__DELEGATED_CAVEATS_ENFORCED: "true"` env line and the TC-1491 `TINYCLOUD_STORAGE__SQL__MAX_DATABASE_BYTES: "320 MiB"` / `MIN_FREE_BYTES: "1 GiB"` env lines), whatever digest
`ef81b59ff3034ff17c049ac281173c4ac69ee8036f4d6333b19ed260c60e71b9`
(the 1.21.0 compose `d95bfb70…` with the TC-1274, TC-1317, TC-1482, `current_kv_c_index_*`, `db_failure_5xx`, the 4xx and 5xx caps, `errors_dropped`, TC-2346 `db_operation_retried` / `db_operation_retry_skipped_slow`, TC-2917 `node_storage_headroom`, TC-3739 `node_request` DB timing, TC-3834 `node_request` `error_code`, TC-3284 deletion ledger error event and TC-3284 named node diagnostics and TC-3973 startup events and TC-4177 `deletion_ledger_start` and TC-4190 `duckdb_cache_cleanup_failed` in the Vector config, the optional TC-1482 `NODE_STATS_READ_TOKEN` env line, the TC-950 pool of 10, the TC-1777 `NAMED_KEYS_V1` gate env lines with the `deletion-ledger` volume, the TC-1491 artifact read limit env line, the TC-3554 `TINYCLOUD_KEYS__TYPE: DstackKmsEpoch` pins with no key-recovery sidecar, the TC-287 `TINYCLOUD_RETENTION__ENABLED: "true"` env line, the TC-1791 `TINYCLOUD_SQL__DELEGATED_CAVEATS_ENFORCED: "true"` env line and the TC-1491 `TINYCLOUD_STORAGE__SQL__MAX_DATABASE_BYTES: "320 MiB"` / `MIN_FREE_BYTES: "1 GiB"` env lines), whatever digest
main's template currently pins. **Since TC-3554 only 1.26.15 or later boots
on this compose, and only once the database holds the `root_wrap` blob:**
1.26.14 needs the sidecar this compose lacks,
Expand Down
4 changes: 2 additions & 2 deletions log-shipper/canonical.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"repo": "samgbafa/tinycloud-dev",
"revision": "2079e2bf01c5f2cb0c24c190819821891d395af9",
"revision": "72947b183d4aa0df5ba6e3ddf42583888b4a3cd9",
"path": "ops/logging/fields.json",
"sha256": "c3ff3d3e87ac1192a5eadfdc6376ab21d84685771e678073669acc0465d22ee8"
"sha256": "9abea684d4b9e396f67b7a612733d6f788d35f9b1a5ae806430644b6c3a2ba9b"
}
Loading
Loading