Skip to content

Commit 5cea644

Browse files
committed
test
1 parent e2c8ab4 commit 5cea644

File tree

4 files changed

+18
-89
lines changed

4 files changed

+18
-89
lines changed

.github/workflows/build-wheels.yml

Lines changed: 2 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -23,52 +23,6 @@ env:
2323
TILEDB_TOKEN: ${{ secrets.TILEDB_TOKEN }}
2424

2525
jobs:
26-
build_wheels:
27-
name: Wheel ${{ matrix.buildplat[0] }}-${{ matrix.buildplat[1] }}-${{ matrix.python }}
28-
runs-on: ${{ matrix.buildplat[0] }}
29-
strategy:
30-
matrix:
31-
buildplat:
32-
- [ubuntu-22.04, manylinux_x86_64]
33-
- [linux-arm64-ubuntu24, manylinux_aarch64]
34-
- [macos-13, macosx_x86_64]
35-
- [macos-14, macosx_arm64]
36-
- [windows-2022, win_amd64]
37-
python: ["cp39", "cp310", "cp311", "cp312", "cp313"]
38-
39-
steps:
40-
- uses: actions/checkout@v4
41-
42-
- name: "Brew setup on macOS" # x-ref c8e49ba8f8b9ce
43-
if: ${{ startsWith(matrix.buildplat[0], 'macos-') == true }}
44-
run: |
45-
set -e pipefail
46-
brew update
47-
brew install automake pkg-config ninja llvm
48-
49-
- name: Build wheels
50-
uses: pypa/[email protected]
51-
env:
52-
CIBW_BUILD_VERBOSITY: 3
53-
CIBW_ENVIRONMENT_PASS_LINUX: SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TILEDB S3_BUCKET TILEDB_TOKEN TILEDB_NAMESPACE
54-
CIBW_ENVIRONMENT_MACOS: >
55-
CC=clang
56-
CXX=clang++
57-
MACOSX_DEPLOYMENT_TARGET: "11.0"
58-
CIBW_ARCHS: all
59-
CIBW_PRERELEASE_PYTHONS: True
60-
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
61-
# __init__.py interferes with the tests and is included as local file instead of
62-
# used from wheels. To be honest, tests should not be in the source folder at all.
63-
CIBW_BEFORE_TEST: rm {project}/tiledb/__init__.py
64-
with:
65-
output-dir: wheelhouse
66-
67-
- uses: actions/upload-artifact@v4
68-
with:
69-
name: cibw-wheels-${{ matrix.buildplat[0] }}-${{ matrix.buildplat[1] }}-${{ matrix.python }}
70-
path: "./wheelhouse/*.whl"
71-
7226
build_sdist:
7327
name: Build source distribution
7428
runs-on: ubuntu-latest
@@ -96,12 +50,9 @@ jobs:
9650
strategy:
9751
matrix:
9852
os:
99-
- macos-13
100-
- macos-14
101-
- windows-2022
10253
- ubuntu-22.04
10354
- linux-arm64-ubuntu24
104-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
55+
python: ["3.12"]
10556
runs-on: ${{ matrix.os }}
10657
steps:
10758
- name: Set up Python ${{ matrix.python }}
@@ -129,37 +80,4 @@ jobs:
12980
PROJECT_CWD=$PWD
13081
rm tiledb/__init__.py
13182
cd ..
132-
pytest -vv --showlocals $PROJECT_CWD
133-
134-
- name: "Re-run tests without pandas"
135-
run: |
136-
pip uninstall -y pandas
137-
pytest -vv --showlocals $PROJECT_CWD
138-
139-
upload_pypi:
140-
needs: [build_wheels, test_sdist]
141-
runs-on: ubuntu-latest
142-
environment: pypi
143-
permissions:
144-
id-token: write
145-
outputs:
146-
package_version: ${{ steps.get_package_version.outputs.package_version }}
147-
steps:
148-
- uses: actions/download-artifact@v4
149-
with:
150-
path: dist
151-
merge-multiple: true
152-
153-
- id: get_package_version
154-
run: |
155-
echo "package_version=$(ls dist/ | head -n 1 | cut -d - -f 2)" >> "$GITHUB_OUTPUT"
156-
157-
- name: Upload to test-pypi
158-
if: inputs.test_pypi
159-
uses: pypa/gh-action-pypi-publish@release/v1
160-
with:
161-
repository-url: https://test.pypi.org/legacy/
162-
163-
- name: Upload to pypi
164-
if: startsWith(github.ref, 'refs/tags/')
165-
uses: pypa/gh-action-pypi-publish@release/v1
83+
pytest -o log_cli=true --log-cli-level=10 $PROJECT_CWD/tiledb/tests/test_schema_evolution.py -k test_schema_evolution_drop_fixed_attribute_and_add_back_as_var_sized

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ if (NOT TileDB_FOUND)
4646
message(STATUS "Downloading TileDB default version ...")
4747
# Download latest release
4848
fetch_prebuilt_tiledb(
49-
VERSION 2.26.2
50-
RELLIST_HASH SHA256=86c19d7c5246cb18e370a4272cead63ea84bd651789842e618de4d57d4510522
51-
)
49+
VERSION 2.27.0.rc5
50+
RELLIST_HASH SHA256=143b93bda4beaa241e7b2013336a6f4556a98eb50006135e79860acd11f80f7f
51+
)
5252
endif()
5353
find_package(TileDB REQUIRED)
5454
set(TILEDB_DOWNLOADED TRUE)

tiledb/core.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,17 @@ class PyQuery {
12021202
now - start_submit;
12031203
}
12041204

1205+
for (const auto& bp : buffers_) {
1206+
py::print("buffer name: ", bp.first);
1207+
py::print("data: ", bp.second.data);
1208+
std::cout << "data_type: " << bp.second.type << std::endl;
1209+
py::print("dtype: ", bp.second.dtype);
1210+
py::print("offsets: ", bp.second.offsets);
1211+
py::print("validity: ", bp.second.validity);
1212+
py::print("isvar: ", bp.second.isvar);
1213+
py::print("isnullable: ", bp.second.isnullable);
1214+
}
1215+
12051216
// update the BufferInfo read-counts to match the query results read
12061217
update_read_elem_num();
12071218

tiledb/fragment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import tiledb
66
from tiledb.libtiledb import version as libtiledb_version
77

8-
from .main import PyFragmentInfo
9-
108
"""
119
Classes and functions relating to TileDB fragments.
1210
"""
@@ -105,6 +103,8 @@ def __init__(self, array_uri, include_mbrs=False, ctx=None):
105103

106104
self.array_uri = array_uri
107105

106+
from .main import PyFragmentInfo
107+
108108
fi = PyFragmentInfo(self.array_uri, schema, include_mbrs, ctx)
109109

110110
self.__nums = fi.get_num_fragments()

0 commit comments

Comments
 (0)