In src/platform/dev/autoupdate.py, there is code that uses a static (and valid) build version number (999999.0.0) as a sentinal value. This number was raised from 9999.0.0 when it conflicted with live ChromeOS builds and broke the lab.
@staticmethod
def _GetVersionFromDir(image_dir):
"""Returns the version of the image based on the name of the directory."""
latest_version = os.path.basename(image_dir)
parts = latest_version.split('-')
# If we can't get a version number from the directory, default to a high
# number to allow the update to happen
# TODO(phobbs) refactor this.
return parts[1] if len(parts) == 3 else "999999.0.0"
We should not use valid build versions as a sentinal value, but do something cleaner instead.
Comment 1 by nxia@chromium.org
, Oct 13 2017