Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 2FDB274A13 for ; Fri, 21 Sep 2018 14:04:26 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id w8LE4CB6005125 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 21 Sep 2018 07:04:13 -0700 (PDT) Received: from soho-mhatle-m.local (172.25.36.227) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.408.0; Fri, 21 Sep 2018 07:04:12 -0700 To: References: <20180921001815.18248-1-mark.hatle@windriver.com> <20180921070220.GR9430@hiutale> From: Mark Hatle Openpgp: preference=signencrypt Autocrypt: addr=mark.hatle@windriver.com; prefer-encrypt=mutual; keydata= xsBNBFYKxFgBCACt/pzutBp6p/xVKTFJjHbM3KpQKCblyot/YP+bpTr51Hrc5xDXBQhoG7TC aIRvRIvbhEevEQK9y04gW3JK/5lobq5ORebolcsHlYBUvpNeIPjupLQwGvz/TPtrLRNGLqDC rvsM6OA2XbQ2bwzxWaSQS3ImE2O2iXOZn9HhThMGeDB4Nff3fgUvXOTDIrgWOn9K2DgLL7Yc zkUIlFdj+Nraksd/7BSk8oH6tjeBVhFqSFvKta9QxWgdr58oPaTYaW/xNqUjlLrbJuMw/MSe xzuYfdfDfm6J8kRjMOnwQ0n8svJElzqAk+d83ow38gpGQ+LkjGgnf8ZFJ4rUJFADroX3ABEB AAHNJU1hcmsgSGF0bGUgPG1hcmsuaGF0bGVAd2luZHJpdmVyLmNvbT7CwHcEEwEIACEFAlYK xFgCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQfv796/r0vvlvZAf9Gs+eN320yhRW V/fZCsngKhmOK4v3HrTwFrkSmoD9QHQiE/5IPdNacHwIPwZx07tNBohB8xOeNqCPRYRBwGhA AnxKOPyd0nnm6ZhPzbA57v4x3IGRQr4QzvcBTASJq91l3Ew4lpAslyx5w1DPPqRD7G8ycDKg peKyDwmdkvCunVisSAQI3XIMq2y230biTO98tDPEezg+lg+yTsz9ZT33F5KNuWrpf8VL5fG/ mt+kAv7wtsx/KTRbqhH3iFXF6eBSwMjAfTXFlkLfbM9riJGXrWEl9n2S2R3cDHNHug0lb8f4 whK370KEO4OwRKIYW/VUBmzk5XZUE9DTlDSV8ycsrs7ATQRWCsRYAQgAwK3FuHCE+HW3YWdH PUjeSn5p//xJ57u8g2rng8zm9zNjmYgpPv5UxozaD9i2jf4mlQLHGGOezhHae8K4Nj70oVcv 8AmwcrJa9i9WL1oy/9R3fHMWf/Ctt9VXTO0qlCuq6PDzaUfvsXR61aJIjTKNQTOjCLjY1vXm VSewUgARysmA8WrjTfwGBihMBxAX0+kIjx8nOlam0WvekMBXZ0AbS56oTLRxYao6DI3GeB/N oWPy/5DfuTKaSdM0Pf8al20x9RuNN5/HLMlyDH/k8bIa1xd9aAqW+Feiw5gC107V2E6ULyIy q6em2UrsmIRxrvpHqbNgQKqvTehJ+V/i4g/uOwARAQABwsBfBBgBCAAJBQJWCsRYAhsMAAoJ EH7+/ev69L755XAH/3ZcNhooqd9OBhFkvXm1iWZ8EoC7motWqVn2oEyxoonsg8AD9kFXiN+T dYp7dH99EZu9q4ptj56AXm4uHzOgywL/5/V2TY6twCGAjUGzDjAB5gzoi+JLIBlDiyOip0eL QswIhRk473xy3j8DA4oVamnSPWgyNJ+qsdt37YWDzoDFFvtDoRU7Eb+znfIMDKzlny0XU/8L cW1bNHJlpv/78GPdfP4tjysEd8MuA5jf5o5w4XqcwTqalffEJtQ/s3pbkstEi7qm5uPui5Kt gq6YYLSqcSNe0GWAF9/T+qwyo7burSTxUWCWtMmlXdAQLW9SynLhB3Jbch0nFAh0fCKi6yY= Organization: Wind River Systems Message-ID: Date: Fri, 21 Sep 2018 09:04:10 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180921070220.GR9430@hiutale> Cc: bitbake-devel@lists.openembedded.org Subject: Re: [PATCH] Fix gitsm networking and mirroring X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2018 14:04:27 -0000 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit On 9/21/18 2:02 AM, Mikko.Rapeli@bmw.de wrote: > Looks good from what I understand of the patch, but I have a question about > git/gitsm fetchers: > > Is it possible that two recipes end up modifying the same file e.g. via > hard links when they use git submodules and share one of the repositories? The symlinks (not hard links in this case) are between the components from the submodule and whatever the fetcher returned. The only modified element(s) are the references to the submodules within the bare repositories. Assuming all users use the same bare repositories, it's my understanding/expectation that the code in the 'downloads' will be the same. The only difference will then be in working dir. > I'm seeing very odd build failures on sumo and it looks like > recipes are either mixing up files in their sysroots or seeing each others > patches on top of the shared git submodule tree. These happen when building > the whole system and rebuilding affected recipes alone makes the problem > go away. Before or after my patch? The gitsm changes here should ONLY affect the repository and any submodules affected. The code affects the fetch and unpack behaviors of the system. So no patches would be applied to the tree.. (well they are not supposed to be!) The previous (current) gitsm fetcher makes it's submodules present using either copies or git submodule updates. In the case of a copy, it might be possible for one workdir to have a symlink back to the download or other shared location. (I never encountered this, so this is purely speculation.) If you can get me a gitsm reproducer for the problems you were seeing, I can run them through this code and see if I can make it work. (As an aside, I think git submodules are one of the worst things ever. I really hate them...) > With svn fetcher we see the same, but that's one of the problems we knew about > from past. svn fetcher does not lock the download cached tree correctly > and if multiple recipes use the same repo, one of them can see the repo > in an inconsistent state and fail with various errors. Our workaround > is to switch to http/s fetcher instead. With my patch set, I'm not doing an explicit locking. The download process itself, should be locked by the existing fetch2 system, and git fetcher. The module setup/symlinking process might be slightly different. One place there COULD be an issue is if two different recipes refer to the same gitsm 'source', but different srcrev, and the different srcrev point to different submodules. I don't know if this is really a concern in practice though. --Mark > -Mikko >