Skip to content

chore(deps): remove the activitywatch overrides (peewee 3 pin + aw-qt wrapper args) once nixpkgs' activitywatch builds stock #4005

Closed

Description

@dezren39

Context

Found via #2715 (the 2026-10-30 nixpkgs update). The update moves the nixpkgs-25 input from e7439b6b to 31ecbaca. nixos/environment/default.nix takes activitywatch from that input's raw legacyPackages segment. On the new pin, python3.14-aw-core-0.5.17 fails its pythonRuntimeDepsCheck:

Checking runtime dependencies for aw_core-0.5.17-py3-none-any.whl
  - peewee==3.* not satisfied by version 4.4.0

aw-core 0.5.17's wheel metadata pins peewee==3.*, but the tree now ships peewee 4.4.0. The identical aw-core derivation (and peewee 4.4.0) appears on the new master and unstable pins too, so no current pin offers a consistent set to source activitywatch from; the failure cascades aw-core -> aw-qt/aw-client -> activitywatch -> man-paths -> system-path and blocks the amd toplevel.

The temporary fix

nixos/environment/default.nix extends the nixpkgs-25 legacyPackages set (nixpkgs-25-fixed, next to nixpkgs-master-fixed) with a python3 packageOverride that adds pythonRelaxDeps = [ "peewee" ] to aw-core, and the activitywatch segment uses the extended set. This rewrites the stale metadata pin so the runtime-deps check accepts peewee 4.4.0. Caveat: it does not prove aw-core's peewee API usage is 4.x-compatible at runtime — it is the standard nixpkgs remedy for this skew class, and activitywatch is a local user application, not a system service.

Removal condition

Remove once stock activitywatch builds on the pin the segment consumes — i.e. upstream nixpkgs bumps aw-core for peewee 4 (or pins peewee 3 for the aw-* packages), so python3Packages.aw-core passes pythonRuntimeDepsCheck unmodified.

Removal test

Point the activitywatch segment back at inputs.nixpkgs-25.legacyPackages.${system} (deleting the nixpkgs-25-fixed binding) and build activitywatch plus config.system.build.toplevel for amd; both must succeed, and aw-core should still launch (aw-server --help or the activitywatch binaries present in the system profile).

Acceptance criteria

  • A current nixpkgs pin (25 / master / unstable, whichever first) ships an aw-core whose peewee requirement is consistent with the tree's peewee version — verified by evaluating the activitywatch derivation from that pin with no overrides.
  • The peewee 3 pin and aw-qt wrapper-args overrides in nixos/environment/default.nix are removed, and activitywatch still builds and launches from the unmodified pin.
  • If no pin qualifies yet, the blocking pin state is re-recorded on the issue with the date checked (the issue stays open as the waiting record).

Activity

  1. changed the title [-]chore(deps): remove the aw-core peewee relaxDeps override once nixpkgs' activitywatch builds stock[/-] [+]chore(deps): remove the activitywatch overrides (peewee 3 pin + aw-qt wrapper args) once nixpkgs' activitywatch builds stock[/+] on Nov 1, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    Final fix shape (commit d201b4e on chore/nixpkgs-update-2026-10-30) — supersedes the relaxDeps approach in the original body:

    1. peewee pin, not relaxDeps. A pythonRelaxDeps = [ "peewee" ] on aw-core was tried first: it passes pythonRuntimeDepsCheck, but aw-core's own test suite then fails at collection — aw_datastore/storages/peewee.py does from playhouse.sqlite_ext import SqliteExtDatabase, a name peewee 4 removed. The incompatibility is real at runtime, so relaxing the metadata would have shipped a broken aw-server. Instead the nixpkgs-25-fixed extension pins peewee 3.17.9 (last 3.x, satisfies aw-core's peewee==3.*) in the set's python314 packageOverrides, with cython dropped from its buildInputs (3.17.9's .pyx sources no longer compile under the tree's Cython 3.3; peewee builds from its pre-generated C sources without it). Evidence: with the pin, aw-core builds AND its full pytest suite passes against peewee 3.17.9.
    2. aw-qt wrapper args. A second, independent breakage hidden behind the first: aw-qt's makeWrapperArgs use the single-string form "--suffix PATH : ...", which the tree's C makeWrapper rejects (makeCWrapper: Unknown argument). The extension restates them in split form on the top-level aw-qt attribute (aw-qt is built by the office/activitywatch expression from the set's python3Packages, so the override must sit on the top-level attribute, not inside python3Packages — verified by derivation hash).

    Verified end-to-end: the extended activitywatch derivation realises cleanly, and the amd config's systemPackages reference exactly that derivation.

    Removal condition (updated): delete the nixpkgs-25-fixed binding and point the activitywatch segment back at the raw legacyPackages once stock activitywatch builds on the consuming pin — i.e. upstream bumps aw-core for peewee 4 (or pins peewee 3 for the aw-* packages) AND stock aw-qt wraps successfully. Removal test unchanged.

  3. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    Second site (commit bcea7dc): activitywatch has TWO consumers on two different raw sets. Besides the systemPackages segment (nixpkgs-25, fixed in d201b4e), home/common/default.nix runs a home-manager services.activitywatch whose package comes from inputs.nixpkgs-stable.legacyPackages — the stable pin (086873f3) carries the identical breakage, and the toplevel kept failing on the stock aw-core through that path.

    The home module now carries a mirrored nixpkgs-stable-fixed binding with the same overrides, and the service takes its package from it. Removal: delete BOTH bindings (this one and nixpkgs-25-fixed) and restore both raw references once stock activitywatch builds on both pins. Verified by derivation hash: the amd toplevel graph now contains zero stock aw-core/aw-qt/activitywatch derivations.

  4. added
    kind/infrastructureInfrastructure / host-portability work
    priority/lowNice to have; do when convenient
    effort/sSmall: expected under 2 hours of work
    area/nixNix expressions, flakes, and packaging
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 2, 2026
  5. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    Intake review

    • Related: issue chore(deps): nixpkgs update blocked 2026-10-30 #2715 (the 2026-10-30 nixpkgs update that surfaced the conflict).
    • Notes: This issue had no labels at all; normalized this pass. It is explicitly conditional — the overrides come out only once an upstream pin offers a consistent aw-core/peewee set, and the body shows none did at filing. Verified still live: the condition is upstream-dependent, so no merged PR in this repo could have resolved it at filing time.
    • Risks: Removing the overrides before a pin qualifies breaks the activitywatch build (pythonRuntimeDepsCheck failure quoted in the body).
    • Suggested approach: Re-check on each nixpkgs update sweep; the first pin where aw-core evaluates clean without overrides triggers the removal PR.

    — Fleet monitor intake, 2026-11-01 20:12 CST run.

  6. 79 remaining items

  7. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  8. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    \ud83e\udd16 Agent note \u00b7 handed off\n- Agent: queue worker (repo-worker-code), lane code-o\n- Session / ID: task 12144\n- Found via: queue claim\n- Task: Work on issue #4005 \u2014 handed off to the opencode claimant per \u00a71b (assigned_lane=opencode); this lane does not work it directly.\n- Expectation: claimant launches the bound opencode session; task parked 1200s for the claimant window.\n- Links: issue #4005\n

  9. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  10. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Agent note — task 12144 (triage, issue #4005), lane code-g. Handed off to the opencode claimant per execution-lane assignment. Attempts 8/12. Flag: lane ledger executed_lane is still null — the claimant has never bound this task; this is the fleet-wide claimant outage flagged repeatedly today. Prior partial work exists on branch queue/12144-4005-aw-overrides-triage (laptop worktree /home/user/git/fleet/12144) per the task checkpoint. Parking for the claimant.

  11. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Triage verdict — real-and-current override; stock aw-core still pins peewee==3.* on the consumed pin

    • Agent: repo queue worker (repo-worker-code), lane aea12c82-c5af-4e5a-9b66-f8e360f87177
    • Queue / task: repo-health-code-pilot · task 12144 (triage), 2026-11-08

    Re-verified:

    • The override is gone from main. git show main:nixos/environment/default.nix has no peewee, no aw-core, and no aw-qt text at all; nixos/environment/default.nix:13-14 still points the activitywatch segment at nixpkgs-25-fixed (line 866), but nixpkgs-25-fixed now carries only the unrelated regex-pcre overlay (lines 35-100). grep -c peewee main:nixos/environment/default.nix → 0.
    • The landed fix lives on a closed PR. Commit d201b4e391 ("fix(nixpkgs): pin peewee 3 and fix aw-qt wrapper args so activitywatch builds") is on branch chore/nixpkgs-update-2026-10-30 and its PR chore(deps): nixpkgs update 2026-10-30 #4519 is CLOSED (author dezren39). git merge-base --is-ancestor d201b4e391 main → not an ancestor.
    • Upstream has moved past 0.5.17 but not past the peewee skew. At the consumed pin nixpkgs-25 = 1d060086d60c (flake.lock, lastModified 1793726008), pkgs/development/python-modules/aw-core/default.nix is v0.5.18 with pythonRelaxDeps = [ "platformdirs" ] only — it still takes the tree's peewee (4.x) with no peewee relaxation, so the removal condition ("upstream bumps aw-core for peewee 4 or pins peewee 3") has not been met. Note aw-qt/aw-server-rust are no longer at the by-name paths I probed (404), so the aw-qt wrapper half needs re-checking whenever the removal is attempted.

    Verdict: REAL and CURRENT — the temporary override is not present on main (so nothing is armed to remove), while the underlying pin skew it exists to work around is still unresolved upstream at the consumed rev. The issue cannot be closed as "stock now builds".

    Disposition: convert to a small_fix packet for the remainder — establish whether the working override should re-land on main (it exists only on the closed PR #4519's branch, and main's nixpkgs-25-fixed currently has no activitywatch overrides at all, so the activitywatch segment at line 866 is likely unresolvable on main today), then either re-apply it with the removal test recorded, or retire the segment if the amd toplevel no longer needs it. Do not close on the upstream claim alone: aw-core 0.5.18 at 1d060086 still ships no peewee pin.

  12. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    agent-note:v1
    lane: code-x
    task: 13871
    stage: triage-verified -> done (closing #4005 as satisfied on current main)

    TRIAGE VERDICT for task 13871: #4005 is fully satisfied on current main; there is no override left to remove, because the overrides never landed on main.

    Evidence (fresh 2026-11-09, laptop ~/git/code @1f5ac11276):

    1. The peewee-3 pin + aw-qt wrapper commits d201b4e and bcea7dc exist ONLY on branch chore/nixpkgs-update-2026-10-30 (remotes origin/up) - they are not ancestors of main, and no peewee / aw-qt / activitywatch override exists in any .nix file on main.
    2. The second consumer from bcea7dc (home-manager services.activitywatch on nixpkgs-stable) is gone: home/common/default.nix has no activitywatch reference and the nixpkgs-stable input was dropped (nixpkgs: drop the nixpkgs-master input — amd should draw only from nixos-unstable (Drew directive) #3327).
    3. Removal condition is met upstream on the pin main actually consumes: nixpkgs-25 is pinned to 1d060086d60cb76a40cf37109f979d88a5bd6396 (bump faa9f25 on main), where:
      • aw-core is 0.5.18 (was 0.5.17) and its nixpkgs definition relaxes only platformdirs - no peewee pin or relax needed against peewee 4.4.0;
      • aw-qt in pkgs/applications/office/activitywatch/default.nix already uses the split-form makeWrapperArgs (lines 117-122).
    4. nixos/environment/default.nix line 866 takes activitywatch from nixpkgs-25-fixed, whose only overlay is the unrelated chore(deps): remove the nixpkgs-25 regex-pcre pkg-config/pcre override once stock regex-pcre builds at the channel rev #5447 regex-pcre/misfortune fix.

    So both skews #4005 tracked are fixed upstream on the current pin, and the temporary local overrides are absent from main. Closing #4005 with this evidence per task 13871 acceptance (fully satisfied by landed/upstream work). No follow-up fix packet is needed.

  13. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
  14. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    agent-note:v1 CORRECTION
    lane: code-x
    task: 13871
    Correcting one evidence line in note 6729669030: home/common/default.nix DOES reference activitywatch (lines 535-537) - a home-manager services.activitywatch whose package is the STOCK inputs.nixpkgs-unstable.legacyPackages activitywatch, with no peewee/aw-qt override. The earlier claim of no activitywatch reference there was a failed grep on this lane. The verdict is unchanged and is in fact strengthened: neither consumer site (nixos/environment/default.nix, home/common/default.nix) carries any peewee-3 pin or aw-qt wrapper override on main - both take stock activitywatch, and the override commits d201b4e/bcea7dc0ab2a remain branch-only (chore/nixpkgs-update-2026-10-30).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/nixNix expressions, flakes, and packagingeffort/sSmall: expected under 2 hours of workkind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions