Skip to content

Conversation

@robsliwi
Copy link
Contributor

@robsliwi robsliwi commented Nov 5, 2025

Changelog: https://github.com/ansible/ansible/blob/v2.20.0/changelogs/CHANGELOG-v2.20.rst

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 6.topic: python Python is a high-level, general-purpose programming language. labels Nov 5, 2025
@nix-owners nix-owners bot requested a review from HarisDotParis November 5, 2025 20:26
ansible = ansible_2_20;
ansible_2_20 = python3Packages.toPythonApplication python3Packages.ansible-core;
ansible_2_19 = python3Packages.toPythonApplication (
python3Packages.ansible-core.overridePythonAttrs (oldAttrs: rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we're trying to avoid these now: #421201

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for letting me know, haven't stumbled across this PR and the involved discussions yet. What would your proposal be? Removal of all Ansible versions that are using the overrides?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a package ansible_2_19 under pkgs/by-name that copies the expression for ansible-core instead of using overridePythonAttrs.
And yeah, consider removing old versions that we don't need anymore. Why do we keep them around rather than having downstream users do the overriding themselves if they absolutely have to?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ansible and ansible-core are currently part of pkgs/development/python-modules, also I myself am not sure how to do this as I want to reuse code but create a new package, right? Do you know of some good blueprint for the changes necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just thought about a bit and grepped at least through nixpkgs for the usage of the "older" versions and there was none.
We had reports about a build failure of ansible_2_17 in September but we can easily teach how to use "an older version" with overrides, an older commit of nixpkgs, etc.

Let's remove them and see what breaks and if somebody complains. Tried to achieve it with 89837eb but I'm not sure if the commit message fits the scheme. Otherwise I can remove them one by one to increase my commit count 📈 🤡

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do one commit per package that you remove. Also make sure to add an entry to pkgs/top-level/aliases.nix.

@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 8, 2025
@robsliwi robsliwi force-pushed the chore/bump-ansible-core-2-20 branch from eefaba1 to a3117b6 Compare November 9, 2025 18:43
@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 9, 2025
@robsliwi robsliwi force-pushed the chore/bump-ansible-core-2-20 branch from a3117b6 to 89837eb Compare November 9, 2025 18:54
@dotlambda dotlambda requested a review from mkg20001 November 9, 2025 19:09
@dotlambda dotlambda mentioned this pull request Nov 9, 2025
13 tasks
@robsliwi robsliwi changed the title ansible: 2.19.3 -> 2.20.0 ansible: 2.19.4 -> 2.20.0 Nov 9, 2025
@robsliwi robsliwi force-pushed the chore/bump-ansible-core-2-20 branch 2 times, most recently from e2caa77 to b710e7f Compare November 11, 2025 12:24
@mkg20001
Copy link
Member

I would like to vouch for keeping older versions, at least some

Upgrading ansible is sometimes associated with breakage and keeping one or two relativly new versions should be ok

@dotlambda
Copy link
Member

I would like to vouch for keeping older versions, at least some

Upgrading ansible is sometimes associated with breakage and keeping one or two relativly new versions should be ok

Then we should have a policy around which (or how many) versions to keep and we should move them to separate expressions.

@robsliwi
Copy link
Contributor Author

Upgrading ansible is sometimes associated with breakage and keeping one or two relativly new versions should be ok

I know this pain. But actually with Nix there is no problem with running ansible from an older nixpkgs commit.
And if it's really really needed for whatever specific reason there are the overrides that allow you to achieve whatever version you want, even one that is not in nixpkgs, not cached, or whatever.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/6135

@dotlambda dotlambda added this pull request to the merge queue Dec 7, 2025
@dotlambda dotlambda removed this pull request from the merge queue due to a manual request Dec 7, 2025
@dotlambda
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 458928
Commit: 47b2c8d0affdd4bdef0a12387c6967b0a9acc849


x86_64-linux

✅ 43 packages built:
  • ansible (python313Packages.ansible-core)
  • ansible-doctor
  • ansible-doctor.dist
  • ansible-lint
  • ansible-lint.dist
  • ansible-navigator
  • ansible-navigator.dist
  • ansible.dist (python313Packages.ansible-core.dist)
  • molecule (python313Packages.molecule)
  • molecule.dist (python313Packages.molecule.dist)
  • python312Packages.ansible-compat
  • python312Packages.ansible-compat.dist
  • python312Packages.ansible-core
  • python312Packages.ansible-core.dist
  • python312Packages.ansible-kernel
  • python312Packages.ansible-kernel.dist
  • python312Packages.ansible-runner
  • python312Packages.ansible-runner.dist
  • python312Packages.ansible-vault-rw
  • python312Packages.ansible-vault-rw.dist
  • python312Packages.dynaconf
  • python312Packages.dynaconf.dist
  • python312Packages.molecule
  • python312Packages.molecule.dist
  • python312Packages.pytest-ansible
  • python312Packages.pytest-ansible.dist
  • python312Packages.pytest-testinfra
  • python312Packages.pytest-testinfra.dist
  • python313Packages.ansible-compat
  • python313Packages.ansible-compat.dist
  • python313Packages.ansible-kernel
  • python313Packages.ansible-kernel.dist
  • python313Packages.ansible-runner
  • python313Packages.ansible-runner.dist
  • python313Packages.ansible-vault-rw
  • python313Packages.ansible-vault-rw.dist
  • python313Packages.dynaconf
  • python313Packages.dynaconf.dist
  • python313Packages.pytest-ansible
  • python313Packages.pytest-ansible.dist
  • python313Packages.pytest-testinfra
  • python313Packages.pytest-testinfra.dist
  • scap-security-guide

@dotlambda dotlambda added this pull request to the merge queue Dec 7, 2025
Merged via the queue into NixOS:master with commit 35f5c43 Dec 7, 2025
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants