I've puzzled over why I see local eSDK test failures. It is due to having a
messy git tree locally, git then runs git gc in the background which races
against the deletion code for the publish test. Disable git gc to avoid this.

Signed-off-by: Richard Purdie <[email protected]>
---
 scripts/oe-publish-sdk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk
index deb8ae18078..b8a652e47f5 100755
--- a/scripts/oe-publish-sdk
+++ b/scripts/oe-publish-sdk
@@ -107,9 +107,9 @@ def publish(args):
 
     # Setting up the git repo
     if not is_remote:
-        cmd = 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ]; 
then git init .; cp .git/hooks/post-update.sample .git/hooks/post-commit; echo 
"*.pyc\n*.pyo\npyshtables.py" > .gitignore; fi; git add -A .; git config 
user.email "[email protected]" && git config user.name "OE" && git commit -q -m "init 
repo" || true' % (destination, destination)
+        cmd = 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ]; 
then git init .; cp .git/hooks/post-update.sample .git/hooks/post-commit; echo 
"*.pyc\n*.pyo\npyshtables.py" > .gitignore; fi; git config gc.auto 0; git add 
-A .; git config user.email "[email protected]" && git config user.name "OE" && git 
commit -q -m "init repo" || true' % (destination, destination)
     else:
-        cmd = "ssh %s 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e 
.git ]; then git init .; cp .git/hooks/post-update.sample 
.git/hooks/post-commit; echo '*.pyc' > .gitignore; echo '*.pyo' >> .gitignore; 
echo 'pyshtables.py' >> .gitignore; fi; git add -A .; git config user.email 
'[email protected]' && git config user.name 'OE' && git commit -q -m \"init repo\" || 
true'" % (host, destdir, destdir)
+        cmd = "ssh %s 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e 
.git ]; then git init .; cp .git/hooks/post-update.sample 
.git/hooks/post-commit; echo '*.pyc' > .gitignore; echo '*.pyo' >> .gitignore; 
echo 'pyshtables.py' >> .gitignore; fi; git config gc.auto 0; git add -A .; git 
config user.email '[email protected]' && git config user.name 'OE' && git commit -q -m 
\"init repo\" || true'" % (host, destdir, destdir)
     ret = subprocess.call(cmd, shell=True)
     if ret == 0:
         logger.info('SDK published successfully')
-- 
2.32.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#156252): 
https://lists.openembedded.org/g/openembedded-core/message/156252
Mute This Topic: https://lists.openembedded.org/mt/85796698/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to