[opensuse-buildservice] Increase timeout before job killing
Hi, Is it possible to increase the time before a job is killed on an OBS server? Because for FFMPEG for armv6, I get the following error: ******************************************************************************** ... [ 765s] build-mkbaselibs-20131015-1.2 ######################################## [ 765s] yasm-1.2.0-7.1.2 ######################################## [ 778s] kernel-obs-build-1-1.2 ######################################## [29582s] /var/run/obs/worker/2/build/init_buildsystem: line 20: 24160 Killed chroot $BUILD_ROOT rpm --ignorearch --nodeps -Uh --oldpackage --ignoresize --verbose $RPMCHECKOPTS $ADDITIONAL_PARAMS .init_b_cache/manifest 2>&1 Job seems to be stuck here, killed. [29585s] exit ... ******************************************************************************** But with an osc build, I can get it compiled but the install step is very long. Guillaume -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Montag, 19. Mai 2014, 21:17:49 wrote Guillaume Gardet:
Hi,
Is it possible to increase the time before a job is killed on an OBS server?
...
[ 778s] kernel-obs-build-1-1.2 ######################################## [29582s] /var/run/obs/worker/2/build/init_buildsystem: line 20: 24160 Killed chroot $BUILD_ROOT rpm --ignorearch --nodeps -Uh --oldpackage --ignoresize --verbose $RPMCHECKOPTS $ADDITIONAL_PARAMS .init_b_cache/manifest 2>&1 .. But with an osc build, I can get it compiled but the install step is very long.
I doubt that unpacking this rpm should take that long. It has no scripts, just a kernel and initrd binary image inside. So, increasing the timeout will not really help (it is currently hardcoded in OBS worker), we need to find the reason why it hangs that long.. -- Adrian Schroeter email: adrian@suse.de SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Le 19/05/2014 22:07, Adrian Schröter a écrit :
On Montag, 19. Mai 2014, 21:17:49 wrote Guillaume Gardet:
Hi,
Is it possible to increase the time before a job is killed on an OBS server? ...
[ 778s] kernel-obs-build-1-1.2 ######################################## [29582s] /var/run/obs/worker/2/build/init_buildsystem: line 20: 24160 Killed chroot $BUILD_ROOT rpm --ignorearch --nodeps -Uh --oldpackage --ignoresize --verbose $RPMCHECKOPTS $ADDITIONAL_PARAMS .init_b_cache/manifest 2>&1 .. But with an osc build, I can get it compiled but the install step is very long. I doubt that unpacking this rpm should take that long. It has no scripts, just a kernel and initrd binary image inside.
So, increasing the timeout will not really help (it is currently hardcoded in OBS worker), we need to find the reason why it hangs that long..
How to debug that? A process watcher just show qemu-arm processes. On my local build the next lines are : ******************************************************************************** [ 319s] kernel-obs-build-1-1.2 ######################################## [17050s] removing nis flags from /var/tmp/build-root/openSUSE_13.1_ARM-armv6l/etc/nsswitch.conf... [17050s] now finalizing build dir... [17054s] build target is armv6hl-suse-linux [17054s] ----------------------------------------------------------------- [17054s] I have the following modifications for ffmpeg.spec: [17054s] ----------------------------------------------------------------- [17054s] ----- building ffmpeg.spec (user abuild) [17054s] ----------------------------------------------------------------- [17054s] ----------------------------------------------------------------- [17054s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --target=armv6hl-suse-linux --define '_build_create_debug 1' /home/abuild/rpmbuild/SOURCES/ffmpeg.spec [17055s] Building target platforms: armv6hl-suse-linux [17055s] Building for target armv6hl-suse-linux [17055s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MeaRdQ (...) ******************************************************************************** Guillaume -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Adrian Schröter <adrian@suse.de> writes:
On Montag, 19. Mai 2014, 21:17:49 wrote Guillaume Gardet:
Hi,
Is it possible to increase the time before a job is killed on an OBS server?
...
[ 778s] kernel-obs-build-1-1.2 ######################################## [29582s] /var/run/obs/worker/2/build/init_buildsystem: line 20: 24160 Killed chroot $BUILD_ROOT rpm --ignorearch --nodeps -Uh --oldpackage --ignoresize --verbose $RPMCHECKOPTS $ADDITIONAL_PARAMS .init_b_cache/manifest 2>&1 .. But with an osc build, I can get it compiled but the install step is very long.
I doubt that unpacking this rpm should take that long. It has no scripts, just a kernel and initrd binary image inside.
It could also be posttrans scripts. For example, texlive uses one which takes a lot of time. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
----- Andreas Schwab <schwab@linux-m68k.org> a écrit :
Adrian Schröter <adrian@suse.de> writes:
On Montag, 19. Mai 2014, 21:17:49 wrote Guillaume Gardet:
Hi,
Is it possible to increase the time before a job is killed on an OBS server?
...
[ 778s] kernel-obs-build-1-1.2 ######################################## [29582s] /var/run/obs/worker/2/build/init_buildsystem: line 20: 24160 Killed chroot $BUILD_ROOT rpm --ignorearch --nodeps -Uh --oldpackage --ignoresize --verbose $RPMCHECKOPTS $ADDITIONAL_PARAMS .init_b_cache/manifest 2>&1 .. But with an osc build, I can get it compiled but the install step is very long.
I doubt that unpacking this rpm should take that long. It has no scripts, just a kernel and initrd binary image inside.
It could also be posttrans scripts. For example, texlive uses one which takes a lot of time.
There are lots of packages including texlive packages. How to check? Guillaume
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
guillaume.gardet@free.fr writes:
There are lots of packages including texlive packages.
That's your problem. The %posttrans of the texlive packages just take a lot of time. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
----- Andreas Schwab <schwab@linux-m68k.org> a écrit :
guillaume.gardet@free.fr writes:
There are lots of packages including texlive packages.
That's your problem. The %posttrans of the texlive packages just take a lot of time.
How to solve this problem? Is there a way to get some output from %posttrans so that obs does not think it is dead? Guillaume -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
guillaume.gardet@free.fr writes:
----- Andreas Schwab <schwab@linux-m68k.org> a écrit :
guillaume.gardet@free.fr writes:
There are lots of packages including texlive packages.
That's your problem. The %posttrans of the texlive packages just take a lot of time.
How to solve this problem?
Speed up texconfig/update when there is nothing to do. That can easily save 70% of the silent time. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Dienstag, 20. Mai 2014, 20:14:00 wrote guillaume.gardet@free.fr:
----- Andreas Schwab <schwab@linux-m68k.org> a écrit :
guillaume.gardet@free.fr writes:
There are lots of packages including texlive packages.
That's your problem. The %posttrans of the texlive packages just take a lot of time.
How to solve this problem?
Is there a way to get some output from %posttrans so that obs does not think it is dead?
well, I could apply a hack increasing the time for aarch64 only. On the other hand, this is stealing quite a lot of build power, so some solution in the packaging would be much better. Or we speed it up via qemu-accel package.... -- Adrian Schroeter email: adrian@suse.de SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany
participants (4)
-
Adrian Schröter
-
Andreas Schwab
-
Guillaume Gardet
-
guillaume.gardet@free.fr