-
Notifications
You must be signed in to change notification settings - Fork 1.2k
update ci test #1647
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
update ci test #1647
Changes from 11 commits
1b095e7
6b25aca
827f475
9576cfa
45fec3f
b831f64
02ac912
f9b138b
98467da
6f7b880
78b5b8d
6ce6ac0
7134192
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 |
|---|---|---|
|
|
@@ -45,9 +45,15 @@ | |
| worker_config_dict = { | ||
| "subpool_count": 2, | ||
| "subpool_numa_map": [0, 1], | ||
| <<<<<<< HEAD | ||
| "subpool_thread_count": [30, 30], | ||
| } | ||
| CPUINFER_PARAM = 60 | ||
| ======= | ||
| "subpool_thread_count": [45, 45], | ||
| } | ||
| CPUINFER_PARAM = 90 | ||
| >>>>>>> main | ||
|
||
|
|
||
|
|
||
| def get_git_commit(): | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,6 @@ | ||||||||||||||||||
| import argparse | ||||||||||||||||||
| import glob | ||||||||||||||||||
| import sys | ||||||||||||||||||
| from typing import List | ||||||||||||||||||
|
|
||||||||||||||||||
| from ci.ci_register import HWBackend, CIRegistry, collect_tests | ||||||||||||||||||
|
|
@@ -37,7 +38,7 @@ def run_per_commit(hw: HWBackend, suite: str): | |||||||||||||||||
| ci_tests = _filter_tests(collect_tests(files), hw, suite) | ||||||||||||||||||
| test_files = [TestFile(t.filename, t.est_time) for t in ci_tests] | ||||||||||||||||||
|
|
||||||||||||||||||
| run_unittest_files( | ||||||||||||||||||
| return run_unittest_files( | ||||||||||||||||||
| test_files, | ||||||||||||||||||
| timeout_per_file=1200, | ||||||||||||||||||
| continue_on_error=False, | ||||||||||||||||||
|
|
@@ -61,7 +62,10 @@ def main(): | |||||||||||||||||
| ) | ||||||||||||||||||
| args = parser.parse_args() | ||||||||||||||||||
| hw = HW_MAPPING[args.hw] | ||||||||||||||||||
| run_per_commit(hw, args.suite) | ||||||||||||||||||
| exit_code = run_per_commit(hw, args.suite) | ||||||||||||||||||
| # run_unittest_files returns 0 for success, -1 for failure | ||||||||||||||||||
| # Convert to standard exit codes: 0 for success, 1 for failure | ||||||||||||||||||
| sys.exit(0 if exit_code == 0 else 1) | ||||||||||||||||||
|
Comment on lines
+65
to
+68
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. The logic to convert the internal exit code to a standard shell exit code is correct. However, it can be simplified to be more robust and concise. The expression
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| if __name__ == "__main__": | ||||||||||||||||||
|
|
||||||||||||||||||
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.
This file contains unresolved merge conflict markers (
<<<<<<<,=======,>>>>>>>). These markers will cause a syntax error and must be removed. Please resolve the conflict and commit the correct version of the code.