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

【Fix PIR Unittest No.232,528 BUAA】Fix some test case in PIR #66152

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

Marcusryz
Copy link
Contributor

@Marcusryz Marcusryz commented Jul 17, 2024

PR Category

Others

PR Types

Others

Description

Fix test_crop_op.

PIR 不支持 .name,所以这个 test_name 可以跳过 PIR 的测试。

使用 with paddle.pir_utils.OldIrGuard() 包裹问题代码块。

关联 issue:#63740

Pcard-67164

Copy link

paddle-bot bot commented Jul 17, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Jul 17, 2024
@@ -468,7 +468,6 @@ endif()
foreach(TEST_OP ${TEST_OPS})
py_test_modules(${TEST_OP} MODULES ${TEST_OP})
endforeach()
set_tests_properties(test_logcumsumexp_op PROPERTIES TIMEOUT 30)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个需要一起迁移到 test/legacy_test 下嘛

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该不用吧

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这行代码需要迁移到test/legacy_test/CMakeLists.txt下的,这个是设置单测timeout时间的,说明这个单测跑的比较慢,可能偶发性导致CI超时。

@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jul 18, 2024
Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -468,7 +468,6 @@ endif()
foreach(TEST_OP ${TEST_OPS})
py_test_modules(${TEST_OP} MODULES ${TEST_OP})
endforeach()
set_tests_properties(test_logcumsumexp_op PROPERTIES TIMEOUT 30)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这行代码需要迁移到test/legacy_test/CMakeLists.txt下的,这个是设置单测timeout时间的,说明这个单测跑的比较慢,可能偶发性导致CI超时。

@Marcusryz Marcusryz changed the title 【Fix PIR Unittest No.14】Fix some test case in PIR 【Fix PIR Unittest No.14 BUAA】Fix some test case in PIR Jul 22, 2024
@luotao1
Copy link
Contributor

luotao1 commented Jul 22, 2024

@Marcusryz 请根据review意见处理下

@Marcusryz
Copy link
Contributor Author

@Marcusryz 请根据review意见处理下

已经处理了

@luotao1 luotao1 merged commit 2f7abae into PaddlePaddle:develop Jul 22, 2024
31 checks passed
@Marcusryz Marcusryz changed the title 【Fix PIR Unittest No.14 BUAA】Fix some test case in PIR 【Fix PIR Unittest No.3,14 BUAA】Fix some test case in PIR Jul 23, 2024
@Marcusryz Marcusryz changed the title 【Fix PIR Unittest No.3,14 BUAA】Fix some test case in PIR 【Fix PIR Unittest No.232,528 BUAA】Fix some test case in PIR Jul 26, 2024
inaomIIsfarell pushed a commit to inaomIIsfarell/Paddle that referenced this pull request Jul 31, 2024
…66152)

* Fix some bugs in test_logcumsumexp_op when PIR not support .name.

* Add TIMEOUT SETTING for test_logsumcumexp_op.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants