-
Notifications
You must be signed in to change notification settings - Fork 19
Try to export HLKX package even when test run crashed #875
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: master
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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -269,15 +269,31 @@ def prepare_tests | |||||||||||||
| @test_list = @tests.update_tests(log: true) | ||||||||||||||
| end | ||||||||||||||
|
|
||||||||||||||
| def rescue2return | ||||||||||||||
| yield | ||||||||||||||
| nil | ||||||||||||||
| rescue StandardError => e | ||||||||||||||
| @project.logger.error("HCKTest encountered an error: (#{e.class}) #{e.message}") | ||||||||||||||
| e | ||||||||||||||
| end | ||||||||||||||
kostyanf14 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
|
|
||||||||||||||
| def auto_run | ||||||||||||||
| ResourceScope.open do |scope| | ||||||||||||||
| run_studio scope | ||||||||||||||
| sleep 5 until @studio.up? | ||||||||||||||
|
|
||||||||||||||
| run_tests_without_config | ||||||||||||||
| run_tests_with_config | ||||||||||||||
|
|
||||||||||||||
| @tests.create_project_package | ||||||||||||||
| # Try to export the project package even if some of the steps fail, it can be | ||||||||||||||
| # used to simplify the HLK process by reusing the created package and just fixing | ||||||||||||||
| # the root cause of the failure without the need to run all other tests | ||||||||||||||
| ex1 = rescue2return { run_tests_without_config } | ||||||||||||||
| ex2 = rescue2return { run_tests_with_config } | ||||||||||||||
|
|
||||||||||||||
| ex3 = rescue2return { @tests.create_project_package } | ||||||||||||||
|
|
||||||||||||||
| # Propagate the first exception if any occurred; the most likely other exceptions are just | ||||||||||||||
| # consequences of the first one and will be resolved after fixing the first root cause | ||||||||||||||
| raise ex1 if ex1 | ||||||||||||||
| raise ex2 if ex2 | ||||||||||||||
| raise ex3 if ex3 | ||||||||||||||
|
Comment on lines
+294
to
+296
|
||||||||||||||
| raise ex1 if ex1 | |
| raise ex2 if ex2 | |
| raise ex3 if ex3 | |
| raise ex1, ex1.message, ex1.backtrace if ex1 | |
| raise ex2, ex2.message, ex2.backtrace if ex2 | |
| raise ex3, ex3.message, ex3.backtrace if ex3 |
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.
Emmm, what? Looks like hallucinations.
Uh oh!
There was an error while loading. Please reload this page.