Skip to content

python314Packages.base64io: fix test_base64io_decode_readlines test - #566228

Merged
anthonyroussel merged 1 commit into
NixOS:masterfrom
abus-sh:base64io
Sep 25, 2026
Merged

anthonyroussel merged 1 commit into
NixOS:masterfrom
abus-sh:base64io

Conversation

@abus-sh

@abus-sh abus-sh commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Things done

Python 3.14 changed the value of io.DEFAULT_BUFFER_SIZE, which broke some assumptions in the test case test_base64io_decode_readlines. I changed the test case and test case parameters to depend on io.DEFAULT_BUFFER_SIZE to fix this. This change is backwards compatible with old versions that use the original value of io.DEFAULT_BUFFER_SIZE (tested with Python 3.13).

I have an open PR upstream to fix this issue. If the preference would be to wait and see if upstream accepts the changes, I can pause this PR until a decision is made there.

I believe this fix resolves parts of the following tracking issues:

@nixpkgs-ci
nixpkgs-ci Bot requested a review from anthonyroussel September 23, 2026 15:07
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 12.first-time contribution This PR is the author's first one; please be gentle! 6.topic: python Python is a high-level, general-purpose programming language. labels Sep 23, 2026
@iedame

iedame commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (d5406bd)

Command: nixpkgs-review pr 566228
Commit: 69e38791469be02258a3de454f82a77d5c800e2e (subsequent changes)
Merge: 26640dfde8f33a4ba4b2cddba54d2a0f7b230b78

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/35882162790/attempts/1


x86_64-linux

❌ 1 package failed to build:
  • aws-encryption-sdk-cli
✅ 2 packages built:
  • python314Packages.base64io
  • python313Packages.base64io

aarch64-linux

❌ 1 package failed to build:
  • aws-encryption-sdk-cli
✅ 2 packages built:
  • python313Packages.base64io
  • python314Packages.base64io

x86_64-darwin

✅ No rebuilds


aarch64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • aws-encryption-sdk-cli
✅ 2 packages built:
  • python313Packages.base64io
  • python314Packages.base64io

@abus-sh

abus-sh commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

After looking at the package that failed to build (aws-encryption-sdk-cli), it seems like that package has been broken since at least 2026-07-14 based on hydra logs. Prior to this PR, it was failing because base64io was broken. Now it fails because of its own unit tests. All failing unit tests don't seem to use base64io at all and are failing because of argparse. Therefore, I think that the issues with that package fall out of scope for this PR. I'll still git-bisect to confirm.

@abus-sh

abus-sh commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

After further research, aws-encryption-sdk-cli is failing because it relies on an argparse feature that was removed in Python 3.14 (nesting mutually exclusive args, removed in this PR). Its failure to build isn't related to this PR.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Sep 25, 2026
@anthonyroussel
anthonyroussel added this pull request to the merge queue Sep 25, 2026
Merged via the queue into NixOS:master with commit c6e9440 Sep 25, 2026
36 of 38 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: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants