-
Notifications
You must be signed in to change notification settings - Fork 183
New C++ api #8651
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
base: develop
Are you sure you want to change the base?
New C++ api #8651
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -523,8 +523,8 @@ jobs: | |
| command: check ${{ matrix.checks }} | ||
|
|
||
| cxx-test: | ||
| name: "C++ build" | ||
| timeout-minutes: 30 | ||
| name: "C++ API tests" | ||
| timeout-minutes: 5 | ||
|
myrrc marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| runs-on: >- | ||
| ${{ github.repository == 'vortex-data/vortex' | ||
| && format('runs-on={0}/runner=amd64-medium/image=ubuntu24-full-x64-pre-v2/extras=s3-cache/tag=cxx-build', github.run_id) | ||
|
|
@@ -538,20 +538,42 @@ jobs: | |
| - uses: ./.github/actions/setup-prebuild | ||
| with: | ||
| enable-sccache: "true" | ||
|
myrrc marked this conversation as resolved.
|
||
| - name: Build and run C++ unit tests | ||
| - name: Install Rust nightly toolchain | ||
| run: | | ||
| rustup toolchain install $NIGHTLY_TOOLCHAIN | ||
| rustup component add --toolchain $NIGHTLY_TOOLCHAIN rust-src rustfmt clippy llvm-tools-preview | ||
| - name: Build FFI library (asan) | ||
|
myrrc marked this conversation as resolved.
|
||
| run: | | ||
| RUSTFLAGS="-A warnings -Cunsafe-allow-abi-mismatch=sanitizer \ | ||
| -C debuginfo=2 -C opt-level=0 -C strip=none -Zexternal-clangrt \ | ||
| -Zsanitizer=address,leak" \ | ||
| cargo +$NIGHTLY_TOOLCHAIN build --locked --no-default-features \ | ||
| --target x86_64-unknown-linux-gnu -Zbuild-std \ | ||
| -p vortex-ffi | ||
| - name: Build C++ tests (asan) | ||
| run: | | ||
| mkdir -p vortex-cxx/build | ||
| cmake -S vortex-cxx -B vortex-cxx/build -DVORTEX_ENABLE_TESTING=ON -DVORTEX_ENABLE_ASAN=ON | ||
| cmake -S vortex-cxx -B vortex-cxx/build -DBUILD_TESTS=ON -DSANITIZER=asan -DTARGET_TRIPLE="x86_64-unknown-linux-gnu" | ||
| cmake --build vortex-cxx/build --parallel $(nproc) | ||
| ctest --test-dir vortex-cxx/build -j $(nproc) -V | ||
| - name: Build and run the example in release mode | ||
| - name: Run C++ tests | ||
| run: | | ||
| vortex-cxx/build/tests/vortex_cxx_test | ||
| - name: Build and run examples | ||
| run: | | ||
| cmake -S vortex-cxx/examples -B vortex-cxx/examples/build -DCMAKE_BUILD_TYPE=Release | ||
| cmake -S vortex-cxx -B vortex-cxx/examples/build -DSANITIZER=asan -DBUILD_EXAMPLES=1 -DTARGET_TRIPLE="x86_64-unknown-linux-gnu" | ||
| cmake --build vortex-cxx/examples/build --parallel $(nproc) | ||
| vortex-cxx/examples/build/hello-vortex vortex-cxx/examples/goldenfiles/example.vortex | ||
| - uses: ./.github/actions/check-rebuild | ||
| with: | ||
| command: "cargo build --profile ci --locked -p vortex-cxx --lib" | ||
| cd vortex-cxx/examples/build/examples | ||
|
myrrc marked this conversation as resolved.
|
||
| # filesystem loop detected | ||
| rm -fr ../_deps/nanoarrow-src/python/subprojects/arrow-nanoarrow | ||
|
|
||
| ./writer people0.vortex | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be invoked through a single entry point which knows that internals of how to exercise the example. Seems manual to invoke these 1 by 1 and brittle when changing the examples? |
||
| ./writer people1.vortex | ||
| ./writer me.vortex | ||
|
|
||
| ./scan '*.vortex' | ||
| ./dtype me.vortex | ||
|
|
||
| ./reader | ||
|
|
||
| sqllogic-test: | ||
| name: "SQL logic tests" | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.