Why always get "WARNING: Scripts have changed since pre-upload was allowed." when doing repo upload . ?

17 views
Skip to first unread message

Scott Cunningham

unread,
Aug 19, 2016, 4:37:36 PM8/19/16
to Chromium OS dev
I get this WARNING whenever I run "repo upload .":

scunningham@xot:~/chromiumos/chromeos-admin$ repo upload .
WARNING: Scripts have changed since pre-upload was allowed.

Repo must run the script:
  /usr/local/google/home/scunningham/chromiumos/src/repohooks/pre-upload.py

Do you want to allow this script to run (yes/yes-never-ask-again/NO)? yes

Why am I getting this warning, and how do I make it stop?

Miao-chen Chou

unread,
Aug 19, 2016, 4:54:46 PM8/19/16
to Scott Cunningham, Chromium OS dev
Hi,

You can skip the pre-upload check using 'repo upload --no-verify .' However, it should be used only if it's for sure that the warning is harmless or not applicable.


--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en

---
You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.

Dan Shi

unread,
Aug 19, 2016, 5:01:48 PM8/19/16
to Miao-chen Chou, Scott Cunningham, Chromium OS dev
I think the promt pops up again if there is any presubmit check changes, yes-never-ask-again is the option to stop the prompt until another change in presubmit.

Dan

Mike Frysinger

unread,
Aug 19, 2016, 5:09:52 PM8/19/16
to Dan Shi, Miao-chen Chou, Scott Cunningham, Chromium OS dev
correct!
-mike

Daniel Erat

unread,
Aug 25, 2016, 8:34:26 AM8/25/16
to Mike Frysinger, Dan Shi, Miao-chen Chou, Scott Cunningham, Chromium OS dev
Does this prompt exist for the case where you don't trust other committers to not check in malicious presubmit scripts? If so, I think that our builds already run such a huge amount of checked-in code (with access to run as root, no less) that I don't see any value from the prompt. Is there some way we can suppress it entirely? 

If anyone on the team actually manually reviews the presubmit changes before proceeding whenever they see this instead of just automatically typing "yes-never-ask-again", my hat's off to them.

Mike Frysinger

unread,
Aug 25, 2016, 11:35:59 AM8/25/16
to Daniel Erat, Miao-chen Chou, Dan Shi, Chromium OS dev, Scott Cunningham
I actually just landed a CL in repo to make this simpler for many of the reasons you cited. the release was yesterday with the new code. we have to roll it into our copy in depot_tools, and then you should really only ever see the prompt once per repo checkout.
-mike

Mike Frysinger

unread,
Sep 14, 2016, 1:16:28 AM9/14/16
to Daniel Erat, Miao-chen Chou, Dan Shi, Chromium OS dev, Scott Cunningham
hopefully we should have a new version of repo in depot_tools this/next week which would include this improvement
-mike
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages