mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-26 12:41:04 -05:00
* Skip broken tests
* Add rocksdb dropper
This is a temporary tool. It will be removed later in this PR.
* [automated] Drop rocksdb
This commit is made by running tools/rocksdb/drop.sh
* Touch-up after ast-grep
The previous automated commit removed items, but not their comments.
Also, some blocks are left with only one item.
Also, ast-grep can't handle macros like `vec![]`.
This commit completes the job.
* Remove RocksDB dropper
* Remove mentions of rocksdb feature in CI
* Fix clippy warnings
These `FIXME` comments added previously in this PR by ast-grep by
"peeling" cfg_attr like this:
-#[cfg_attr(not(feature = "rocksdb"), expect(...))]
+#[expect(...)] // FIXME(rocksdb): ...
This commit removes these allow/expect attributes and fixes clippy
lints.
* Remove leftover rocksdb-related code
Removed:
- Cargo.toml: rocksdb cargo feature flag and dependencies.
- code: rocksdb-related items that was not under feature flag.
- flags.rs: rocksdb-related qdrant feature flags.
Disabled:
- Some benchmarks because these do not compile now.
* Print warning if rocksdb leftovers found in snapshots
* Remove Clone from tokenizer
* Regenerate openapi.json
105 lines
4.0 KiB
YAML
105 lines
4.0 KiB
YAML
name: Rust GPU tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
rust-gpu-tests:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest ]
|
|
|
|
steps:
|
|
- name: Install minimal stable
|
|
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Install nextest
|
|
uses: taiki-e/install-action@3a0adc33ab45d7b9b9da91822dd2b3c0151704be # nextest
|
|
- name: Install Vulkan packages
|
|
run: |
|
|
sudo apt-get update -y
|
|
sudo apt-get install clang mesa-vulkan-drivers libvulkan1 vulkan-tools vulkan-validationlayers
|
|
/usr/bin/vulkaninfo --summary
|
|
- name: Build
|
|
run: cargo build --workspace --tests --features "gpu" --locked
|
|
- name: Run tests
|
|
# Profile "ci" is configured in .config/nextest.toml
|
|
run: cargo nextest run --workspace --features "gpu" --profile ci --locked
|
|
- name: Upload test report
|
|
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: junit-${{ matrix.os }}.xml
|
|
path: target/nextest/ci/junit.xml
|
|
|
|
# After tests are run, this hacky script will process the JUnit output of nextest
|
|
# and will create a GH Issue if there is a test marked as flaky,
|
|
# Failure of updating an issue is ignored because it fails for external contributors.
|
|
process-gpu-results:
|
|
runs-on: ubuntu-latest
|
|
needs: rust-gpu-tests
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest ]
|
|
steps:
|
|
- name: Download test report
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: junit-${{ matrix.os }}.xml
|
|
- name: Process test report
|
|
id: process-test-report
|
|
run: |
|
|
pip install yq
|
|
xq '.. | select(type == "object") | select(has("flakyFailure"))' junit.xml > flaky_tests.json
|
|
echo has_flaky_tests=$(jq '. | has("flakyFailure")' flaky_tests.json) >> $GITHUB_OUTPUT
|
|
- name: Get flaky test details
|
|
id: get-flaky-tests
|
|
if: ${{ steps.process-test-report.outputs.has_flaky_tests == 'true' }}
|
|
run: |
|
|
echo "Flaky tests found"
|
|
echo test=$(jq '.["@name"]' flaky_tests.json -r ) >> $GITHUB_OUTPUT
|
|
delimiter="###r###"
|
|
echo "content<<$delimiter" >> $GITHUB_OUTPUT
|
|
echo "$(jq '[.flakyFailure] | flatten | .[0]["system-err"]' flaky_tests.json -r)" >> $GITHUB_OUTPUT
|
|
echo $delimiter >> $GITHUB_OUTPUT
|
|
- name: pull issue template
|
|
if: ${{ steps.process-test-report.outputs.has_flaky_tests == 'true' }}
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
sparse-checkout: |
|
|
.github/ISSUE_TEMPLATE/flaky_test.md
|
|
sparse-checkout-cone-mode: false
|
|
- name: Create issue for flaky tests
|
|
continue-on-error: true
|
|
id: create-issue
|
|
if: ${{ steps.process-test-report.outputs.has_flaky_tests == 'true' }}
|
|
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TEST_NAME: ${{ steps.get-flaky-tests.outputs.test }}
|
|
SYSTEM_ERROR: ${{ steps.get-flaky-tests.outputs.content }}
|
|
REPOSITORY: ${{ github.repository }}
|
|
RUN_ID: ${{ github.run_id }}
|
|
JOB_ID: ${{ github.job }}
|
|
SHA: ${{ github.sha }}
|
|
WORKFLOW: ${{ github.workflow }}
|
|
JOB: ${{ github.job }}
|
|
BRANCH: ${{ github.ref }}
|
|
OS: ${{ matrix.os }}
|
|
with:
|
|
filename: .github/ISSUE_TEMPLATE/flaky_test.md
|
|
update_existing: true
|