New issue
Advanced search Search tips

Issue 916763 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 4
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

chromite.lib.purge_lib_unittest testListRemoteBranches flake in CQ

Project Member Reported by dverkamp@chromium.org, Dec 19

Issue description

This failed once on tricky-paladin:

https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8926688645099306576

chromite-0.0.2-r4351: 
chromite-0.0.2-r4351: ======================================================================
chromite-0.0.2-r4351: FAIL: [chromite.lib.purge_lib_unittest] TestHelperMethods.testListRemoteBranches
chromite-0.0.2-r4351: ----------------------------------------------------------------------
chromite-0.0.2-r4351: Traceback (most recent call last):
chromite-0.0.2-r4351:   File "/mnt/host/source/chromite/lib/timeout_util.py", line 191, in TimeoutWrapper
chromite-0.0.2-r4351:     return func(*args, **kwargs)
chromite-0.0.2-r4351:   File "/mnt/host/source/chromite/lib/purge_lib_unittest.py", line 41, in testListRemoteBranches
chromite-0.0.2-r4351:     self.assertGreater(len(branches), 300)
chromite-0.0.2-r4351: AssertionError: 6 not greater than 300
chromite-0.0.2-r4351: 
chromite-0.0.2-r4351: ======================================================================
chromite-0.0.2-r4351: FAIL: [chromite.lib.purge_lib_unittest] TestHelperMethods.testProtectedBranchVersionsLive
chromite-0.0.2-r4351: ----------------------------------------------------------------------
chromite-0.0.2-r4351: Traceback (most recent call last):
chromite-0.0.2-r4351:   File "/mnt/host/source/chromite/lib/timeout_util.py", line 191, in TimeoutWrapper
chromite-0.0.2-r4351:     return func(*args, **kwargs)
chromite-0.0.2-r4351:   File "/mnt/host/source/chromite/lib/purge_lib_unittest.py", line 57, in testProtectedBranchVersionsLive
chromite-0.0.2-r4351:     self.assertGreater(len(branch_versions), 100)
chromite-0.0.2-r4351: AssertionError: 0 not greater than 100
chromite-0.0.2-r4351: 
chromite-0.0.2-r4351: ----------------------------------------------------------------------
 
Hum.. I went looking for the owner of this lib and it's tests. Looks like it's me.
This seems to have happened again on tricky-paladin in the next build:

https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8926675748461527984

Any chance this particular machine has some leftover git cruft that can be cleaned up somehow?
It... shouldn't??

I'm wiping the builder, just in case. It will slow the start of the next build on it.
The text in question hasn't substantially changed in several years, and is NOT board specific in any way, so some kind of builder corruption makes the most sense.
Labels: -Pri-3 Pri-1
2 more failures on tricky-paladin, so changing to P1.
https://ci.chromium.org/p/chromeos/builds/b8925301817712469024
https://ci.chromium.org/p/chromeos/builds/b8925289015649446192
dgarret is out; who's working on this?
The failures in #6 and #8 (and another new one: https://ci.chromium.org/p/chromeos/builds/b8925253832303887616) are all happening on the same Bot: swarm-cros-357
Owner: jclinton@chromium.org
Status: Assigned (was: Untriaged)
All that this test does is locate the chromite directory and run "git branch -lr" counting the number of lines. If it's greater than 300, the test passes. It seems that the git repo is corrupted. Investigating.
I SSH'd to the bot and entered the directory and ran the same command. It came back with 587 remotes. So, it doesn't seem to be corrupted. Continuing to investigate.
Found another copy of the repo on the disk that is indeed corrupted. And it returns 4 instead of 587 just like the failing test log. Nuking it.
I think it's fixed now by running git fetch and git fsck on the directory; will monitor the bot.

Comment 14 Deleted

Status: Fixed (was: Assigned)
New CQ build on this bot got past the breakage point. Fixed.

Sign in to add a comment