New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 804106 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

Chrome OS Release Waterfall needs restarted

Project Member Reported by bhthompson@google.com, Jan 20 2018

Issue description

For the 65 branch to instantiate we need the chromeos_release branch restarted.

It appears the cit command to do so is broken:

bhthompson@ragnarok:/usr/local/google/chromium/src$ cit restart chromeos_release
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Cloning into '/tmp/tmpP7s6AB'...
fatal: Unable to read current working directory: No such file or directory
Traceback (most recent call last):
  File "/usr/local/google/home/bhthompson/.chrome-infra/infra/run.py", line 29, in <module>
    sys.exit(run_helper.run_py_main(sys.argv[1:], RUNPY_PATH, ENV_PATH, 'infra'))
  File "/usr/local/google/home/bhthompson/.chrome-infra/infra/bootstrap/run_helper.py", line 123, in run_py_main
    runpy.run_module(args[0], run_name='__main__', alter_sys=True)
  File "/usr/lib/python2.7/runpy.py", line 176, in run_module
    fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code
    mod_name, mod_fname, mod_loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/google/home/bhthompson/.chrome-infra/infra/infra/tools/restart/__main__.py", line 42, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/google/home/bhthompson/.chrome-infra/infra/infra/tools/restart/__main__.py", line 38, in main
    args.no_commit, args.desired_state, args.reason)
  File "/usr/local/google/home/bhthompson/.chrome-infra/infra/infra/tools/restart/restart.py", line 473, in run
    desired_state, reason)
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/google/home/bhthompson/.chrome-infra/infra/infra/tools/restart/restart.py", line 214, in get_master_state_checkout
    shutil.rmtree(target_dir)
  File "/usr/lib/python2.7/shutil.py", line 239, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 237, in rmtree
    names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '/tmp/tmpP7s6AB'
bhthompson@ragnarok:/usr/local/google/chromium/src$ 

The cit command to update the pins worked though https://chrome-internal-review.googlesource.com/#/c/chrome/tools/build/+/550938/ , so all we need now is the `cit restart chromeos_release`.

This should be possible most any time of day, the builds on this only start automatically in the evenings pacific time.

Is it safe to make the CL that this command would make manually to trigger a restart?
 
Cc: hinoka@chromium.org dgarr...@chromium.org jkop@chromium.org
Owner: hinoka@chromium.org
Status: Available (was: Untriaged)
+dgarrett +jkop

> Is it safe to make the CL that this command would make manually to trigger a restart?

I don't know.

+hinoka ? 
Ping for Monday morning, we need to get this started today so we can get a build to release tomorrow off the branch.
The fix for the cit command is probably to update depot_tools (git pull in your depot_tools dir), and then "rm -rf ~/.chromee-infra", and try again. If that doesn't work, akeshet can do it for you.

I'd avoid creating waterfall restart CLs manually.

Status: Verified (was: Available)
Thanks! I had heard last week that cit was broken and assumed it was not something I could easily fix, that seems to have done it though.

The restart CL is in the pipe, I think we can close this.

Comment 5 by hinoka@chromium.org, Jan 22 2018

ftr the "cit" command is just a thin wrapper around run.py.  To run it manually, just:

1. Get an infra checkout via "fetch infra"
2. cd infra ; ./run.py infra.tools.restart ...

Sign in to add a comment