[Bug 678868] New: osc up -u truncates .osc/_files due to lack of error handling
https://bugzilla.novell.com/show_bug.cgi?id=678868 https://bugzilla.novell.com/show_bug.cgi?id=678868#c0 Summary: osc up -u truncates .osc/_files due to lack of error handling Classification: Internal Novell Products Product: openSUSE Build Service Version: master Platform: x86-64 OS/Version: Linux Status: NEW Severity: Critical Priority: P5 - None Component: osc AssignedTo: adrian@novell.com ReportedBy: ohering@novell.com QAContact: adrian@novell.com Found By: Outsourced Testing Blocker: --- sles11sp1 with official updates on bax.arch.suse.de, osc --version 0.125.5 I have a script which syncs the svn tree to the buildservice. Its in Devel:Virt:svn_autotest-xen/scripts. It contains also a 'osc up -u' run, which essentially does nothing since there are no upstream changes to pull. However, at random times .osc/_files of some package gets trunctated, at the next run the script runs into a corrupted checkout: .. alias '11.3' svn_dir 'branches/openSUSE-11.3-Branch' ibs_suffix 'openSUSE-11.3-Branch' ibs_project 'openSUSE.org:openSUSE:11.3' packages 'xen kernel libvirt libvirt-cim virt-manager virt-viewer vhostmd' Using Devel:Virt:svn_autotest-xen:openSUSE-11.3-Branch as IBS working copy Working copy state: './installation-images' is not a valid working copy. When parsing .osc/_files, the following error was encountered: no element found: line 1, column 0 .. Looking at /usr/lib64/python2.6/site-packages/osc/core.py:update_local_filesmeta() I see nothing that prevents that from happening. There is no check wether http_GET() returns anything. Instead whatever happens is written to '_files', in my case nothing. Please fix and release as bugfix update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=678868
https://bugzilla.novell.com/show_bug.cgi?id=678868#c1
Marcus Hüwe
https://bugzilla.novell.com/show_bug.cgi?id=678868
https://bugzilla.novell.com/show_bug.cgi?id=678868#c2
--- Comment #2 from Olaf Hering
This bug shouldn't happen with a recent osc version (>= 0.130). The whole update mechnism was rewritten in the meantime.
It was probably rewritten, but not fixed. A failed update or checkout will still leave a mess behind. bug #690492 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=678868
https://bugzilla.novell.com/show_bug.cgi?id=678868#c3
Adrian Schröter
participants (1)
-
bugzilla_noreply@novell.com