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

CI: Debug timeouts #55687

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
fe49050
CI: Debug timeouts
mroeschke Oct 25, 2023
2241aeb
Update run_tests.sh
lithomas1 Oct 25, 2023
d9c1e20
See if delay also appears with no xdist
mroeschke Oct 26, 2023
f780345
REF: Avoid np.can_cast for scalar inference for NEP 50
mroeschke Oct 26, 2023
64b03f9
Use helper function
mroeschke Oct 26, 2023
2b5c4b0
end->stop
mroeschke Oct 26, 2023
c55e46e
ignore typing
mroeschke Oct 26, 2023
6176b11
Address NEP 50 later
mroeschke Oct 26, 2023
8e75db6
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Oct 26, 2023
56ab63a
Merge branch 'ref/np/can_cast_avoid' into ci/debug
mroeschke Oct 26, 2023
c0372c5
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Oct 27, 2023
38455bd
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Oct 27, 2023
6e9d618
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Oct 27, 2023
28494ca
Set pyarrow set_io_thread_count
mroeschke Oct 28, 2023
ca4d504
SHow setup
mroeschke Oct 28, 2023
739511b
Trigger ci
mroeschke Oct 28, 2023
99b120c
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Oct 28, 2023
f871023
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Oct 29, 2023
db81d04
Set faulthanndler timeout
mroeschke Oct 29, 2023
8a01979
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Oct 30, 2023
4dc96ad
Use -o
mroeschke Oct 30, 2023
d1373df
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Oct 31, 2023
1e6f09a
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 3, 2023
dc4f3cb
Don't mess with cpu/io settings
mroeschke Nov 3, 2023
182f432
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 6, 2023
dcf0b8c
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 6, 2023
6abd6f4
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 7, 2023
0d61bf7
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 7, 2023
1bfe92d
Remove faulthandler
mroeschke Nov 7, 2023
dbe2383
use default workers
mroeschke Nov 7, 2023
aeab407
Skip test_invalid_parse_delimited_date
mroeschke Nov 7, 2023
dff4d37
Skip test_invalid_parse_delimited_date
mroeschke Nov 7, 2023
24349a5
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 8, 2023
656ef9d
test_index_col_empty_data
mroeschke Nov 8, 2023
446cbf8
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 9, 2023
0532b66
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 9, 2023
3d43075
Merge remote-tracking branch 'upstream/main' into ci/debug
mroeschke Nov 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo PYTHONHASHSEED=$PYTHONHASHSEED
COVERAGE="-s --cov=pandas --cov-report=xml --cov-append --cov-config=pyproject.toml"

# TODO: Support NEP 50 and remove NPY_PROMOTION_STATE
PYTEST_CMD="NPY_PROMOTION_STATE=legacy MESONPY_EDITABLE_VERBOSE=1 PYTHONDEVMODE=1 PYTHONWARNDEFAULTENCODING=1 pytest -r fEs -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $PYTEST_TARGET"
PYTEST_CMD="NPY_PROMOTION_STATE=legacy MESONPY_EDITABLE_VERBOSE=1 PYTHONDEVMODE=1 PYTHONWARNDEFAULTENCODING=1 pytest -v --setup-show -r fEs -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $PYTEST_TARGET"

if [[ "$PATTERN" ]]; then
PYTEST_CMD="$PYTEST_CMD -m \"$PATTERN\""
Expand Down
5 changes: 3 additions & 2 deletions pandas/tests/io/parser/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ def all_parsers(request):
pytest.importorskip("pyarrow", VERSIONS["pyarrow"])
# Try finding a way to disable threads all together
# for more stable CI runs
import pyarrow
# import pyarrow

pyarrow.set_cpu_count(1)
# pyarrow.set_cpu_count(1)
# pyarrow.set_io_thread_count(1)
return parser


Expand Down
16 changes: 14 additions & 2 deletions pandas/tests/io/parser/test_index_col.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import numpy as np
import pytest

from pandas.compat import is_ci_environment

from pandas import (
DataFrame,
Index,
Expand Down Expand Up @@ -94,7 +96,6 @@ def test_infer_index_col(all_parsers):
tm.assert_frame_equal(result, expected)


@xfail_pyarrow # CSV parse error: Empty CSV file or block
@pytest.mark.parametrize(
"index_col,kwargs",
[
Expand Down Expand Up @@ -134,9 +135,20 @@ def test_infer_index_col(all_parsers):
),
],
)
def test_index_col_empty_data(all_parsers, index_col, kwargs):
def test_index_col_empty_data(all_parsers, index_col, kwargs, request):
data = "x,y,z"
parser = all_parsers
if parser.engine == "pyarrow":
if is_ci_environment():
pytest.skip(f"Can hang in CI environment with {parser.engine=}")
else:
mark = pytest.mark.xfail(
reason=(
"CSV parse error: Empty CSV file or block: "
"cannot infer number of columns"
)
)
request.applymarker(mark)
result = parser.read_csv(StringIO(data), index_col=index_col)

expected = DataFrame(**kwargs)
Expand Down
15 changes: 13 additions & 2 deletions pandas/tests/io/parser/test_parse_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

from pandas._libs.tslibs import parsing
from pandas._libs.tslibs.parsing import py_parse_datetime_string
from pandas.compat import is_ci_environment

import pandas as pd
from pandas import (
Expand Down Expand Up @@ -1752,13 +1753,23 @@ def test_parse_timezone(all_parsers):
tm.assert_frame_equal(result, expected)


@xfail_pyarrow # pandas.errors.ParserError: CSV parse error
@pytest.mark.parametrize(
"date_string",
["32/32/2019", "02/30/2019", "13/13/2019", "13/2019", "a3/11/2018", "10/11/2o17"],
)
def test_invalid_parse_delimited_date(all_parsers, date_string):
def test_invalid_parse_delimited_date(all_parsers, date_string, request):
parser = all_parsers
if parser.engine == "pyarrow":
if is_ci_environment():
pytest.skip(f"Can hang in CI environment with {parser.engine=}")
else:
mark = pytest.mark.xfail(
reason=(
"CSV parse error: Empty CSV file or block: "
"cannot infer number of columns"
)
)
request.applymarker(mark)
expected = DataFrame({0: [date_string]}, dtype="object")
result = parser.read_csv(
StringIO(date_string),
Expand Down
Loading