From: "Irene Park" <ipark@nvidia.com>
To: Bob Feng <bob.c.feng@intel.com>,devel@edk2.groups.io
Subject: Re: [edk2-devel] [PATCH] BaseTools/Python: Add missing FatalError handling
Date: Fri, 29 May 2020 00:27:21 -0700 [thread overview]
Message-ID: <10681.1590737241856320947@groups.io> (raw)
In-Reply-To: <BN6PR11MB0068DCA721AA3DDA9F4B5E47C98F0@BN6PR11MB0068.namprd11.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 1517 bytes --]
Hi Bob,
Thanks for the review.
Here is the original description of the issue.
There has been a build failure from SCT, related to https://edk2.groups.io/g/devel/message/60407?p=,,,20,0,0,0::relevance,,gEfiFormBrowserExProtocolGuid,20,2,0,74529350. ( https://edk2.groups.io/g/devel/message/60407?p=,,,20,0,0,0::relevance,,gEfiFormBrowserExProtocolGuid,20,2,0,74529350 )
The build log printed the error code obviously but returned with sys.exit(0).
Unfortunately this behavior confused the build system and made me notice the failure so late.
If there is a concern of the conflict among multiple autogenworkers, I wonder how you think this way.
1. No change in BaseTools/Source/Python/AutoGen/AutoGenWorker.py
2. BaseTools/Source/Python/build/build.py
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -880,7 +880,10 @@ class Build():
self.AutoGenMgr.join()
rt = self.AutoGenMgr.Status
- return rt, 0
+ err = 0
+ if not rt:
+ err = UNKNOWN_ERROR << Use a fixed error type of FatalError instead of getting the exact error type from the autogenworkers.
+ return rt, err
except FatalError as e:
return False, e.args[0]
except:
In this way, no change in the multi-thread operation and build.py is able to exit with a standard default error. It's not needed to catch the exact error type.
Please share your opinion.
Thanks,
Irene
[-- Attachment #2: Type: text/html, Size: 2083 bytes --]
prev parent reply other threads:[~2020-05-29 7:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-27 19:41 [PATCH] BaseTools/Python: Add missing FatalError handling Name
2020-05-28 19:23 ` Irene Park
2020-05-29 1:08 ` Bob Feng
2020-05-29 7:27 ` Irene Park [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10681.1590737241856320947@groups.io \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox