Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-40153: [C++][Python] Fix test_gdb failures on 32-bit #40293

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Feb 29, 2024

Rationale for this change

test_gdb.py would fail on 32-bit platforms because the gdb extension errors out when a timestamp value is larger than the platform's time_t.

What changes are included in this PR?

  1. Catch OverflowError from the Python datetime module when trying to format a timestamp
  2. Tweak the expected test results on 32-bit

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@pitrou
Copy link
Member Author

pitrou commented Feb 29, 2024

@github-actions crossbow submit -g python

This comment was marked as outdated.

@pitrou
Copy link
Member Author

pitrou commented Mar 4, 2024

@AlenkaF @jorisvandenbossche Does one of you want to comment on this?

@AlenkaF
Copy link
Member

AlenkaF commented Mar 4, 2024

No comment on the code, looks good to me.
The build that is testing 32-bit platforms is test-debian-11-python-3-i386 right?

@pitrou
Copy link
Member Author

pitrou commented Mar 5, 2024

The build that is testing 32-bit platforms is test-debian-11-python-3-i386 right?

Yes, it is.

@pitrou pitrou force-pushed the gh40153-test-gdb-i386 branch from 11012a9 to d42ed96 Compare March 5, 2024 10:45
@pitrou
Copy link
Member Author

pitrou commented Mar 5, 2024

@github-actions crossbow submit -g python

Copy link

github-actions bot commented Mar 5, 2024

Revision: d42ed96

Submitted crossbow builds: ursacomputing/crossbow @ actions-c765d70b22

Task Status
test-conda-python-3.10 GitHub Actions
test-conda-python-3.10-cython2 GitHub Actions
test-conda-python-3.10-hdfs-2.9.2 GitHub Actions
test-conda-python-3.10-hdfs-3.2.1 GitHub Actions
test-conda-python-3.10-pandas-latest GitHub Actions
test-conda-python-3.10-pandas-nightly GitHub Actions
test-conda-python-3.10-spark-v3.5.0 GitHub Actions
test-conda-python-3.10-substrait GitHub Actions
test-conda-python-3.11 GitHub Actions
test-conda-python-3.11-dask-latest GitHub Actions
test-conda-python-3.11-dask-upstream_devel GitHub Actions
test-conda-python-3.11-hypothesis GitHub Actions
test-conda-python-3.11-pandas-upstream_devel GitHub Actions
test-conda-python-3.11-spark-master GitHub Actions
test-conda-python-3.12 GitHub Actions
test-conda-python-3.8 GitHub Actions
test-conda-python-3.8-pandas-1.0 GitHub Actions
test-conda-python-3.8-spark-v3.5.0 GitHub Actions
test-conda-python-3.9 GitHub Actions
test-conda-python-3.9-pandas-latest GitHub Actions
test-cuda-python GitHub Actions
test-debian-11-python-3-amd64 Azure
test-debian-11-python-3-i386 GitHub Actions
test-fedora-39-python-3 Azure
test-ubuntu-20.04-python-3 Azure
test-ubuntu-22.04-python-3 GitHub Actions

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Mar 5, 2024
@pitrou
Copy link
Member Author

pitrou commented Mar 5, 2024

Test failures are unrelated.

@pitrou pitrou merged commit 53e0c74 into apache:main Mar 5, 2024
30 of 32 checks passed
@pitrou pitrou removed the awaiting committer review Awaiting committer review label Mar 5, 2024
@pitrou pitrou deleted the gh40153-test-gdb-i386 branch March 5, 2024 12:31
Copy link

After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit 53e0c74.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

mapleFU pushed a commit to mapleFU/arrow that referenced this pull request Mar 7, 2024
…#40293)

### Rationale for this change

`test_gdb.py` would fail on 32-bit platforms because the gdb extension errors out when a timestamp value is larger than the platform's time_t.

### What changes are included in this PR?

1. Catch `OverflowError` from the Python datetime module when trying to format a timestamp
2. Tweak the expected test results on 32-bit

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#40153

Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
thisisnic pushed a commit to thisisnic/arrow that referenced this pull request Mar 8, 2024
…#40293)

### Rationale for this change

`test_gdb.py` would fail on 32-bit platforms because the gdb extension errors out when a timestamp value is larger than the platform's time_t.

### What changes are included in this PR?

1. Catch `OverflowError` from the Python datetime module when trying to format a timestamp
2. Tweak the expected test results on 32-bit

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#40153

Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants