Chrome PFQ should run ImageTest |
|||||||||
Issue descriptionForked from https://bugs.chromium.org/p/chromium/issues/detail?id=788925&desc=2#c45. We've had issues in the past where a Chrome uprev would cause ImageTest to fail (see issue 668568 and issue 788925), but since ImageTest is not run as part of Chrome PFQ, we'd only see the issue in paladin and release builders after the Chrome uprev, and we have to scramble to pin back Chrome to an older version and figure out the issue. For example, this builder should run ImageTest: https://uberchromegw.corp.google.com/i/chromeos/builders/chell-chrome-pfq/builds/1482 (just like paladin builders run it: https://uberchromegw.corp.google.com/i/chromeos/builders/chell-paladin/builds/3341 ) Aviv: Can you help triage? Not sure who is a good owner for this.
,
Dec 11 2017
According to config_lib.py, ImageTest should only be run if 'base' is in the image list. The PFQ builders only build the 'test' image, whereas paladin builders build 'base' and 'test'. I'm not sure why that's the case -- why can't ImageTest run on a test image?
,
Dec 11 2017
hmm, it's possible the test image step modifies the rootfs in a way imagetest doesn't like. it's worth running a test though to see ... or just enable "base" image for the chrome pfqs.
,
Dec 11 2017
I can't even get image_test to pass locally on a "base" image. A couple failures:
======================================================================
ERROR: TestValidInterpreter (chromite.cros.test.image_test.BlacklistTest)
Fail if a script's interpreter is not found, or not executable.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/host/source/chromite/cros/test/image_test.py", line 142, in TestValidInterpreter
with open(full_name, 'rb') as f:
IOError: [Errno 13] Permission denied: 'dir-ROOT-A/bin/passwd'
======================================================================
FAIL: TestImportedSymbolsAreAvailable (chromite.cros.test.image_test.SymbolsTest)
Ensure all ELF files' imported symbols are available in ROOT-A.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/host/source/chromite/cros/test/image_test.py", line 380, in TestImportedSymbolsAreAvailable
self.assertFalse(failures, '\n'.join(failures))
AssertionError: File dir-ROOT-A/usr/lib64/pppd/2.4.6/winbind.so contains unsatisfied symbols: set(['chap_check_hook', 'chap_mdtype_all', 'notice', 'fatal', 'add_options', 'chap_verify_hook', 'mppe_set_keys2', 'novm', 'safe_fork', 'option_error', 'slprintf', 'pap_auth_hook', 'GenerateAuthenticatorResponse', 'ChallengeHash', 'ipcp_wantoptions', 'allowed_address_hook', 'pap_check_hook', 'mppe_set_keys'])
(the above failure is repeated for a large number of .so files....)
,
Dec 11 2017
hrm, running as "sudo" passes the test. Trying on a test image now.
,
Dec 12 2017
image_test passes locally on a test image, after a minor tweak (it needs to be told to look for a test image instead of just a base image). I think I'd rather do that than make the PFQ builders build multiple images. Steven, does adding the image_test step to the PFQ builders sound sane to you?
,
Dec 12 2017
+1 to not building multiple images. As long as image_test doesn't take a significant amount of time to run, I have no objections to adding it to the PFQ. We should add it to the pfq-informational builders as well if at all possible (again, assuming the test doesn't take very long) so that we have a smaller blamelist on failure.
,
Dec 12 2017
if it passes on a test image, that sounds OK to me to be fair, it wouldn't really "build" multiple images ... creating a test image involves first creating a base image and then installing/modifying it to be a test image. if we requested a base & test image, we'd back up the base image before we turned it into a test image. image_test itself is pretty fast and is designed to be so. it tends to be run in parallel with other things, and should be possible to have it run in parallel with say Simple Chrome build steps. a glance the CQ shows it currently taking less than 5 minutes.
,
Dec 12 2017
image_test takes 70 seconds locally, on a base or test image. Couldn't find any reason not to run it on a test image, so we'll go that route unless something breaks. I'll add it to the pfq-informational builders first to verify it works as expected.
,
Mar 30 2018
,
Mar 30 2018
,
Jun 1 2018
Michael: Any update on this?
,
Jun 1 2018
I suggest having a gardener tackle this while on shift, in case it causes issues in the PFQ.
,
Jun 1 2018
,
Aug 10
|
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by akes...@chromium.org
, Dec 11 2017Owner: michae...@chromium.org