Skip to content

Commit

Permalink
Add CI tests
Browse files Browse the repository at this point in the history
Reviewed By: itamaro

Differential Revision: D56221780

fbshipit-source-id: 27f7eef6ef792ac7520bd66e834db949dbc2b133
  • Loading branch information
jbower-fb authored and facebook-github-bot committed Apr 26, 2024
1 parent 3602baa commit c26dde2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cinderx/TestScripts/refleak_skip_tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ test_cinderx.test_compiler.test_strict.test_strict_codegen.StrictCheckedCompilat
test_cinderx.test_compiler.test_strict.test_definite_assignment.*
# TODO(T130986700) Fix refleaks in test_compiler
test_cinderx.test_compiler.*

# These take excessive time, particularly when combined with ASAN + UBSAN.
test.test_audit.*
test.test_concurrent_futures.*
test.test_importlib.*
test.test_multiprocessing_spawn.*
19 changes: 19 additions & 0 deletions cinderx/TestScripts/type_profile_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -xe

cd "$(dirname $(readlink -f $0))"/../PythonLib

rm -f "test_cinderjit_profile.types"

TEST_CINDERJIT_PROFILE_MAKE_PROFILE=1 \
buck2 run @//mode/opt fbcode//cinderx:python3.10 -- \
-X jit-profile-interp -X jit-profile-interp-period=1 -X jit-write-profile="test_cinderjit_profile.types" \
-munittest -v test_cinderx.test_cinderjit_profile

TEST_CINDERJIT_PROFILE_TEST_PROFILE=1 \
buck2 run @//mode/opt fbcode//cinderx:python3.10-jit-all -- \
-X jit-read-profile="test_cinderjit_profile.types" \
-munittest -v test_cinderx.test_cinderjit_profile

rm -f "test_cinderjit_profile.types"

0 comments on commit c26dde2

Please sign in to comment.