"cros uprevchrome" fails with "repo ... remote origin ref ... doesn't exist" |
|||||
Issue descriptionI tried to do a dry-run manual Chrome uprev (tracked by issue 860769 ) using the instructions at http://yaqs/eng/q/5592011371970560, but "cros uprevchrome" failed (and failed again when I ran it a second time). https://ci.chromium.org/p/chromeos/builders/luci.chromeos.general/Prod/b8941795598155660624 shows build_id 2724262. ---- % cros uprevchrome --dry-run --pfq-build 2724262 -- bug chromium:860769 11:42:37: WARNING: /usr/local/google/home/derat/chromeos/chromite/lib/cidb.py:236: Warning: (3135L, "'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.") cur.execute("SET SESSION sql_mode='STRICT_ALL_TABLES'") 11:42:37: WARNING: /usr/local/google/home/derat/chromeos/chromite/lib/cidb.py:236: Warning: (3090L, "Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.") cur.execute("SET SESSION sql_mode='STRICT_ALL_TABLES'") 11:42:39: WARNING: /usr/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py:4230: SAWarning: Textual SQL expression 'id IN (2724262)' should be explicitly declared as text('id IN (2724262)') (this warning may be suppressed after 10 occurrences) {"expr": util.ellipses_string(element)}) Setting up working directory... Preparing CLs... 11:44:22: ERROR: cros uprevchrome failed before completing. 11:44:22: ERROR: repo /tmp/uprevchrome_P_wp0B/pub_overlay remote origin ref refs/pfq/staging_pfq_branch_2724262 doesn't exist ---- Issue 698052 is old and mentions the same error at one point, but it's not clear that it's related.
,
Jul 7
The workaround for issue 860584 is in now, but this is still broken. Per Don on crosoncall, "Looks like the problem is that one of our two robot accounts for generating CLs hasn't 'signed' the proper open source contribution agreements."
,
Jul 7
Clearing $HOME/chromeos/.cache didn't help. When I run the command with --debug, the output ends with the following: Setting up working directory... 18:01:36: INFO: RunCommand: git clone https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay /tmp/uprevchrome_RkuzVw/pub_overlay --reference /usr/local/google/home/derat/chromeos/src/third_party/chromiumos-overlay --branch master --single-branch in /tmp/uprevchrome_RkuzVw/pub_overlay 18:02:43: INFO: RunCommand: git clone https://chrome-internal.googlesource.com/chromeos/overlays/chromeos-partner-overlay /tmp/uprevchrome_RkuzVw/priv_overlay --reference /usr/local/google/home/derat/chromeos/src/private-overlays/chromeos-partner-overlay --branch master --single-branch in /tmp/uprevchrome_RkuzVw/priv_overlay Preparing CLs... 18:02:55: INFO: Checking remote refs. 18:02:56: ERROR: cros uprevchrome failed before completing. cros: Unhandled exception: Traceback (most recent call last): File "/usr/local/google/home/derat/chromeos/chromite/bin/cros", line 169, in <module> DoMain() File "/usr/local/google/home/derat/chromeos/chromite/bin/cros", line 165, in DoMain commandline.ScriptWrapperMain(FindTarget) File "/usr/local/google/home/derat/chromeos/chromite/lib/commandline.py", line 911, in ScriptWrapperMain ret = target(argv[1:]) File "/usr/local/google/home/derat/chromeos/chromite/scripts/cros.py", line 66, in main code = _RunSubCommand(subcommand) File "/usr/local/google/home/derat/chromeos/chromite/scripts/cros.py", line 51, in _RunSubCommand return subcommand.Run() File "/usr/local/google/home/derat/chromeos/chromite/cli/cros/cros_uprevchrome.py", line 374, in Run self.UprevChrome(work_dir, self.options.pfq_build, build_number) File "/usr/local/google/home/derat/chromeos/chromite/cli/cros/cros_uprevchrome.py", line 283, in UprevChrome self.CheckRemoteBranch(pub_overlay, remote, remote_ref) File "/usr/local/google/home/derat/chromeos/chromite/cli/cros/cros_uprevchrome.py", line 183, in CheckRemoteBranch % (git_repo, remote, remote_ref)) chromite.cli.cros.cros_uprevchrome.MissingBranchException: repo /tmp/uprevchrome_RkuzVw/pub_overlay remote origin ref refs/pfq/staging_pfq_branch_2724262 doesn't exist Is the problem that the builder run wasn't able to create some ref due to the broken permissions?
,
Jul 7
,
Jul 7
Yes, that's been true since the migration.
,
Jul 7
,
Jul 9
This bug is "Working As Intended", even if it's unfortunate. The bug this is blocked on is what matters. Duping to preserve the CC list and bug blocked on this one.
,
Jul 9
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by dgarr...@chromium.org
, Jul 6