Skip to content

Commit

Permalink
debug CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeleobas committed Aug 1, 2023
1 parent a80f25b commit 30fc632
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rbc_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
heavydb:
name: Heavydb ${{ matrix.heavydb-version }} - ${{ matrix.os }} - Numba v${{matrix.numba-version}} - Python v${{ matrix.python-version }} [${{ matrix.heavydb-from }}]
runs-on: ${{ matrix.os }}
timeout-minutes: 50
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions rbc/stdlib/manipulation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
expose = Expose(globals(), "manipulation_functions")


@expose.implements("concat")
@expose.not_implemented("concat")
def _array_api_concat(*arrays):
"""
Joins a sequence of arrays along an existing axis.
Expand Down Expand Up @@ -84,7 +84,7 @@ def _array_api_expand_dims(x, *, axis=0):
pass


@expose.implements("flip")
@expose.not_implemented("flip")
def _array_api_flip(x):
"""
Reverses the order of elements in an array along the given axis.
Expand Down
2 changes: 1 addition & 1 deletion rbc/stdlib/searching_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def impl(x):
return impl


@expose.implements("where")
@expose.not_implemented("where")
def _array_api_where(condition, x1, x2):
"""
Returns elements chosen from `x1` or `x2` depending on `condition`.
Expand Down
9 changes: 6 additions & 3 deletions rbc/tests/heavydb/test_array_api_manipulation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ def heavydb():


def define(heavydb):
@heavydb('T[](T[])', T=list(dtypes))
def flip(x):
return array_api.flip(x)
return
# @heavydb('T[](T[])', T=list(dtypes))
# def flip(x):
# return array_api.flip(x)


@pytest.mark.skip
@pytest.mark.parametrize('dtype', dtypes)
def test_flip(heavydb, dtype):
table = heavydb.table_name + 'arraynullrepeat'
Expand All @@ -39,6 +41,7 @@ def test_flip(heavydb, dtype):
np.testing.assert_array_equal(np.flip(val), got)


@pytest.mark.skip
@pytest.mark.parametrize('args', itertools.combinations(dtypes, r=3))
def test_concat(heavydb, args):
heavydb.unregister()
Expand Down
14 changes: 8 additions & 6 deletions rbc/tests/heavydb/test_array_api_searching_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def argmin(arr):
def argmax(arr):
return array_api.argmax(arr)

@heavydb('T[](T[])', T=T)
def rbc_where(a):
cond = []
for i in range(len(a)):
cond.append(True if i % 2 else False)
return array_api.where(cond, a, array_api.flip(a))
# @heavydb('T[](T[])', T=T)
# def rbc_where(a):
# cond = []
# for i in range(len(a)):
# cond.append(True if i % 2 else False)
# return array_api.where(cond, a, array_api.flip(a))


@pytest.mark.parametrize('fn', ('nonzero', 'argmin', 'argmax'))
Expand Down Expand Up @@ -65,6 +65,7 @@ def test_nonzero_argmin_argmax(heavydb, fn, col):
dtypes = ('bool', 'int8', 'int16', 'int32', 'int64', 'float32', 'float64')


@pytest.mark.skip
@pytest.mark.parametrize('typ', dtypes)
def test_where(heavydb, typ):
table = heavydb.table_name + 'arraynullrepeat'
Expand All @@ -83,6 +84,7 @@ def test_where(heavydb, typ):
np.testing.assert_array_equal(expected, got)


@pytest.mark.skip
@pytest.mark.parametrize('dtypes', [
('int16', 'int64'),
('int64', 'int16'),
Expand Down

0 comments on commit 30fc632

Please sign in to comment.