[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH] CI: Always move the bisect build log back
- To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Thu, 24 Aug 2023 10:51:20 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ebrn7iNSvbxeUsWYagOYMIRTtZAOwsDsC4YciQDrPc4=; b=Snz25vf3pnEkGyJQ/yfKoXIivkxhEbDengEB37H1xq1Ll2B2tQQ+Xpcb2PR06JhloM3IawCZJivl206MvWUPw0SjN6LnnWOFWcLo/UDRqRZhdSFDkRWrI5+21b0MohydjDnWPfsyWzfWraLs99Lx2RcbqOJLW74Pt2iZ7YG4fSrQjSB3oa1TiRQOohw5q0+mgNAfSxhaaAW+UfGJQZJiE/O6Fztv+bpaln7g1Kghx5lhTlS5tweEzS++Si752w+L1KYb6qkWvzVY7yXB+y9mN1ul86OC0MzzRLlY/9p+/wkhhOHiIkr8L5KFNGW8YF32+iIIbr2QrWd+KTFIpCnXJA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z4s08fKSH2op2psdWq5pBH7H4pW5i5mDakWBeMb6OJYaiGiOyTe8ofJWBJYZYddGsHhCSwJyq0k7NAqjf/G5Vd2mkqPtK2I5LkiEzp0b8NaSXyNytl4PmP5p1wl5bYjcG+ooyOIujB3ktRzgLdW3mQ6L9Gyt0uoHsgPxMCLdh/BZGn3SMj86++sOAodwyouBYifTm4iYiy26duJ9GZtHt6c3y9g5+z4NHpCTcBfmK3x8skLgOj3xXmt8h7eaC1oW7OH9W1m57uYom7SDSNRF7FHZdMHtsTCVyda646EAycodWtgXhak4dZE9n3c4P83Z4A3/DJJBAKBI0P8zJmwmzQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Thu, 24 Aug 2023 09:51:38 +0000
- Ironport-data: A9a23:KGE5zqj9bAjLERgMU1/+9ZcPX161UREKZh0ujC45NGQN5FlHY01je htvCGqAb/iIZjD1KNogPIXj9h8B78TQy9dlSFRkqntkQSkb9cadCdqndUqhZCn6wu8v7q5Ex 55HNoSfdpBcolv0/ErF3m3J9CEkvU2wbuOgTrWCYmYpHlUMpB4J0XpLg/Q+jpNjne+3CgaMv cKai8DEMRqu1iUc3lg8sspvkzsx+qyr0N8klgZmP6sT7AWFzyB94K83fsldEVOpGuG4IcbiL wrz5OnR1n/U+R4rFuSknt7TGqHdauePVeQmoiM+t5mK2nCulARrukoIHKN0hXNsoyeIh7hMJ OBl7vRcf+uL0prkw4zxWzEAe8130DYvFLXveRBTuuTLp6HKnueFL1yDwyjaMKVBktubD12i+ tQnLhQRUS/eud6v3bCZd+1lrdUvHNb0adZ3VnFIlVk1DN4AaLWaG+Dv2oUd2z09wMdTAfzZe swVLyJ1awjNaAFOPVFRD48imOCvhT/0dDgwRFC9/PJrpTSMilEsluG1b7I5efTTLSlRtm+eq njL4CLSBRYCOcbE4TGE7mitlqnEmiaTtIc6Tefgp6Q33gDLroAVIDkMWkedruiysXyva/9gD BIw1XQJ/IFnoSRHSfG4BXVUukWsrhMaHtZdDeA+wAWM0bbPpRaUAHAeSTxMY8Bgs9U5LRQh3 0WFmN7BDjV1vLqYD3ma89+8tiiuMCIYKWsDYy4sTgYf5dTn5oYpgXryos1LFae0ipjwBmv2y jXT9Cwm3exL0ogMyrmx+k3Bj3S0vJ/VQwUp5wLRGGW48gd+Y43jbIutgbTG0ct9wE+iZgHpl BA5dwK2tYji0bnlePSxfdgw
- Ironport-hdrordr: A9a23:xZLyGq/mFY9eHfuBOHNuk+F0db1zdoMgy1knxilNoENuHvBwxv rCoB1E73XJYW4qKRYdcKO7Sc+9qBLnhOpICOYqTNKftWXd2VdAT7sSmrcKoQeQfxEWn9Q1vc wOHZSWY+eAbmSS+PyKgjVQfexB/PC3tISTwcvOxXZkSg9nL4t66R1iNwqdGkpqACFbGJsQDv Onl4N6jgvlXU5SQtWwB3EDUeSGjcbMjojabRkPAANiwBWSjAmv9KXxH3Gjr18junJ0sPwfGF r+4kHED5aYwr2GI9jnpiDuBqFt6ZHcIx14dYKxY4YuW3TRY02TFf1csvW5zUgISaeUmSAXeZ D30mwdFtU2433YZWHwqQfx2gXmzTYl42Ljz1jdmnf4vcnlXlsBeop8rJMcfR3D50U6utZglK pNwmKCrpJSSQjNhSLn+rHzJmJXf2eP0AsfeNQo/gxieJpbbKUUoZ0U/UtTHptFFCXm6Jo/GO 0rCM3H/v5ZfV6Tcnic5wBUsamRd2V2Gg3DTlkJu8ST3TQTlHdlz1EAzMhamnsb7poyR5RN+u yBOKV1k7NFSNMQcMtGdZU8aNryDnaITQPHMWqUL1iiHKYbO2jVo5qy+7kx7PHCQu138HLzou W/bLp1jx9PR6u1M7z14HRiyGGxfEytGTD21IVc65x1/rrxWqDvPTCfREtGqbrin8ki
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 24/08/2023 9:52 am, Anthony PERARD wrote:
> On Wed, Aug 23, 2023 at 07:05:56PM +0100, Andrew Cooper wrote:
>> On 23/08/2023 4:23 pm, Anthony PERARD wrote:
>>> On failure of "build"-each-commit script, the next command that move
>>> the log back into the build directory isn't executed. Fix that by
>>> using "after_script" which is always executed even if the main
>>> "script" fails. (We would still miss the log when the jobs times out.)
>>>
>>> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>>> ---
>>> automation/gitlab-ci/test.yaml | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
>>> index 810631bc46..5099f2e6b6 100644
>>> --- a/automation/gitlab-ci/test.yaml
>>> +++ b/automation/gitlab-ci/test.yaml
>>> @@ -140,6 +140,7 @@ build-each-commit-gcc:
>>> CC: gcc
>>> script:
>>> - BASE=${BASE_SHA:-${CI_COMMIT_BEFORE_SHA}}
>>> TIP=${TIP_SHA:-${CI_COMMIT_SHA}}
>>> ./automation/gitlab-ci/build-each-commit.sh 2>&1 | tee
>>> ../build-each-commit-gcc.log
>>> + after_script:
>>> - mv ../build-each-commit-gcc.log .
>>> artifacts:
>>> paths:
>> Thanks for looking into this, and yeah that is dumb, but why play games
>> with the parent directory?
> `git clean -ffdx` has the tendency to remove everything that's not
> committed, that's why. But maybe we can teach ./build-each-commit.sh to
> ignore that logfile.
Oh, right. Yeah, lets not lose the log file like that.
I'd say that teaching `git clean` to leave the file interacted and not
copying it is going to be a more robust option.
~Andrew
|