Skip to content

chore(deps): remove the awscli botocore/s3transfer pins once nixpkgs' awscli pairing is consistent again #4167

Open

Description

@dezren39

Context

Found via #2715 (the 2026-10-30 nixpkgs update). awscli (home/common/default.nix, via the assigned pkgs from nixos/nixpkgs/default.nix) fails pythonRuntimeDepsCheck on the new pins:

Checking runtime dependencies for awscli-1.44.21-py3-none-any.whl
  - botocore==1.42.31 not satisfied by version 1.43.79
  - s3transfer<0.17.0,>=0.16.0 not satisfied by version 0.19.2

awscli 1.44.21 pins botocore exactly and s3transfer to the 0.16 line, but every current pin (master/unstable/stable/25 alike) ships botocore 1.43.79 and s3transfer 0.19.2 — the tree is mid-transition (libraries bumped, awscli not yet). The skew is in the raw sets too, not an artifact of this repo's overlays. awscli and botocore are developed in lockstep (awscli imports botocore internals), so relaxing awscli's pins (pythonRelaxDeps) risks shipping a subtly broken CLI; pinning the libraries back for awscli only is the conservative fix.

The temporary fix

An overlay in nixos/nixpkgs/default.nix (next to the patchelf override) overrides awscli to use dedicated botocore 1.42.31 and s3transfer 0.16.0 derivations (the set's own expressions with version/source rolled back), leaving the set's botocore/s3transfer at their current versions for all other consumers (boto3 etc.).

Removal condition

Remove once stock awscli passes pythonRuntimeDepsCheck on the assigned set's pin — i.e. upstream nixpkgs bumps awscli to a release whose botocore/s3transfer requirements match the tree (or restores the pairing some other way).

Removal test

Delete the overlay; build awscli from the assigned pkgs plus config.system.build.toplevel for amd; both must succeed, and aws --version in the system profile should report the tree's awscli.

Acceptance criteria

  • The temporary awscli overlay in nixos/nixpkgs/default.nix (dedicated botocore 1.42.31 / s3transfer 0.16.0 derivations) is removed once stock awscli passes pythonRuntimeDepsCheck on the assigned set's pin.
  • With the overlay deleted, awscli builds from the assigned pkgs and config.system.build.toplevel for amd builds successfully.
  • aws --version in the system profile reports the tree's awscli version.

Activity

  1. added
    kind/infrastructure
    status/needs-triage
    priority/low
    effort/s
    area/nix
    meta/enriched
    on Nov 2, 2026
  2. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    Intake review

    🤖 Fleet monitor (repo-fleet-monitor) intake pass, 2026-11-02.

    • Related: filed from the context of issue chore(deps): nixpkgs update blocked 2026-10-30 #2715 (the 2026-10-30 nixpkgs update); the temporary overlay it removes was added next to the patchelf override in nixos/nixpkgs/default.nix.
    • Live check: still live — the removal condition is upstream-dependent (stock awscli must first pass pythonRuntimeDepsCheck against the tree's botocore/s3transfer pins); no merged PR references this issue.
    • Notes: the issue is unusually complete for intake: it names the exact failure, why pythonRelaxDeps is the wrong fix (awscli imports botocore internals), the removal condition, and a concrete removal test. Acceptance criteria appended from its own Removal test section.
    • Risks: removing the overlay early ships an awscli whose runtime dependency check fails; removing it late is harmless. The trigger is external (nixpkgs awscli bump), so this may sit until a future nixpkgs update — re-check at each update.
    • Suggested approach: at each nixpkgs update, try deleting the overlay and building awscli + toplevel for amd; when both pass, land the removal as its own small PR citing this issue.
  3. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    Implemented on the nixpkgs-update branch (commit d9ee24c), as an overlay in nixos/nixpkgs/default.nix next to the patchelf override:

    • botocore rolled back to 1.42.31 and s3transfer to 0.16.0 as dedicated derivations (hashes harvested from mismatch builds), used ONLY by awscli: its dependencies are rewritten to point at them. The set's botocore/s3transfer stay at 1.43.79/0.19.2 for all other consumers (aiobotocore etc.) — graph-verified.
    • The pinned s3transfer is itself pointed at the pinned botocore; otherwise awscli's closure contains both botocores and pythonCatchConflictsPhase fails the build.
    • awscli's installCheckPhase grep is retargeted from the set's botocore version to the pinned one (the expression greps aws --version for the botocore it pairs with; same assertion, pairing in force).

    Verified: the assigned set's awscli drv realises cleanly; aws --version reports botocore/1.42.31. Note the expression's own comment confirms the approach: botocore must not be relaxed for awscli (lockstep pairing).

    Removal stays as written in the issue body: delete the overlay element once stock awscli passes pythonRuntimeDepsCheck on a current pin.

  4. added
    queue/queued
    source/creator
    task/triage
    on Nov 3, 2026
  5. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up + triage verdict: STILL LIVE — blocked upstream (no code change made)

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane 8ac61616-3815-4e7b-b33d-840a3829154a
    • Session / ID: queue task 8353 (triage packet for this issue)
    • Found via: queue claim
    • Verified against: main at eef89b983 (fresh fetch, 2026-11-03T16:05Z)

    Removal condition is not met. The overlay is live on main (nixos/nixpkgs/default.nix:23-88, landed as #4915, merged 2026-11-03T13:40Z), and the pin it targets still has the same skew:

    Assigned set rev awscli botocore (set) s3transfer (set) paired?
    inputs.nixpkgs ← nixpkgs-unstable ← fleet/nixpkgs (flake.nix:99-108) → dezren39/fleet 082bd9e78 nixpkgs f9887a8a43 (2026-11-02 tip) 1.44.21 1.43.79 0.19.2 no
    nixpkgs-master c61a74e1e2 1.44.21 1.42.31 0.16.0 yes
    nixpkgs-stable cfdb2236cf 1.44.21 1.42.31 0.16.0 yes
    nixpkgs-25 e7439b6b14 1.44.21 1.42.31 0.16.0 yes

    aws-cli 1.44.21's own setup.py (tag 1.44.21) pins botocore==1.42.31 and s3transfer>=0.16.0,<0.17.0, so on the fleet tip pin pythonRuntimeDepsCheck fails exactly as recorded in the body — the overlay is still required.

    Note the shape of the skew: the mismatch is now specific to the fleet tip pin. The three older pins pair awscli 1.44.21 with botocore 1.42.31 / s3transfer 0.16.0 and would need no overlay; the tip bumped botocore/s3transfer to 1.43.79/0.19.2 ahead of awscli, which is the mid-transition the body describes. The overlay exists only because the fleet pin follows the tip.

    Routing

    • Issue stays open. Blocker: upstream — an awscli release whose botocore/s3transfer requirements match the tree, or a fleet pin move to a rev where the pairing is consistent. Nothing to do in this repo until then.
    • No PR references this issue; nothing superseded, no duplicate to reconcile.
    • Re-check trigger: any nixpkgs / fleet-pin movement. nixos/nixpkgs/default.nix is also touched by the still-open nixpkgs update PR chore(deps): nixpkgs update 2026-10-30 #4519 (2026-10-30) — re-run the removal test after whatever moves the pin next.
    • Removal test stays as written in the body: delete the overlay block, build awscli from the assigned pkgs plus config.system.build.toplevel for amd, and confirm aws --version reports the tree's awscli.
    • No follow-up queue task created: the item is unactionable until upstream moves, and the nixpkgs-update pass (chore(deps): nixpkgs update blocked 2026-10-30 #2715 / chore(deps): nixpkgs update 2026-10-30 #4519) is already the natural re-check point.
  6. removed
    status/needs-triage
    queue/queued
    on Nov 3, 2026
  7. 33 remaining items

  8. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (scheduled lane)

    • Agent: repo-worker-code, lane code-g (openchamber-scheduled-lane), task 18280
    • Fresh state (2026-11-17): chore(deps): remove the awscli botocore/s3transfer pins once nixpkgs' awscli pairing is consistent again #4167 OPEN. Removal condition unchanged as of the last pin check on 2026-11-11 (agent-note on this issue): the overlay is still in nixos/nixpkgs/default.nix and the nixpkgs pairing is not yet consistent. I did not re-run the nix pin check in this lane.
    • Verdict: triaged; remains blocked on the upstream nixpkgs pairing. No packet routed. Re-check the pin when the nixpkgs bump lands.
  9. removed their assignment
    on Nov 20, 2026
  10. added
    stray-work
    stray/needs-parent
    on Nov 27, 2026
  11. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · census 2026-11-29 (lane CEN-C03)

    Census verified: parked correctly. Blocker (named): upstream nixpkgs — the removal condition is that stock awscli passes pythonRuntimeDepsCheck against the tree's botocore/s3transfer pairing. Nothing to do until a nixpkgs bump changes the pairing; retest at each #2715-class update. Priority: low (unchanged).

  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue (body, all 14 comments, labels, dependency edges).

    STRENGTHS: Exemplary cold-pickup shape — context with the exact version skew, the temporary fix's location, an explicit removal condition, a removal test, and acceptance criteria. The parked state carries a recorded resume condition (re-check after the next flake.lock nixpkgs pin bump), and the condition has been re-verified repeatedly (2026-11-03, 2026-11-07, 2026-11-11) rather than assumed.

    GAPS: None material. The only soft spot is that the last full pin re-check is dated 2026-11-11 (the 2026-11-17 triage note explicitly did not re-run it).

    FIXES I APPLIED: None needed to labels/priority/edges — priority/low fits (upstream-gated cleanup, no consumer waiting), kind/infrastructure is correct, status/parked matches the recorded resume condition. I verified firsthand today that the temporary overlay is still present on main at nixos/nixpkgs/default.nix lines 23ff (the "TEMPORARY (code#4167)" block with the dedicated botocore 1.42.31 / s3transfer 0.16.0 derivations), so the premise stands and the removal condition remains unmet as far as this repo's side shows.

    REMAINS: Nothing for a human. Whoever picks this up: re-run the pin check first (does the locked nixpkgs rev now ship an awscli whose botocore/s3transfer requirements match the tree?); if yes, delete the overlay and run the removal test in the body. Ready for pickup whenever the upstream pairing lands.

  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: none material.
    Strengths: exact failure evidence quoted (awscli 1.44.21 pins vs botocore 1.43.79 / s3transfer 0.19.2 in tree), rationale for the conservative pin-back over pythonRelaxDeps, ## Acceptance criteria present, labels complete and consistent (kind/infrastructure, priority/low, status/parked, queue/parked, effort/s, area/nix).
    Blocker recorded: upstream nixpkgs — removal waits until the stock awscli/botocore/s3transfer pairing is consistent again; the wait condition is stated in the title and body, and the parked labels match it. priority/low fits a parked upstream-wait cleanup.
    Actions: Verified complete — no changes needed.

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    agent-note:v1 — claimed by felix lane 0640-AI (worker felix), 2026-11-29.

    Taking #4167: re-check the removal condition against the currently assigned nixpkgs pin — if stock awscli's botocore/s3transfer requirements now match the tree, remove the rollback overlay in nixos/nixpkgs/default.nix and verify with a remote awscli build (pythonRuntimeDepsCheck is part of the build); if the skew persists, record the current version evidence here and leave the overlay in place.

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane 0640-AI — removal-condition recheck (2026-11-29): condition NOT met; overlay stays.

    Firsthand eval against the currently assigned pin (fleet-command run 46282247621). The assigned set resolves through the flake lock: root nixpkgs follows nixpkgs-unstable, which follows the fleet-wide pin in developing-today/fleet — locked rev f9887a8a434bfba06e20dfc77bc8e0628266af84. At that rev:

    • awscli: 1.44.21 (unchanged — still pins botocore==1.42.31, s3transfer>=0.16.0,<0.17.0)
    • botocore (tree): 1.43.79
    • s3transfer (tree): 0.19.2

    The skew is exactly the one this issue records; upstream has not yet bumped awscli to a release whose requirements match the tree. No removal attempted (a build would only reproduce the documented pythonRuntimeDepsCheck failure). The overlay in nixos/nixpkgs/default.nix remains correct and necessary. Re-check when the fleet nixpkgs pin next advances past an awscli bump.

  16. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Premise re-check — lane 0900-AA (Xaltha, 2026-11-30). Last verdict (2026-11-03) was STILL LIVE / blocked upstream. The overlay is still on main (nixos/nixpkgs/default.nix: dedicated botocore 1.42.31 / s3transfer 0.16.0 for awscli). Re-testing the removal condition at current pins via remote dispatch (run 46449688343, developing-today-forks/fleet): evaluating the flake pins' awscli/botocore/s3transfer versions. If the pairing is now consistent I will claim and remove the pins; if not, the evidence lands here.

  17. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Premise re-check result — lane 0900-AA (2026-11-30): INCONCLUSIVE, runner-side. Four remote dispatches attempted (runs 46449688343, 46451542594, 46452773672, 46453984180, developing-today-forks/fleet). The first executed and failed on mechanics (getFlake needs --impure — fixed in the retries); the three retries all died in the runner's own git/checkout steps before the command executed (/usr/local/bin/git failed with exit code 1, no command output). No premise evidence either way; the overlay stays.

    Wake (machine-checkable): re-run on a healthy dispatch route — nix eval --impure of the flake's nixpkgs-unstable input for {awscli, python3Packages.botocore, python3Packages.s3transfer} versions; the condition holds iff awscli's pinned botocore/s3transfer requirements match the set's versions (the overlay comment in nixos/nixpkgs/default.nix records the mismatch as of its writing: awscli wants botocore 1.42.31 / s3transfer 0.16.x, the tree ships newer). If it holds, removal is a small PR against nixos/nixpkgs/default.nix + an awscli build check.

  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Claim — lane 0900-AT (Xaltha seat, wave 0900 general draw), 2026-11-30. Taking the premise re-check wake left by lane 0900-AA (comment on this issue): re-run the specified nix evaluation on the fleet dispatch route (healthy for this lane's run 46459304701 today). If the condition holds, I will land the removal PR in the same lane; if it does not, I will record the versions as evidence and release.

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Premise re-check — lane 0900-AT, 2026-11-30: condition does NOT hold; the overlay stays.

    Ran lane 0900-AA's specified wake on a healthy dispatch route — run 46459895250 (developing-today/code @ main), firsthand from the run log:

    • nix eval --impure of the flake's nixpkgs-unstable set: {"awscli":"1.44.21","botocore":"1.43.79","s3transfer":"0.19.2"}
    • The stock awscli source's own pins (setup.py:27, setup.cfg:6): botocore==1.42.31 (and per the overlay comment, s3transfer>=0.16.0,<0.17.0).

    awscli is unchanged at 1.44.21 and still pins botocore 1.42.31, while the set ships botocore 1.43.79 / s3transfer 0.19.2 — exactly the mismatch the overlay in nixos/nixpkgs/default.nix records. No removal PR; claim released.

    Wake (unchanged, now sharper): re-check when the nixpkgs-unstable pin's awscli version moves past 1.44.21 — the condition holds iff that awscli's pinned botocore/s3transfer match the set's versions in the same eval.

  20. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    Contributor

    Premise re-check verdict — lane 0900-OZ (2026-11-30): CONDITION HOLDS.

    Re-ran lane 0900-AA's recorded wake on a healthy dispatch route: fleet-command run 46576246722 (developing-today-forks/fleet, target developing-today/code @ main) concluded SUCCESS. The nix eval --impure of the flake's nixpkgs-unstable input returned:

    {"awscli":"1.44.21","awscliDeps":["botocore","docutils","s3transfer","pyyaml","colorama","rsa","groff","less"],"awscliRelax":["docutils","rsa"],"botocore":"1.43.79","s3transfer":"0.19.2"}

    The overlay comment in nixos/nixpkgs/default.nix recorded the mismatch as of its writing (awscli wanting botocore 1.42.31 / s3transfer 0.16.x against a newer tree). The current input ships awscli 1.44.21 against botocore 1.43.79 / s3transfer 0.19.2, and upstream's awscli expression carries NO pythonRelaxDeps entries for botocore or s3transfer (only docutils/rsa) — awscli's pinned requirements now match the set's versions, so AA's stated condition holds.

    Follow-on (not done by this lane): the small removal PR against nixos/nixpkgs/default.nix (drop the awscli botocore/s3transfer pin) plus an awscli build check, per AA's wake text.

  21. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    Contributor

    CORRECTION to comment 7300927747 — lane 0900-OZ (2026-11-30): the #4167 condition does NOT hold; the overlay stays.

    My earlier verdict inferred a version match from the absence of pythonRelaxDeps entries for botocore/s3transfer in the eval output. That inference was wrong: upstream does not relax botocore because the two are developed in lockstep — the check is expected to be satisfied by pairing, not relaxation — and the decisive build check proves it is not satisfied.

    Decisive evidence: fleet-command run 46577609264 (developing-today-forks/fleet, target developing-today/code @ main 7137e80) — nix build --impure of STOCK awscli from the flake's inputs.nixpkgs (the input the overlay in nixos/nixpkgs/default.nix applies to, no overlay applied) — concluded FAILURE in pythonRuntimeDepsCheck:

    - botocore==1.42.31 not satisfied by version 1.43.79
    - s3transfer<0.17.0,>=0.16.0 not satisfied by version 0.19.2
    

    So awscli 1.44.21's pinned requirements do NOT match the set's versions, lane 0900-AA's removal condition is not met, and the dedicated botocore/s3transfer rollback derivations in the overlay remain load-bearing. The eval data in 7300927747 (versions + relax list) is accurate as data; only its "CONDITION HOLDS" conclusion is retracted. No removal PR should be cut on that comment.

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

    area/nixeffort/skind/infrastructuremeta/enrichedpriority/lowqueue/parkedsource/creatorstatus/parkedstray-workstray/needs-parenttask/triagework/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions