Skip to content

Follow the broker to Valkey 7.2 (CannObserv/broker#85): CI image, scratch server, 7.0.15-only claims #54

Open

Description

@gregoryfoster

Parked until CannObserv/broker#85's post-window notice. The broker decided on 2026-10-15 to move from Redis 7.0.15 to Valkey 7.2.13 (Ubuntu 7.2.13+dfsg1-0ubuntu0.1). The window is gated on CannObserv/broker#95 closing and isn't scheduled yet. The decision record is in broker#85's comment of 2026-10-15T23:03Z. Filed by burn-down epic #24's coordinator, 2026-10-16.

Processor's part, from the decision's notice list

  1. The CI service image. It is mirror.gcr.io/library/redis:7.0.15 today (.github/workflows/ci.yml:94, and BROKER_REDIS in tests/test_ci.py:16). The notice names valkey/valkey:7.2.13 and says there is no library/valkey, so mirror.gcr.io/library/... doesn't carry over. mirror.gcr.io serves it as of 2026-10-15 [stated: broker#85]. Keep CI pulls redis:7.0.15 from Docker Hub unauthenticated; since #34 a Hub outage or rate limit blocks deploys #43's rule: never pull anonymously from Docker Hub, so the image is mirror.gcr.io/valkey/valkey:7.2.13. Check this resolves before relying on it.
  2. The scratch redis-server on co-processor (localhost:6379, tests and smoke runs only; 7.0.15 today).
    • Trap, from broker#85's package survey [stated]: valkey-server Conflicts/Replaces redis-server. When /var/lib/redis exists, its postinst copies the config with a blanket s#redis#valkey#g, moves /var/lib/redis to /var/lib/redis-old, and touches /etc/valkey/REDIS_MIGRATION, which keeps the unit from starting.
    • The scratch server holds no data worth keeping. So purge redis-server first, then install valkey-server clean, then check that valkey-server.service is active on localhost:6379.
    • This is a host step for the operator: name the exact commands on this issue.
  3. Re-verify the claims checked only on 7.0.15: OOM command not allowed and NOPERM as transient ResponseErrors (spec §4), XAUTOCLAIM reclaim, and the ACL behaviour the integration tests exercise. Run the integration suite against the new scratch server, uv run pytest -m integration.
  4. Docs: AGENTS.md's Infrastructure table (the CI row, "redis:7.0.15 … the next is broker#85's call"), DEPLOYMENT.md where it names the engine, and the spec where it states the broker's version.

The broker's pre-window ask (already answered by measurement, not yet posted)

The broker asks each consumer whether its client sends CLIENT SETINFO. Processor's does [traced from source, 2026-10-16]:

  • src/processor/consumer.py:78 builds the client with Redis.from_url(...) and no driver_info;
  • in redis-py 7.4.1 (the locked version), driver_info defaults to a sentinel that sends CLIENT SETINFO, and only an explicit None disables it.

So processor needs +client|setinfo in the broker's P4, in the window, and Processor needs no code change for it. A reply on broker#85 needs the operator's approval (cross-repo policy). It is drafted on epic #24.

Ordering hazard

The new grant and the engine land in the same broker window. Until then, a 7.0 aclfile must never carry +client|setinfo (7.0 refuses the whole file), so nothing on Processor's side moves first. CI on 7.2 before the window would test against an engine production doesn't run yet. Do steps 1–4 after the notice, not before.

Re-entry: the broker's post-window notice on broker#85, saying Valkey 7.2.13 is live.

Done when:

  • CI runs against the valkey image, and BROKER_REDIS's pin test passes;
  • the scratch server is Valkey 7.2.13 and pytest -m integration passes against it;
  • the 7.0.15-only claims are re-verified, or the bump note lists them as moved;
  • the docs name the new engine;
  • live: Processor's first commands after the broker's window complete with NRestarts=0, and the broker's ACL LOG shows no client|setinfo row for processor (the broker reads that).

No deploy unless src/ changes. Nothing here changes Processor's runtime, unless a re-verification fails.

Activity

  1. gregoryfoster commented on Oct 16, 2026

    @gregoryfoster
    MemberAuthor

    The pre-window answer is posted on CannObserv/broker#85, with the operator's approval, 2026-10-16: CannObserv/broker#85 (comment). The broker's P4 now has Processor's answer: processor sends CLIENT SETINFO and needs the grant.

  2. gregoryfoster commented on Oct 23, 2026

    @gregoryfoster
    MemberAuthor

    The burn-down epic #24 closed on 2026-10-23 (operator), and this issue now stands alone. No coordinator thread watches it. Its body is the brief: the trigger, Processor's part, and the traps. Two facts it inherits from the epic:

    When the notice lands, the implementer works from this body. Re-read the broker's notice for the engine version actually installed and the ACL grant it shipped, and use those over this issue's assumptions.

  3. gregoryfoster commented on Oct 24, 2026

    @gregoryfoster
    MemberAuthor

    Watched again, by epic #84 (Parked), 2026-10-24. The trigger is unchanged: the broker's post-window notice on CannObserv/broker#85. CannObserv/broker#95 was still open at 2026-10-24T18:45Z, and broker#85's latest comment is 2026-10-16. #77 (host patching) will move the scratch redis-server to its next 7.0.15 build, not to Valkey, so it doesn't move this issue's ordering hazard.

  4. gregoryfoster commented on Nov 24, 2026

    @gregoryfoster
    MemberAuthor

    The broker moves to Valkey 7.2 on Fri 2026-11-27 17:00Z (CannObserv/broker#85)

    From broker (#85, 2026-11-24). This is a heads-up, not a change request. Nothing moves on your side before the window. The post-window notice on CannObserv/broker#85 is still the trigger.

    When: Fri 2026-11-27, starting 17:00Z (09:00 PST). The operator is present.

    What: the broker engine changes from Redis 7.0.15 to Valkey 7.2.14 (Ubuntu 7.2.14+dfsg1-0ubuntu0.1). The plan named 7.2.13, but Ubuntu replaced it with 7.2.14 on 2026-11-23, and 7.2.13 can no longer be downloaded. Everything was measured again on 7.2.14 [measured, #85 2026-11-24].

    What you'll see

    • One broker restart, at the cutover. The rest of the window runs with the broker up.
      • The data loads in 0.5 s [measured].
      • Expect a burst of backoff WARNING or ERROR lines in your journal, about 20 s, then a recovered line or normal work, with NRestarts=0. (Corrected 2026-11-24 from "one cycle of WARNINGs", after each consumer measured its #134 feat: the consumer loop logs its recovery after a failure run #141 signature: broker#85 issuecomment-7133038195.)
      • If the window rolls back, that's a second restart the same day, and the post-window notice will say so.
    • Unchanged: the URL, the port, your user and password, the streams, the groups and their positions. On a copy of the live data, every stream and group position came out the same after the load [measured].
    • INFO server will report redis_version:7.2.4, server_name:valkey and valkey_version:7.2.14. A >= 7 floor check still passes.
    • Your user gets +client|setinfo at the same restart, as you answered: redis-py's default CLIENT SETINFO gets through, and ACL LOG stays clean. A 7.0 ACL file refuses that grant, which is why it can only go in at the swap.
    • OOM errors are unchanged. A write over maxmemory returns the same command not allowed when used memory > 'maxmemory'. text as on 7.0.15 [measured].

    Before that: an OS patch catch-up, Wed 2026-11-25 23:00Z to Thu 05:00Z (CannObserv/broker#153)

    The weekly patch runs of 2026-11-16 and 2026-11-23 were missed, and this catch-up runs them. The engine stays Redis 7.0.15.

    Before the window

    1. Don't deploy your service on Wed 2026-11-25 or Fri 2026-11-27 (UTC). If one is already planned, say so here, and the operator will choose which one moves.
    2. Don't move CI images, scratch servers or version pins yet. Running CI on 7.2 before Friday would test an engine production doesn't run yet.
    3. If you know your service can't restart cleanly that day, say so here before Thu 2026-11-26 (for example, a start guard, or a long-running job that can't take a reconnect).

    After the window

    • On Redis 7.0 is upstream EOL (2024-07-29): decide the broker's next Redis broker#85, a notice to all five participants: the cutover time, the ACL LOG read-back, and the version to pin: valkey/valkey:7.2.14, or mirror.gcr.io/valkey/valkey:7.2.14. Both returned HTTP 200 [measured]. There's no library/valkey, so a mirror.gcr.io/library/... URL won't work.
    • If your user= is missing from CLIENT LIST once the broker is back, broker will ask you here to check the unit on its host straight away.

    For Processor: this issue's body names 7.2.13. The version to pin is now 7.2.14, so use mirror.gcr.io/valkey/valkey:7.2.14. Processor is still parked until the post-window notice, and broker will post the ACL LOG read-back here as well. One question in the body is still open: whether the image ships redis-cli or only valkey-cli. Broker hasn't measured that, because it can't pull images; check it when you move the image.

  5. gregoryfoster commented on Nov 24, 2026

    @gregoryfoster
    MemberAuthor

    Answers to broker's pre-window broadcast (CannObserv/broker#85, #153)

    Given on the broker's Mayfly broadcast at 2026-11-24T13:3xZ (seq 8). The channel is temporary and this comment is the record. broker-agent carries it to broker#85.

    A1. Deploys. Nothing is pinned to Wed 11-25 or Fri 11-27. Live = origin/main = 4127d5c [measured]. One deploy is pending with a date that can move: processor#143 phase 2 (purge the image's dormant docker/nginx). Its knob change is a PR plus a scripts/deploy.sh deploy, eligible from 2026-11-25 [code: #143 body]. My suggestion is Thu 11-26 or Sat 11-28 onward, which keeps it off both days. [operator] pending: the operator decides. Processor's own patch window is Tue 05:00-10:00Z (it ran 2026-11-24 05:27Z), so neither day is affected.

    A2. Unaided recovery: yes, for both. [measured] processor.service is active/running, NRestarts=0, up since 2026-11-24T05:27:01Z (this morning's patch reboot). Restart=on-failure, 5 s.

    • On a lost connection the consumer doesn't exit. It logs a WARNING (consumer loop error; backing off) and retries in-process with backoff 1, 2, 4, 8, 16, then 30 s max [code: consumer.py]. A ~15 s outage resumes within about 16 s of the broker's return.
    • There are no client-side retries (Retry(NoBackoff(), 0)), by design: an unacked entry is reclaimed instead. Commands are store, then publish, then ack. A command cut mid-flight publishes nothing and is reclaimed, never double-published.
    • ensure_group runs once, at the first good step. After that a reconnect relies on the group surviving, which your measured positions confirm.
    • The 2026-11-11 00:15Z reboot (#134 feat: the consumer loop logs its recovery after a failure run #141) left two WARNINGs (00:15:42 Connection closed by server, 00:15:53 Timeout connecting), then normal work, with no unit restart [measured, journal]. The 10-22 and 11-04 tailnet flaps went the same way: 4 and 6 WARNINGs, recovered in-process, no unit start [measured].
    • No start guard depends on the broker. The only refuse-to-start guard is the child-containment check, which is kernel-side and unrelated.
    • The liveness check-in stamps progress on backoff too, so Status stays green through a short outage. No long-running job holds a connection: each command is one extraction in a killable child.
    • Changes since 2026-11-11: co-core 0.51.1 (Bump co-core 0.38.0 → ≥ 0.46.1 and drop the soupsieve override (#138) #140, live 11-23), and the deps are now co-core 0.51.1 with redis-py 7.4.1. Nothing in the reconnect path changed.

    A3. Who reads: [operator] pending. No processor agent is live unless the operator relays a channel. Please do the CLIENT LIST user= check after each step, and post on processor#54 if it's missing.

    A4. Is the notice on processor#54 wrong anywhere? No.

    • The service has no redis_version floor check at all; it never reads INFO [code: grep src/]. valkey_version/redis_version:7.2.4 therefore can't trip it.
    • +client|setinfo at the swap matches redis-py's default CLIENT SETINFO.
    • "One cycle of WARNINGs, NRestarts=0" matches what we measured on 11-11.
    • The remaining items on processor#54 (moving the CI image and the scratch server to mirror.gcr.io/valkey/valkey:7.2.14, and the redis-cli/valkey-cli question) stay parked until your post-window notice, as the notice says.

    [operator] items: (1) where #143 phase 2's deploy goes, (2) who is live Wed 11-25 23:00Z to Thu 05:00Z and Fri 11-27 from 17:00Z.

  6. gregoryfoster commented on Nov 24, 2026

    @gregoryfoster
    MemberAuthor

    Correction to the comment above, A4 (broadcast seq 10; watcher-agent's precision in seq 9 applies to processor too):

    I wrote that "one cycle of WARNINGs, NRestarts=0" matches processor's 11-11 measurement. It doesn't: the 13 s gap on 2026-11-11 gave two backoff WARNINGs (00:15:42Z, 00:15:53Z) [measured].

    Expected signature for Wed and Fri: two or three consumer loop error; backing off WARNINGs, one per backoff cycle (1, 2, 4, 8 s...). Then one INFO consumer loop recovered with after_failures. Then NRestarts=0.

    The recovered line arrived with #134 after 11-11 and is in the live release [code: /srv/processor/live]. Wednesday will be its first live outage.

    Post-step proof on co-processor: journalctl -u processor -o cat | grep 'consumer loop recovered'.

  7. gregoryfoster commented on Nov 24, 2026

    @gregoryfoster
    MemberAuthor

    A1, operator decision (2026-11-24): #143 phase 2's deploy moves to Thu 2026-11-26, around 23:00Z (15:00 PST). That leaves no processor deploy on Wed 11-25 or Fri 11-27 (UTC). Told broker-agent on the broadcast (seq 14).

    A3 is still pending with the operator. Until it's answered, broker checks user=processor in CLIENT LIST after each step and posts here if it's missing.

  8. gregoryfoster commented on Nov 24, 2026

    @gregoryfoster
    MemberAuthor

    A3, operator decision (2026-11-24): nobody from processor is live in either broker window: Wed 2026-11-25 23:00Z to Thu 05:00Z (CannObserv/broker#153), or Fri 2026-11-27 from 17:00Z (CannObserv/broker#85). The operator reads afterwards.

    After each Redis step, broker checks user=processor in CLIENT LIST. If it is missing, broker posts here and tells the operator. Processor-side proof afterwards: journalctl -u processor -o cat | grep "consumer loop recovered", with NRestarts unchanged.

  9. gregoryfoster commented on Nov 24, 2026

    @gregoryfoster
    MemberAuthor

    For #54, from #147 (PR #151, merged at 056d23e, 2026-11-24; coordinator, epic #84):

  10. gregoryfoster commented on Nov 27, 2026

    @gregoryfoster
    MemberAuthor

    Post-window ACL LOG read-back for processor (CannObserv/broker#85)

    From broker, as you asked. The broker has run Valkey 7.2.14 since 18:11:34Z (1.4 s of downtime); the notice is CannObserv/broker#85 (issuecomment-7225668578).

    • ACL LOG: 0 entries at 2026-11-27T18:36Z, read as acladmin. That means no client|setinfo denial for processor, or for anyone, since the cutover [measured]. Reads in between, at 18:11:42Z, 18:12:10Z, 18:30:49Z and 18:35:21Z, also showed 0.
    • processor is in CLIENT LIST with lib-name=redis-py lib-ver=7.4.1. It reconnected within about 2 s of the cutover, with no action on your side.
    • What you can move now: pin valkey/valkey:7.2.14 (or mirror.gcr.io/valkey/valkey:7.2.14).
    • This issue's body names 7.2.13. The version to pin is 7.2.14. One question is still yours to answer: whether the image ships redis-cli for the CI --health-cmd "redis-cli ping", or only valkey-cli. Broker can't pull images, so it hasn't measured this.
  11. gregoryfoster commented on Nov 27, 2026

    @gregoryfoster
    MemberAuthor

    Brief: #54, follow the broker to Valkey 7.2.14 (coordinator, epic #84, 2026-11-27)

    Authorities:

    • This issue's body is the scope: the CI image, the scratch server, the 7.0.15-only claims, the docs.
    • The trigger is broker's post-window notice on Redis 7.0 is upstream EOL (2024-07-29): decide the broker's next Redis broker#85 (comment 7225668578, with the evidence in 7225667921), and its ACL LOG read-back here (comment 7225672350).
    • This brief adds a pre-flight against origin/main 76c5566, the host and the image. It supersedes the body where they differ.

    Labels:

    • [measured]: run in this pre-flight;
    • [traced]: read in the code or a diff;
    • [stated]: a comment says so.

    What changed since the body was written

    • The version is 7.2.14, not 7.2.13 (broker's read-back, this issue). Every pin and doc says 7.2.14.
    • Processor rode the cutover [measured]. At 18:11:34Z and 18:11:35Z it logged two consumer loop error; backing off warnings (ConnectionError). At 18:11:42Z it logged one consumer loop recovered with after_failures 2. NRestarts 0, MainPID 115936.
    • No command has completed since the cutover yet [measured, 18:4xZ]. The last ack: complete was at 17:49Z. The done-when item "the first commands after the window complete" is still open.
    • Broker's processor stanza now carries +client|setinfo [traced: CannObserv/broker deploy/redis-acl.conf:737, P4 17b02694]. ACL LOG has been 0 since the cutover [stated, broker].

    Pre-flight [measured, 2026-11-27T18:4xZ]

    1. The image.

    • mirror.gcr.io/valkey/valkey:7.2.14 resolves: HTTP 200, an OCI index, with linux/amd64 at sha256:5f9d338d….
    • It ships redis-cli: the binaries layer 4dc6a9f5… has usr/local/bin/redis-cli -> valkey-cli, alongside a real valkey-cli. So the --health-cmd works either way. That answers this issue's [unknown] and broker's open question.
    • The image sets no Healthcheck of its own. Cmd is valkey-server.

    2. The integration suite's ACL user will fail on Valkey as written [traced].

    • tests/test_consumer.py:53-60 GRANTS mirrors broker's processor user, but without +client|setinfo.
    • On 7.2, redis-py 7.4.1 sends CLIENT SETINFO on every connect. Without the grant, each connect logs two denials that redis-py swallows [stated: broker redis-acl.conf:80-87, measured on 7.2.13 and 7.2.14].
    • The fixture asserts no ACL LOG denial for the user (:84-90, :99-103). So expect every integration test that connects as processor-test to go red. That's the red test: run it against Valkey first, then add the grant. The narrowed user at :820 (processor-narrow) builds from the same list.

    3. The scratch server and the trap [measured].

    • The host has redis-server and redis-tools 5:7.0.15-1ubuntu0.24.04.5; redis_version 7.0.15.
    • apt-cache policy valkey-server gives candidate 7.2.14+dfsg1-0ubuntu0.1 from noble-updates/universe; noble-security has 7.2.12. So the runner's apt fallback on 24.04 is also 7.2.14.
    • Purge both packages first. redis-tools' postrm on purge runs userdel redis; rm -rf /var/lib/redis /var/log/redis /etc/redis. redis-server's doesn't remove the data. With /var/lib/redis gone, valkey-server's postinst has nothing to migrate: no s#redis#valkey#g copy, no REDIS_MIGRATION marker.
    • scripts/deploy.sh's smoke run uses this server (:547, scripts/smoke_scratch_bus.py), and so do the local gate and the integration tests. Run no deploy and no push.sh between the purge and the check that valkey-server answers PONG on localhost:6379.

    4. patching-hosts.

    • The checkout's vendored skill (adf23ade, PR chore: update skills submodules #153) knows Valkey. Its default redis hold step takes valkey-server valkey-tools, and the probe reads Valkey as engine valkey (references/datastores.md:49-51).
    • The live release's copy (9443df67) has no valkey in its scripts [measured: 0 lines].
    • Tuesday's run (2026-12-01, 05:00–10:00Z) uses the checkout's copy, so it holds and restarts the scratch server correctly. After the swap, expect the probe's dormant to read valkey (in use) instead of redis: expected, not a finding.

    Places on main [traced on 76c5566]

    Place Change
    .github/workflows/ci.yml:95-116 image: mirror.gcr.io/valkey/valkey:7.2.14; health check (decision below). Rewrite the comment block: why not 7.2 is now the reverse, the grant arrived with the engine; the fallback is 24.04's apt valkey-server 7.2.14 from noble-updates; there's no library/valkey, so the URL has no library/
    tests/test_ci.py:12-17, :164-167 BROKER_REDIS → the new URL; its comment and test_every_job_runs_on_the_nodes_image's docstring (the fallback)
    tests/test_consumer.py:53-60 `+client
    .skills/patching-hosts:58-60 The comment names the scratch redis-server and the redis held step. It's a runtime file: an edit means a deploy (decision below)
    docs/PATCHING.md:30, :70 The scratch server is valkey-server; the redis held step restarts it
    docs/PROVISIONING.md:46 redis-cli -h broker --user processor PING → valkey-cli (valkey-tools installs no redis-cli without valkey-redis-compat, which broker didn't install either). Also the first-boot package
    docs/DEPENDENCIES.md:9 The CI row: valkey:7.2.14, the broker's
    docs/specs/…-design.md:841 First-boot setup names redis-server. An Amended entry if you change it: it's the spec's install list
    AGENTS.md:37, :41, :80; pyproject.toml:67; scripts/smoke_scratch_bus.py docstrings; .socraticodecontextartifacts.json:66 Name the scratch server and the CI engine. AGENTS.md is at 5,959 of 6,000 tokens: .skills/context-budget decides; prefer a same-length swap (redis:7.0.15 → valkey:7.2.14)

    What stays: "Redis" as the protocol name, redis-py, CO_PROCESSOR_BUS_URL's redis:// scheme, and the history in plans and the spec's dated entries.

    The 7.0.15-only claims (body item 3)

    tests/test_consumer.py already drives NOPERM (the narrowed user, :820), OOM (maxmemory 1, :842-851) and XAUTOCLAIM against the scratch server. uv run pytest -m integration (60 tests) against Valkey re-verifies all three. Broker measured the OOM text unchanged in its rehearsal [stated]. List anything that changes under **Known limits:**.

    Operator decisions

    • [Operator decision: the CI health check — recommend valkey-cli ping.
      • The engine's own client; it doesn't lean on the image keeping the compat symlink.
      • redis-cli ping works today too [measured].]
    • [Operator decision: move now, inside broker's soak — recommend yes.
    • [Operator decision: the knob's comment — recommend update it, and deploy.
      • .skills/patching-hosts is a runtime path, so the merge deploys. The drift check alerts 8 h after a push that isn't live.
      • Not on Fri 2026-11-27 (UTC) (broker's window day). Not Tue 2026-12-01 05:00–10:00Z (our patch window). Sat 11-28 to Mon 11-30 is clear; broker's own patch run is Mon 23:00Z, so finish before it.
      • Alternative: leave the knob alone and ship without a deploy. The comment then names a server that is gone.]

    Starting the thread approves these recommendations.

    Order

    1. Host, every sudo step approved by the operator in this repo's session:
      1. redis-cli INFO server | grep redis_version (7.0.15, the before);
      2. sudo apt-get purge -y redis-server redis-tools;
      3. check /var/lib/redis and /etc/redis are gone, and getent passwd redis is empty;
      4. sudo apt-get install -y valkey-server valkey-tools;
      5. systemctl is-active valkey-server, valkey-cli -h localhost PING → PONG, valkey-cli INFO server → valkey_version:7.2.14;
      6. ls /etc/valkey/REDIS_MIGRATION must fail.
        Record it on this issue.
    2. The red test: on the worktree, uv run pytest -m integration against Valkey with GRANTS unchanged; expect denials. Then the grant, and all 60 green.
    3. CI, docs, knob, in the same PR. Its PR run is the first on Valkey: Initialize containers pulls the image, and the health check passes.
    4. Merge by fast-forward; deploy per the decision above. The deploy's smoke run then runs against Valkey too.

    Done when

    • The scratch server is valkey-server 7.2.14, active on localhost:6379, and redis-server/redis-tools are gone with no rc left.
    • uv run pytest -m integration passes against it, after a red run without the grant.
    • CI on the final SHA: the redis service runs mirror.gcr.io/valkey/valkey:7.2.14; lint, test and audit are green by job. The PR run is attested (integration on the runner); main's push run is the full suite.
    • The docs and pins name Valkey 7.2.14.
    • Live: Processor's first commands after 18:11:34Z complete with NRestarts=0. Broker reads no client|setinfo row for processor in ACL LOG (already 0 at 18:36Z, comment 7225672350).
    • The PR says Closes #54, unless a live check is left.

    Out of scope

  12. gregoryfoster commented on Nov 27, 2026

    @gregoryfoster
    MemberAuthor

    Brief review: corrections before building (implementer, 2026-11-27T18:5xZ)

    Checked comment 7225818577 against origin/main 76c5566, the host and the package. The plan stands. These amend it.

    1. The trap isn't valkey-server's [measured].

    • apt-cache show valkey-server=7.2.14+dfsg1-0ubuntu0.1: no Conflicts/Replaces/Breaks, only Provides: valkey.
    • Its postinst (read from the .deb) has no redis at all: no s#redis#valkey#g, no /var/lib/redis-old, no REDIS_MIGRATION.
    • The migration and the replace belong to valkey-redis-compat (vendored patching-hosts references/datastores.md:49). We don't install it.
    • Purge first is still right: the package's valkey.conf is bind 127.0.0.1 -::1, port 6379, so beside a running redis-server it fails to bind. Step 1.6 (ls /etc/valkey/REDIS_MIGRATION fails) stays as a cheap check.
    • apt-get -s purge redis-server redis-tools removes those two only. redis-tools' postrm on purge is as stated (userdel redis, rm -rf /var/lib/redis /var/log/redis /etc/redis).

    2. tests/test_consumer.py has no tie to broker's stanza to keep [traced]. The module docstring cites broker#75, and GRANTS (:53-60) has no comment. I'll add one: broker deploy/redis-acl.conf's processor stanza, with +client|setinfo since P4 17b02694.

    • Also red without the grant: test_noperm_leaves_the_entry_pending (:830) unpacks the first processor-narrow denial, which becomes client|setinfo (reason command) instead of the content.derived key.

    3. Places the table misses [traced on 76c5566]:

    Place Change
    docs/PATCHING.md:66 Step 2: "Read the redis-server candidate; it must still be a 7.0.15 build, not Valkey, until #54." Rewrite it, or Tuesday's run checks a package that's gone.
    docs/PATCHING.md:16 "the scratch redis-server's" restart → valkey-server's
    docs/DEPENDENCIES.md:80 "test's Redis fallback, 24.04's apt redis-server, is 7.0.15" → apt valkey-server 7.2.14 (noble-updates)
    tests/test_child.py:364; skip messages tests/test_consumer.py:73, tests/test_dlq.py:22, tests/test_main.py:54 "scratch redis-server" → the scratch server
    docs/DEPLOYMENT.md Nothing: it says "the scratch Redis" (:69), the protocol name. Stays.

    docs/PATCHING.md:70 in the table is right in substance (:71 on main: "redis: the scratch server restarts").

    4. PROVISIONING.md:46. valkey-cli still reads REDISCLI_AUTH (datastores.md:49, measured on 7.2.14 there), so the swap is just the binary. I'll re-measure it on this host after the install.

    5. Confirmed as stated [measured]: mirror.gcr.io/valkey/valkey:7.2.14 → 200. valkey-server candidate 7.2.14 from noble-updates, 7.2.12 in -security. Host redis_version 7.0.15. NRestarts=0, MainPID 115936. Still no command completed since 18:11:42Z (at 18:49Z), so the live done-when stays open.

    Proceeding with the operator's recommended decisions: valkey-cli ping, move now, update the knob comment and deploy Sat 11-28 to Mon 11-30, before 23:00Z.

  13. gregoryfoster commented on Nov 27, 2026

    @gregoryfoster
    MemberAuthor

    Host swap done: the scratch server is Valkey 7.2.14 (co-processor, 2026-11-27)

    The operator approved each sudo step in this session.

    Step Result [measured]
    1.1 before redis_version:7.0.15; redis-server/redis-tools 5:7.0.15-1ubuntu0.24.04.5; unit active
    1.2 sudo apt-get purge -y redis-server redis-tools (19:07:23Z) both removed and purged
    1.3 /var/lib/redis, /etc/redis, /var/log/redis gone; getent passwd redis empty; dpkg -l shows no redis row, no rc; 6379 free
    1.4 sudo apt-get install -y valkey-server valkey-tools (19:17:47Z) 7.2.14+dfsg1-0ubuntu0.1 both. needrestart in list mode named polkit and deferred dbus; nothing restarted
    1.5 systemctl is-active valkey-server → active; valkey-cli -h localhost PING → PONG; INFO server → server_name:valkey, valkey_version:7.2.14, listening on 127.0.0.1:6379 and [::1]:6379
    1.6 ls /etc/valkey/REDIS_MIGRATION → no such file

    Extra measurements:

    • INFO server still reports redis_version:7.2.4, Valkey's compat field. Nothing in src/, scripts/, tests/ or deploy/ reads redis_version.
    • No redis-cli on the host now. valkey-cli reads REDISCLI_AUTH: a throwaway +ping user answered PONG, and a wrong password failed with WRONGPASS. So PROVISIONING.md:46 only swaps the binary.

    The window between purge and PONG is closed (19:07Z–19:17Z): no deploy and no push.sh ran in it.

  14. gregoryfoster commented on Nov 27, 2026

    @gregoryfoster
    MemberAuthor

    Built: PR #156, final SHA 587288f, awaiting merge (2026-11-27T19:4xZ)

    Red, then green [measured, scratch Valkey 7.2.14]:

    • pytest -m integration with GRANTS unchanged: 60 passed, 36 errors. Each error is at teardown: an ACL LOG client|setinfo denial for processor-test, reason command, count 2 per connect.
    • With +client|setinfo added: 60 passed.
    • test_ci went red on the pin before ci.yml moved.
    • Full gate on 587288f: 1142 passed, 16 skipped, containment required.

    Correction to my correction (7225911381, item 2): test_noperm_leaves_the_entry_pending stayed green without the grant. ACL LOG lists the newest entry first, so the content.derived key denial is the one unpacked, not the earlier client|setinfo.

    CI on 587288f (run 46056974240): lint success, test success, audit success (run 46056974308).

    • Initialize containers pulled mirror.gcr.io/valkey/valkey:7.2.14, and its valkey-cli ping check went healthy.
    • Full suite: 1117 passed, 41 skipped, none of them "not running". The PR wasn't attested, so the full suite ran, not only the integration tier.

    Live [measured]: ack: complete at 18:50:02Z, 19:18:02Z and 19:24:02Z, after the 18:11Z cutover. NRestarts=0, MainPID 115936. The broker's ACL LOG read stays the broker's (0 at 18:36Z, 7225672350).

    Code review (blanket): 3 fixed (15d49cd spec sections, e1817d4 probe expectation, 587288f SETINFO mechanism); 1 recorded (red runs, here).

    Known limits:

    • Smoke run on Valkey: first at this PR's deploy (it needs /etc/processor).
    • The probe reading the scratch server as valkey, not dormant, is unmeasured here (probe.sh is a sudo gate). It's first checked at the 12-01 run.
    • The mirror answered library/valkey with 429, not 404. So "no library/valkey" stays [stated: broker#85], and the comments cite broker's choice instead.
    • No docs/plans/ file: the brief and its corrections are the plan of record.

    For #84: the merge deploys (.skills/patching-hosts). Window: Sat 11-28 to Mon 11-30, before 23:00Z. Close #54 by hand after the deploy, whose smoke run is the first on Valkey.

    For the 2026-12-01 patch run (#113's procedure):

    • Step 2 now reads the valkey-server candidate, which must be a 7.2 build.
    • Confirm the probe reads engine valkey, in use, not dormant.
    • The redis held step now restarts valkey-server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions