Skip to content
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

run the sample codes added by add_sample_code in ops.py #31863

Merged
merged 27 commits into from
Apr 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3d15844
skip paddle.Tensor.<lambda>
wadefelix Mar 3, 2021
d47a1e1
some file may not exists. such as version.py, it's generated by setup.py
wadefelix Mar 3, 2021
b549f64
debug mode
wadefelix Mar 5, 2021
56985f2
add unittests for sampcd_processor.py
wadefelix Mar 5, 2021
286a781
add test cases for sampcd_processor
wadefelix Mar 5, 2021
e6a2059
add test cases for sampcd_processor
wadefelix Mar 5, 2021
ef3628f
add testcases
wadefelix Mar 5, 2021
09f4bf5
add test cases
wadefelix Mar 8, 2021
338db03
add testcases
wadefelix Mar 8, 2021
2e4bcb4
add testcases
wadefelix Mar 9, 2021
0fc1851
refactor, add testcases
wadefelix Mar 9, 2021
d1953db
add import
wadefelix Mar 9, 2021
fb4f284
all files map to pool. dont split manually
wadefelix Mar 9, 2021
d931164
__all__ += another list
wadefelix Mar 15, 2021
b12f2b2
add testcases
wadefelix Mar 15, 2021
6a213e5
add testcases
wadefelix Mar 15, 2021
450db78
handle个锤子啊
wadefelix Mar 15, 2021
4552b28
this line should not removed
wadefelix Mar 15, 2021
b4cf3de
print -> logger
wadefelix Mar 15, 2021
9e3ef42
regulate the logging infomation
wadefelix Mar 15, 2021
89f4cd3
regulate the logging infomation
wadefelix Mar 15, 2021
1dcb7be
logger to file
wadefelix Mar 16, 2021
750ef5c
logger
wadefelix Mar 16, 2021
b8a2f8a
threads or subprocesses number config
wadefelix Mar 16, 2021
e931107
follow the good code style
wadefelix Mar 25, 2021
6d2de97
run test_sampcd_processor.py, it's a unittest for sampcd_processor.py
wadefelix Apr 12, 2021
fb95041
update unittest for sampcd_processor.py
wadefelix Apr 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tools/check_file_diff_approvals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ API_FILES=("CMakeLists.txt"
"python/paddle/fluid/tests/unittests/white_list/check_op_sequence_batch_1_input_white_list.py"
"python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py"
"tools/wlist.json"
"tools/sampcd_processor.py"
"paddle/scripts/paddle_build.bat"
"tools/windows/run_unittests.sh"
"tools/parallel_UT_rule.py"
Expand All @@ -79,6 +80,12 @@ function add_failed(){
echo_list="${echo_list[@]}$1"
}

function run_test_sampcd_processor() {
CUR_PWD=$(pwd)
cd ${PADDLE_ROOT}/tools
python test_sampcd_processor.py
cd ${CUR_PWD}
}

if [[ $git_files -gt 19 || $git_count -gt 999 ]];then
echo_line="You must have Dianhai approval for change 20+ files or add than 1000+ lines of content.\n"
Expand Down Expand Up @@ -136,6 +143,9 @@ for API_FILE in ${API_FILES[*]}; do
elif [ "${API_FILE}" == "tools/wlist.json" ];then
echo_line="You must have one TPM (jzhang533) approval for the api whitelist for the tools/wlist.json.\n"
check_approval 1 29231
elif [ "${API_FILE}" == "tools/sampcd_processor.py" ];then
echo_line="test_sampcd_processor.py will be executed for changed sampcd_processor.py.\n"
run_test_sampcd_processor
elif [ "${API_FILE}" == "python/paddle/distributed/fleet/__init__.py" ]; then
echo_line="You must have (fuyinno4 (Recommend), raindrops2sea) approval for ${API_FILE} changes"
check_approval 1 35824027 38231817
Expand Down
Loading