Skip to content

python3Packages.pyarrow: disable test_timezone_absent on Darwin - #485004

Closed
mulatta wants to merge 1 commit into
NixOS:stagingfrom
mulatta:fix-pyarrow-test-darwin
Closed

mulatta wants to merge 1 commit into
NixOS:stagingfrom
mulatta:fix-pyarrow-test-darwin

Conversation

@mulatta

@mulatta mulatta commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

TZDIR handling differs on Darwin; test assumes /usr/share/zoneinfo fallback which doesn't apply on macOS.

Disable test_timezone_absent test on Darwin.

The test sets TZDIR to an empty directory expecting pyarrow to fail when reading ORC files with
timezone info. On Darwin, the system falls back to other timezone sources
(/var/db/timezone/zoneinfo/ or ICU), so no exception is raised:

FAILED pyarrow/tests/test_orc.py::test_timezone_absent
AssertionError: Should have raised exception

Fixes #483241

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.

@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Jan 29, 2026
github-actions[bot]

This comment was marked as outdated.

@nixpkgs-ci
nixpkgs-ci Bot requested review from cpcloud and veprbl January 29, 2026 09:42
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. labels Jan 29, 2026
@mulatta
mulatta changed the base branch from master to staging January 29, 2026 10:36
@nixpkgs-ci nixpkgs-ci Bot closed this Jan 29, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Jan 29, 2026
github-actions[bot]

This comment was marked as outdated.

TZDIR handling differs on Darwin; test assumes /usr/share/zoneinfo fallback
which doesn't apply on macOS.
@mulatta
mulatta force-pushed the fix-pyarrow-test-darwin branch from 2bd5d25 to 0edcedd Compare January 29, 2026 10:39
@github-actions
github-actions Bot dismissed their stale review January 29, 2026 10:40

Review dismissed automatically

@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jan 29, 2026
@mulatta mulatta closed this Feb 5, 2026
@mulatta
mulatta deleted the fix-pyarrow-test-darwin branch February 5, 2026 03:56
afh pushed a commit to afh/nixpkgs that referenced this pull request Aug 16, 2026
test_orc.py tests may fail on darwin because they try to read from
/usr/share/zoneinfo which may not work in darwin sandbox.

This was reported multiple times, see:
NixOS#477944
NixOS#485004
NixOS#483241

I also hit it myself in my personal flake CI.

This patch switches the test to use pure tzdata to avoid the sandbox
issue for darwin and re-enables one of previously skipped test_orc.py
cases (for both platforms).

Fixes NixOS#483241
highghlow pushed a commit to highghlow/nixpkgs that referenced this pull request Aug 20, 2026
test_orc.py tests may fail on darwin because they try to read from
/usr/share/zoneinfo which may not work in darwin sandbox.

This was reported multiple times, see:
NixOS#477944
NixOS#485004
NixOS#483241

I also hit it myself in my personal flake CI.

This patch switches the test to use pure tzdata to avoid the sandbox
issue for darwin and re-enables one of previously skipped test_orc.py
cases (for both platforms).

Fixes NixOS#483241
JulesdeCube pushed a commit to JulesdeCube/nixpkgs that referenced this pull request Aug 22, 2026
test_orc.py tests may fail on darwin because they try to read from
/usr/share/zoneinfo which may not work in darwin sandbox.

This was reported multiple times, see:
NixOS#477944
NixOS#485004
NixOS#483241

I also hit it myself in my personal flake CI.

This patch switches the test to use pure tzdata to avoid the sandbox
issue for darwin and re-enables one of previously skipped test_orc.py
cases (for both platforms).

Fixes NixOS#483241

(cherry picked from commit e119515)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: python3.13-pyarrow on darwin

1 participant