Bug 46002 - 72_udm-extensions/32_file_integrity_udm_module test fails
72_udm-extensions/32_file_integrity_udm_module test fails
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Philipp Hahn
Jürn Brodersen
http://jenkins.knut.univention.de:808...
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-10 15:00 CET by Florian Best
Modified: 2018-03-14 14:38 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2018-01-10 15:00:04 CET
[2018-01-09 00:25:38.493316] Waiting for replication...
[2018-01-09 00:25:38.609797] Done: replication complete.
[2018-01-09 00:25:38.654792] FILE REPLICATED: '/usr/share/pyshared/univention/admin/handlers/ucstest/cgaevaztht.py'
[2018-01-09 00:25:38.654965] HASH BUFFER: '7da75578ad1430deba994f9c797a737a12071a14'
[2018-01-09 00:25:38.655042] HASH FILE: '7da75578ad1430deba994f9c797a737a12071a14'
[2018-01-09 00:25:38.655206] ### FAIL ###
[2018-01-09 00:25:38.655261] ERROR: sha1 sums of file and buffer differ (fn=/usr/share/univention-management-console-frontend/js/dijit/themes/umc/icons/16x16/udm-ucstest-cgaevaztht.png ; file=ae4f2b681b1e4fbde2a129ea99191825ab9dcf76 ; buffer=6045ceba257f0dbff56785ef1f3d6e9e6fc85cb9)
[2018-01-09 00:25:38.655308] ###      ###
http://jenkins.knut.univention.de:8080/job/UCS-4.3/job/UCS-4.3-0/job/AutotestJoin/25/SambaVersion=s4,Systemrolle=master/testReport/72_udm-extensions/32_file_integrity_udm_module/test/
Comment 1 Florian Best univentionstaff 2018-01-19 10:05:15 CET
There is only some part of the PNG file format differing. (Where?) Are we doing some converting?:

--- buffer

***************

*** 92,107 ****

  M
  E
  
! Ý
! 	
! 
! 
! 
! 
! Z
! ½
! ‹
! s
  �
  �
  �
--- 92,107 ----

  M
  E
  
! â
! 
! 
! 
! 
!  
! 6
! @
! f
! þ
  �
  �
  �
### FAIL ###
ERROR: sha1 sums of file and buffer differ (fn=/usr/share/univention-management-console-frontend/js/dijit/themes/umc/icons/16x16/udm-ucstest-mvhv5i9x6n.png ; file=ae4f2b681b1e4fbde2a129ea99191825ab9dcf76 ; buffer=68b55079fff3f823bedd099694de93ae90a4aa15)
Comment 2 Florian Best univentionstaff 2018-01-22 20:34:03 CET
dpkg-buildpackage changes the content of the files. I think it modifies some meta data of certain file types. I replaced the files with the ones which are generated by dpkg-buildpackage:

ucs-test (8.0.16-7)
165a237a49fd | Bug #46002: dpkg-buildpackage changes files. Use the generated file


diff --git a/test/ucs-test/tests/72_udm-extensions/32_file_integrity_udm_module-16.png b/test/ucs-test/tests/72_udm-extensions/32_file_integrity_udm_module-16.png
index 0885e649db30c697427a0922b13256c0a3d406fd..c3863a47bf62710501aad35d2562fb473d2b709a 100644
GIT binary patch
delta 19
acmcc1c$aZPJSV5HI3r`!-tOXw8KnR{^9F4I

delta 19
acmcc1c$aZPJSUg1h=@W;`_2s$GfDwKU<TX(

diff --git a/test/ucs-test/tests/72_udm-extensions/32_file_integrity_udm_module-50.png b/test/ucs-test/tests/72_udm-extensions/32_file_integrity_udm_module-50.png
index 22661d79217e43377e015c9aec6af1068ec6d5f7..9671ec929687b4b769df7e15589c13be6c05cdd0 100644
GIT binary patch
delta 20
bcmbQkHivCOJSV5HI3r`!-tOX!8C#eDJZ=V7

delta 20
ccmbQkHivCOJSUg1h!{ie{olVfW^7>s07L8tlmGw#

diff --git a/test/ucs-test/tests/72_udm-extensions/de.mo b/test/ucs-test/tests/72_udm-extensions/de.mo
index 0527aa34827dde5b5f65b6f06bd7dc8c72c90c09..ebcb34afd5268730ac60fca217c7647bf1c4844f 100644
GIT binary patch
delta 24
gcmdnQyoq_jN<ITiT|-L+BV#KALu~_tiQ9hz09mL9pa1{>

delta 24
gcmdnQyoq_jN<KpaT|-L+BV#LLb8Q2oiQ9hz09kVfqW}N^

diff --git a/test/ucs-test/tests/72_udm-extensions/es.mo b/test/ucs-test/tests/72_udm-extensions/es.mo
index 3616c1063abc20984fff8a369691f86ba0718ea6..e4eca54a737fb347fa1039f72fb4ade7741d3f4f 100644
GIT binary patch
delta 24
gcmdnQyoq_jN<ITiT|-L+BV#KALu~_tiQ9hz09mL9pa1{>

delta 24
gcmdnQyoq_jN<KpaT|-L+BV#LLb8Q2oiQ9hz09kVfqW}N^

diff --git a/test/ucs-test/tests/72_udm-extensions/it.mo b/test/ucs-test/tests/72_udm-extensions/it.mo
index 90cf73ed0482b6760a8e8201e9352f6cf91d6b69..5272fed0e1225da801a6a87eb74b5fec094e4082 100644
GIT binary patch
delta 24
gcmdnQyoq_jN<ITiT|-L+BV#KALu~_tiQ9hz09mL9pa1{>

delta 24
gcmdnQyoq_jN<KpaT|-L+BV#LLb8Q2oiQ9hz09kVfqW}N^
Comment 3 Philipp Hahn univentionstaff 2018-02-05 16:15:04 CET
FAIL: 165a237a49fd Bug #46002: dpkg-buildpackage changes files. Use the generated file
  Still fails: <http://jenkins.knut.univention.de:8080/job/UCS-4.3/job/UCS-4.3-0/job/AutotestJoin/lastCompletedBuild/SambaVersion=s4,Systemrolle=master/testReport/72_udm-extensions/32_file_integrity_udm_module/test/>

OK: b990df8efdc1 Bug #46002: add debug output
OK: b435ef2bc53b Bug #46002: raise compat level to suppress warnings
OK: fc7dfb8d4e7a Bug #46002: pep8

OK: dpkg-query -W ucs-test-udm-extensions # 8.0.27-2A~4.3.0.2018-02-01_10:25



(In reply to Florian Best from comment #1)
> There is only some part of the PNG file format differing. (Where?)

git show 0885e649db > 32_file_integrity_udm_module-16.png.old
git show c3863a47bf > 32_file_integrity_udm_module-16.png.new
file 32_file_integrity_udm_module-16.png.*
# 32_file_integrity_udm_module-16.png.new: PNG image data, 16 x 16, 8-bit/color RGBA, non-interlaced
# 32_file_integrity_udm_module-16.png.old: PNG image data, 16 x 16, 8-bit/color RGBA, non-interlaced
(printf 'blob %d\0' $(stat -c %s tests/72_udm-extensions/32_file_integrity_udm_module-16.png);cat tests/72_udm-extensions/32_file_integrity_udm_module-16.png)|sha1sum 
# c3863a47bf62710501aad35d2562fb473d2b709a

apt-get install diffoscope sng && diffoscope 32_file_integrity_udm_module-16.png.*
# --- 32_file_integrity_udm_module-16.png.new
# +++ 32_file_integrity_udm_module-16.png.old
# │  tIME {
# │ -    # 19 Sep 2013 23:01:01 GMT
# │ +    # 19 Oct 2013 20:20:32 GMT
# │      year:   2013
# │ -    month:  9
# │ +    month:  10
# │      day:    19
# │ -    hour:   23
# │ -    minute: 1
# │ -    second: 1
# │ +    hour:   20
# │ +    minute: 20
# │ +    second: 32
# │  }

sng < /usr/share/ucs-test/72_udm-extensions/32_file_integrity_udm_module-16.png
# tIME {
#     #  1 Feb 2018 09:25:59 GMT

gzip -dc < /usr/share/doc/ucs-test-udm-extensions/changelog.Debian.gz | dpkg-parsechangelog -l- -SDate
# Thu, 01 Feb 2018 10:25:59 +0100

LANG=C TZ=GMT date -d 'Thu, 01 Feb 2018 10:25:59 +0100'
# Thu Feb  1 09:25:59 GMT 2018


dh binary -v 2>&1 | less
...
#   dh_strip_nondeterminism -O-v
#        Using 1517477159 as canonical time
#        Normalizing debian/ucs-test-udm-extensions/usr/share/ucs-test/72_udm-extensions/es.mo
#        Normalized debian/ucs-test-udm-extensions/usr/share/ucs-test/72_udm-extensions/es.mo
#        Normalizing debian/ucs-test-udm-extensions/usr/share/ucs-test/72_udm-extensions/de.mo
#        Normalized debian/ucs-test-udm-extensions/usr/share/ucs-test/72_udm-extensions/de.mo
#        Normalizing debian/ucs-test-udm-extensions/usr/share/ucs-test/72_udm-extensions/32_file_integrity_udm_module-16.png
#        Normalizing debian/ucs-test-udm-extensions/usr/share/ucs-test/72_udm-extensions/it.mo
#        Normalized debian/ucs-test-udm-extensions/usr/share/ucs-test/72_udm-extensions/it.mo
#        Normalizing debian/ucs-test-udm-extensions/usr/share/ucs-test/72_udm-extensions/32_file_integrity_udm_module-50.png
#        Using 1517477159 as canonical time
#        Normalizing debian/ucs-test-umc/usr/share/ucs-test/60_umc/34_userphoto.png
#        Using 1517477159 as canonical time
#        Normalizing debian/ucs-test-umc-module/usr/share/locale/de/LC_MESSAGES/ucs-test-umc-module.mo
#        Normalized debian/ucs-test-umc-module/usr/share/locale/de/LC_MESSAGES/ucs-test-umc-module.mo
#        Normalizing debian/ucs-test-umc-module/usr/share/univention-management-console/i18n/de/ucstest.mo
#        Normalized debian/ucs-test-umc-module/usr/share/univention-management-console/i18n/de/ucstest.mo

2b882d859f Bug #46002: Do not strip non-determinism

Package: ucs-test
Version: 8.0.27-3A~4.3.0.201802051540
Branch: ucs_4.3-0

OK: ucs-test -s udm-extensions -E dangerous
Comment 5 Philipp Hahn univentionstaff 2018-02-06 12:24:11 CET
(In reply to Philipp Hahn from comment #4)
> QA: Not fixed
> <http://jenkins.knut.univention.de:8080/job/UCS-4.3/job/UCS-4.3-0/job/
> AutotestJoin/57/SambaVersion=s4,Systemrolle=master/testReport/72_udm-
> extensions/32_file_integrity_udm_module/test/>

Not → Now
Comment 7 Stefan Gohmann univentionstaff 2018-03-14 14:38:28 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".