-
Notifications
You must be signed in to change notification settings - Fork 877
[DRAFT][DO NOT MERGE] Test tvm-ffi 0.1.10rc #2599
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: main
Are you sure you want to change the base?
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 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -72,6 +72,11 @@ python -c "import torch; print(torch.__version__)" | |||||||||||||||||
| CUDA_VERSION=$(python3 -c 'import torch; print(torch.version.cuda)' | cut -d'.' -f1,2 | tr -d '.') | ||||||||||||||||||
| echo "Detected CUDA version: cu${CUDA_VERSION}" | ||||||||||||||||||
|
|
||||||||||||||||||
| echo "" | ||||||||||||||||||
| echo "Checking TVM-FFI version before verification tests..." | ||||||||||||||||||
| python -c "import tvm_ffi; print(f'TVM-FFI version: {tvm_ffi.__version__}')" || true | ||||||||||||||||||
| echo "" | ||||||||||||||||||
|
|
||||||||||||||||||
|
Comment on lines
+75
to
+79
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. Fix the first TVM-FFI log label to match execution point. On Line 76, the message says βbefore verification tests,β but this block runs before package installation. That can mislead CI debugging. Proposed wording fix-echo "Checking TVM-FFI version before verification tests..."
+echo "Checking TVM-FFI version before package installation..."π Committable suggestion
Suggested change
π€ Prompt for AI Agents |
||||||||||||||||||
| echo "" | ||||||||||||||||||
| echo "========================================" | ||||||||||||||||||
| echo "Installing flashinfer package" | ||||||||||||||||||
|
|
@@ -108,6 +113,11 @@ echo "β Flashinfer-jit-cache wheel installed successfully" | |||||||||||||||||
| cd .. | ||||||||||||||||||
|
|
||||||||||||||||||
| # Verify installation | ||||||||||||||||||
| echo "" | ||||||||||||||||||
| echo "Checking TVM-FFI version before verification tests..." | ||||||||||||||||||
| python -c "import tvm_ffi; print(f'TVM-FFI version: {tvm_ffi.__version__}')" || true | ||||||||||||||||||
| echo "" | ||||||||||||||||||
|
|
||||||||||||||||||
| echo "" | ||||||||||||||||||
| echo "========================================" | ||||||||||||||||||
| echo "Running verification tests" | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 595
π Script executed:
cat -n scripts/task_jit_run_tests_part1.sh | head -50Repository: flashinfer-ai/flashinfer
Length of output: 1102
π Script executed:
rg -nP 'TVM_FFI_REF' --type=shRepository: flashinfer-ai/flashinfer
Length of output: 333
π Script executed:
cat -n scripts/setup_test_env.sh | head -100Repository: flashinfer-ai/flashinfer
Length of output: 1192
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 2084
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 693
Fail the TVM-FFI version check when dependency override is active.
The
|| trueon line 18 suppresses import errors that should block the test whenTVM_FFI_REFis set. Testing a custom dependency ref should fail fast if the override is broken, not silently continue.Suggested fix
Note: The same issue exists at
scripts/task_test_jit_cache_package_build_import.sh:77,118andscripts/task_run_unit_tests.sh:92.π Committable suggestion
π€ Prompt for AI Agents