From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.92.42.41]) by mx.groups.io with SMTP id smtpd.web11.3014.1591991959899275893 for ; Fri, 12 Jun 2020 12:59:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=GFCgM2ia; spf=pass (domain: outlook.com, ip: 40.92.42.41, mailfrom: spbrogan@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OSYViDHX8i/7iWdvWOwTZNO/2sdeyMRmKbDO9QG6e9mU+jQ/ZgCgyoX4U8PHjeCTUzMX0tVhnxuyUHRmnSkfBbQpL6nQqoGaIqfb3MPYesGQo3ZwVDCUwLlYelGwQ4YAtZBDYHCyzMO6lkTM5ULjpsoJ09TVoAvnXVx+I9GhtxDQq7ugTcA6YcoLwIH9d2Dl5S6hm+BfCXLeFc5FeErom7UfQJZRJajynC+ZiWHxEEQIQTuOlD0hjsWkioTvscHVOEHj2aSi59uBS2eBXUxLmowjMtF1QtnW/o6Sv/4QVZoLBrT/Kqt0wWwW8ign4/ObdIVdV0QUi3Ut5RAUl5utSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3oVAQU6tNQIWrE9XoEZ3EFZL7uuODPsbrcAi+ZimLCw=; b=duftFVlUXaAOq421Qvvcd/eajDo1n7vx6IcW/4RUyv5IFxL4mevjvXzAkYhd2NQFD/ovnGKeV88zNBZn0dxw2HR2IhW5UbrmX5m/nN4u7EugHmjqYKTJPGyKZA9hg0nW745M3n2uLRalgtI38KuNNnpjcIg1C+ghfPUkvNsOTci0Y1+rWQyIrUnvlx5jaddk+Pcn3T94d+g4Xi3WUmRx0hXYaiDYAnpYfEakTRwUa0zLnC+zVC7LC03l+nUHLftoGbZhFwMcpWeIYW8mOhP23LZ17/ENNxz8MTwoKp4GfANkWHb1QMic2qJdrZiP/r/QvXt0qRSXm38bEgierNMNSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3oVAQU6tNQIWrE9XoEZ3EFZL7uuODPsbrcAi+ZimLCw=; b=GFCgM2ia4aGwUyzBKSMQ2a9m8YJ3dfqt8KVgt7EylZZBTZQra0Af4RRWR/DK2m77nEnKVSQtzFOxqMuxg7PzJ1uh9y/Jcll/wqUyem5e1wUfQjSrdMXG3Bv0GsDPRX8rITf6iVh1SxlMc28PJyeH1rPRKZnawNSUXc8mHIi4Xhv01pHYOrDiBmCWKhmszcAm/4XXZdJY15bFBKWDY3XyFQp2Zi5ioDLNn8bmRFPB7DREAa+IREm2GwInMW0972EQAtqFZXPkfEOx8oRrb9xilxnZSTkXd/xNvPIleq59VwWSzR8eidYiKxDyKutuKqmydnBa7xNyTw7VB1dZ5rrCeQ== Received: from BN7NAM10FT035.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e8f::49) by BN7NAM10HT046.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e8f::452) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18; Fri, 12 Jun 2020 19:59:18 +0000 Received: from BN8PR07MB6962.namprd07.prod.outlook.com (2a01:111:e400:7e8f::4f) by BN7NAM10FT035.mail.protection.outlook.com (2a01:111:e400:7e8f::399) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Fri, 12 Jun 2020 19:59:18 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3B0259C0D3BF7B78AB5A11287C43A7860DD0C24B6AA8A0E7F2F0DADBA286FF2A;UpperCasedChecksum:EE2A5154A5511ABE6E6618AC6E096D56B71F0DD906414B3A319C179C104883E5;SizeAsReceived:8636;Count:49 Received: from BN8PR07MB6962.namprd07.prod.outlook.com ([fe80::edbc:7122:7dd9:1403]) by BN8PR07MB6962.namprd07.prod.outlook.com ([fe80::edbc:7122:7dd9:1403%8]) with mapi id 15.20.3088.025; Fri, 12 Jun 2020 19:59:18 +0000 Subject: Re: [edk2-devel] ci problems again To: devel@edk2.groups.io, afish@apple.com, Mike Kinney Cc: Ard Biesheuvel , "lersek@redhat.com" , Bret Barkelew References: <08ef07fe-67cd-7fad-a43c-2483136772af@arm.com> <9498c58c-4a77-5ecf-43ff-f218e4987bfc@arm.com> <8DE5146D-9BA1-446C-AC98-0EBEEE1EBAB4@apple.com> <19F172A4-4FE8-428D-9503-4C1D9E890749@apple.com> From: "Sean" Message-ID: Date: Fri, 12 Jun 2020 12:59:15 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 In-Reply-To: <19F172A4-4FE8-428D-9503-4C1D9E890749@apple.com> X-ClientProxiedBy: MWHPR10CA0065.namprd10.prod.outlook.com (2603:10b6:300:2c::27) To BN8PR07MB6962.namprd07.prod.outlook.com (2603:10b6:408:d6::11) Return-Path: spbrogan@outlook.com X-Microsoft-Original-Message-ID: <8ce31cba-13c2-e1e4-f5a0-4b5e67816232@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.2.78] (50.47.113.221) by MWHPR10CA0065.namprd10.prod.outlook.com (2603:10b6:300:2c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.20 via Frontend Transport; Fri, 12 Jun 2020 19:59:17 +0000 X-Microsoft-Original-Message-ID: <8ce31cba-13c2-e1e4-f5a0-4b5e67816232@outlook.com> X-TMN: [hZbxZLxd+iI2oBJePHOh5c4H56TuoD2Z] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 8efc2228-de68-488c-2db8-08d80f0b1728 X-MS-TrafficTypeDiagnostic: BN7NAM10HT046: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ABMpVpqlC6JuyGNB52L94NEj+PKGywaArFcPXXHdAeTzBYv4zJoQhKvdi5LO6ytVfyuS14b2nh+ELaUqbaPAVQpdJ0ktIP5oo3xp9yDyL2Bg7yQpiufj5nQwIcbHj+DsKz0A0asC4NTjb7VXuEEfEPLmCy5SiM4vN0bnc9crGbeGvVN35k/yqovRWJvMt7DVDzXyXOOrM+ycSxw1+gFVcctDVd39Lr6QLB7QBV67d9mrpDC7Wjcp5BQmj5+5SPKo X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR07MB6962.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: 3sNMxj3aneho3rBnB5+pUWqByoHHbJE7wrS8AO+BMXQCKSvFJ3AZCW6V/bDE3w2mTGLL6UQX1bXFKpJcnBVPl2I/dofozmj551XziHSgR+g6RMM8DP7uNZpg1/3fw7MlHhUOOrlVFJTUFKVaajLvZQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8efc2228-de68-488c-2db8-08d80f0b1728 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2020 19:59:18.3507 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7NAM10HT046 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit A pytool bug is opened that provides details. https://github.com/tianocore/edk2-pytool-extensions/issues/201 A PR for edk2-pytool-extensions and a release will be coming soon. Since we are using loose version tracking in edk2 for the CI dependencies it will be automatically picked up and CI builds and push builds should be able to continue. I'll send a follow up once the release is made. Thanks Sean On 6/12/2020 12:27 PM, Andrew Fish via groups.io wrote: > Mike, > > Thanks so different encase. > > Thanks, > > Andrew Fish > >> On Jun 12, 2020, at 12:25 PM, Kinney, Michael D wrote: >> >> Hi Andrew, >> >> Not related to patch vs patch set. All commits in a pr are being evaluated. >> >> After further evaluation, it appears it may be related to a patch set that deletes the last file from a directory. When that happens, the parent directory is also deleted, and the missing dir is what is generating the python exception. Need to add logic to cover that corner case and avoid exception. >> >> The edk2-pytools owners are working on it now. >> >> Mike >> >> From: Andrew Fish > >> Sent: Friday, June 12, 2020 11:43 AM >> To: devel@edk2.groups.io ; Kinney, Michael D > >> Cc: Ard Biesheuvel >; Sean Brogan >; lersek@redhat.com ; Bret Barkelew > >> Subject: Re: [edk2-devel] ci problems again >> >> Mike, >> >> Is this an issue of assuming a patch vs. a patch set? Are there other places we could run into this? >> >> Thanks, >> >> Andrew Fish >> >> >> On Jun 12, 2020, at 11:19 AM, Michael D Kinney > wrote: >> >> Hi Ard, >> >> I think this is related to a patch series that deletes >> some files. >> >> The following code in the edk2-pytool-extensions is collecting >> the files that change in a pr to determine the components that >> need to be built. >> >> https://github.com/tianocore/edk2-pytool-extensions/blob/e036937666c797d6d1aa4a8285088d3eae128d6c/edk2toolext/invocables/edk2_pr_eval.py#L271 >> >> It does not filter out files that have been deleted. >> >> I tried the following change that filters out files that >> have been deleted and reverses the diff to be from the >> base branch to HEAD so the files deleted filter works as >> expected. The stuart command completes without errors. >> >> diff --git a/edk2toolext/invocables/edk2_pr_eval.py b/edk2toolext/invocables/edk2_pr_eval.py >> index 00ac282..a3f55b7 100644 >> --- a/edk2toolext/invocables/edk2_pr_eval.py >> +++ b/edk2toolext/invocables/edk2_pr_eval.py >> @@ -268,7 +268,7 @@ def _get_files_that_changed_in_this_pr(self, base_branch) -> tuple: >> >> # get file differences between pr and base >> output = StringIO() >> - cmd_params = f"diff --name-only HEAD..{base_branch}" >> + cmd_params = f"diff --name-only --diff-filter=d {base_branch}..HEAD" >> rc = RunCmd("git", cmd_params, outstream=output) >> >> if(rc == 0): >> >> I do not know if this change has other unintended side effects. I >> need edk2-pytools-extensions to provide input. >> >> Mike >> >> >> -----Original Message----- >> From: Kinney, Michael D > >> Sent: Friday, June 12, 2020 9:49 AM >> To: Ard Biesheuvel >; >> devel@edk2.groups.io ; Sean Brogan >> >; lersek@redhat.com ; Kinney, >> Michael D > >> Subject: RE: [edk2-devel] ci problems again >> >> Hi Ard, >> >> The general instructions to setup env are in the repo >> here: >> >> >> https://github.com/tianocore/edk2/tree/master/.pytool >> >> I did this and pulled PR 689 and ran the command from >> the >> Azure pipelines log and reproduced the same failure on >> my >> laptop. Here is the log from my laptop. I will debug a >> bit more to see what the issue is. This command passes >> with edk2/master. It fails with my pr_689 branch. >> >> >> (env) c:\work\GitHub\tianocore\edk2>git checkout pr_689 >> Switched to branch 'pr_689' >> >> (env) c:\work\GitHub\tianocore\edk2>stuart_pr_eval -c >> OvmfPkg/PlatformCI/PlatformBuild.py -t DEBUG -a IA32 -- >> pr-target origin/master >> SECTION - Init SDE >> SECTION - Loading Plugins >> SECTION - Start Invocable Tool >> ERROR - Failed to get package for file >> ArmVirtPkg/Include/Platform/Hidden.h. Exception >> [WinError 3] The system cannot find the path specified: >> 'c:\\work\\GitHub\\tianocore\\edk2\\ArmVirtPkg\\Include\ >> \Platform' >> ERROR - Failed to get package for file >> ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds. Exception >> [WinError 3] The system cannot find the path specified: >> 'c:\\work\\GitHub\\tianocore\\edk2\\ArmVirtPkg\\PrePi\\S >> cripts' >> ERROR - Failed to get package for file >> ArmVirtPkg/Include/Platform/Hidden.h. Exception >> [WinError 3] The system cannot find the path specified: >> 'c:\\work\\GitHub\\tianocore\\edk2\\ArmVirtPkg\\Include\ >> \Platform' >> ERROR - Failed to get package for file >> ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds. Exception >> [WinError 3] The system cannot find the path specified: >> 'c:\\work\\GitHub\\tianocore\\edk2\\ArmVirtPkg\\PrePi\\S >> cripts' >> Traceback (most recent call last): >> File "C:\Program Files (x86)\Microsoft Visual >> Studio\Shared\Python37_64\lib\runpy.py", line 193, in >> _run_module_as_main >> "__main__", mod_spec) >> File "C:\Program Files (x86)\Microsoft Visual >> Studio\Shared\Python37_64\lib\runpy.py", line 85, in >> _run_code >> exec(code, run_globals) >> File >> "c:\work\GitHub\tianocore\edk2\env\Scripts\stuart_pr_eva >> l.exe\__main__.py", line 7, in >> File "c:\work\github\tianocore\edk2\env\lib\site- >> packages\edk2toolext\invocables\edk2_pr_eval.py", line >> 389, in main >> Edk2PrEval().Invoke() >> File "c:\work\github\tianocore\edk2\env\lib\site- >> packages\edk2toolext\base_abstract_invocable.py", line >> 141, in Invoke >> retcode = self.Go() >> File "c:\work\github\tianocore\edk2\env\lib\site- >> packages\edk2toolext\invocables\edk2_pr_eval.py", line >> 82, in Go >> actualPackagesDict = >> self.get_packages_to_build(self.requested_package_list) >> File "c:\work\github\tianocore\edk2\env\lib\site- >> packages\edk2toolext\invocables\edk2_pr_eval.py", line >> 202, in get_packages_to_build >> changed_modules = >> self._get_unique_module_infs_changed(files) >> File "c:\work\github\tianocore\edk2\env\lib\site- >> packages\edk2toolext\invocables\edk2_pr_eval.py", line >> 235, in _get_unique_module_infs_changed >> infs = >> self.edk2_path_obj.GetContainingModules(os.path.abspath( >> f)) >> File "c:\work\github\tianocore\edk2\env\lib\site- >> packages\edk2toollib\uefi\edk2\path_utilities.py", line >> 211, in GetContainingModules >> for f in os.listdir(dirpath): >> FileNotFoundError: [WinError 3] The system cannot find >> the path specified: >> 'c:\\work\\GitHub\\tianocore\\edk2\\ArmVirtPkg\\Include\ >> \Platform' >> >> Best regards, >> >> Mike >> >> >> -----Original Message----- >> From: Ard Biesheuvel > >> Sent: Friday, June 12, 2020 9:16 AM >> To: Kinney, Michael D >; >> devel@edk2.groups.io ; Sean Brogan >> >; lersek@redhat.com >> Subject: Re: [edk2-devel] ci problems again >> >> On 6/12/20 6:12 PM, Kinney, Michael D wrote: >> >> Hi Ard, >> >> The CI agents are stateless, so it can not be stale >> content. >> >> >> So why is it looking for >> ArmVirtPkg/PrePi/Scripts/PrePi- >> >> PIE.lds even >> though not a single reference to it remains anywhere >> in >> >> the tree? >> >> (grep'ing for PrePi-PIE.lds in the edk2 tree gives 0 >> hits) >> >> >> >> Have you tried the pytools command that is being >> used >> >> locally for this patch series? >> >> >> No. Are there any instructions on how to use that? >> >> >> >> >> >> >> -----Original Message----- >> From: devel@edk2.groups.io > >> On >> >> Behalf Of Ard Biesheuvel >> Sent: Friday, June 12, 2020 8:47 AM >> To: Kinney, Michael D >; >> devel@edk2.groups.io ; Sean Brogan >> >; lersek@redhat.com >> Subject: Re: [edk2-devel] ci problems again >> >> On 6/12/20 5:36 PM, Kinney, Michael D wrote: >> >> Hi Ard, >> >> Please look at this more detailed log from Azure. >> >> https://dev.azure.com/tianocore/edk2- >> >> >> ci/_build/results?buildId=8170&view=logs&jobId=680b79ca- >> >> 2ce9-56d4-127b-ee6e95685750&j=680b79ca-2ce9-56d4- >> 127b- >> >> ee6e95685750&t=1e12dbf9-b3ef-52bb-1019-4c2f443aef72 >> >> >> It says it can not find some paths in ArmVirtPkg. >> >> >> It is complaining about files that are being >> removed >> >> by >> >> the series: >> >> Failed to get package for file >> ArmVirtPkg/Include/Platform/Hidden.h. >> Failed to get package for file >> ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds. >> >> but I cannot find any remaining references to those >> files in anywhere in >> the tree, so it seems the CI has remembered the >> existence of those files >> in some way, and is now expecting them to be still >> there. >> >> So I don't think there is any way I can fix this >> myself. >> >> Someone needs >> to wipe the build directory for these CI jobs. >> >> >> >> >> >> > > > > >