Authentication error whilst downloading PGO profiles

375 views
Skip to first unread message

Richard Townsend

unread,
Apr 8, 2022, 9:49:12 AM4/8/22
to Chromium-dev
Hi all, I'm currently getting a new error on gclient sync:

$ gclient sync
Updating depot_tools...
Syncing projects: 100% (324/324), done.                                                                                                                                                                            
Running hooks:  65% (85/130) Fetch PGO profiles for linux                              
________ running 'python3 src/tools/update_pgo_profiles.py --target=linux update --gs-url-base=chromium-optimization-profiles/pgo_profiles' in '/heracles/nightly-2022-04-08-chromium/chromium_build'
Your credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config command (see "gsutil help config").
Traceback (most recent call last):
  File "src/tools/update_pgo_profiles.py", line 154, in <module>
    sys.exit(main())
  File "src/tools/update_pgo_profiles.py", line 150, in main
    return args.func(args)
  File "src/tools/update_pgo_profiles.py", line 90, in _update
    raise RuntimeError('gsutil failed to download "%s"' % gs_path)
RuntimeError: gsutil failed to download "gs://chromium-optimization-profiles/pgo_profiles/chrome-linux-main-1649397503-2d596cf45d610fc12ab0366fbb62e1ce4e0255e9.profdata"
Error: Command 'python3 src/tools/update_pgo_profiles.py --target=linux update --gs-url-base=chromium-optimization-profiles/pgo_profiles' returned non-zero exit status 1 in /heracles/nightly-2022-04-08-chromium/chromium_build
Your credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config command (see "gsutil help config").
Traceback (most recent call last):
  File "src/tools/update_pgo_profiles.py", line 154, in <module>
    sys.exit(main())
  File "src/tools/update_pgo_profiles.py", line 150, in main
    return args.func(args)
  File "src/tools/update_pgo_profiles.py", line 90, in _update
    raise RuntimeError('gsutil failed to download "%s"' % gs_path)
RuntimeError: gsutil failed to download "gs://chromium-optimization-profiles/pgo_profiles/chrome-linux-main-1649397503-2d596cf45d610fc12ab0366fbb62e1ce4e0255e9.profdata"


I have this in my .gclient file:

solutions = [
  {
    "url": "https://chromium.googlesource.com/chromium/src.git",
    "managed": False,
    "name": "src",
    "custom_deps": {},
    "custom_vars": {
        "checkout_pgo_profiles": True
    },
  },
]
target_os=["android"]


I can work around this for local development, but PGO is very useful for us to generate the kind of release-optimized builds that make it to end users. Does anyone know how I could obtain a key?

Best
Richard

Nico Weber

unread,
Apr 11, 2022, 11:33:29 AM4/11/22
to Richard Townsend, Chromium-dev
These are supposed to be available without any auth.

I can download http://commondatastorage.googleapis.com/chromium-optimization-profiles/pgo_profiles/chrome-linux-main-1649397503-2d596cf45d610fc12ab0366fbb62e1ce4e0255e9.profdata fine in an incognito window. Does that work for you? If so, maybe your gsutil setup is borked in some way -- does it help if you remove ~/.boto?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/4a0c7a46-feb3-4eae-9948-17221c90cd22n%40chromium.org.

Richard Townsend

unread,
Apr 13, 2022, 9:37:32 AM4/13/22
to Chromium-dev, Nico Weber, Chromium-dev, Richard Townsend
Thanks Nico, removing ~/.boto fixed it. 

Best
Richard
Reply all
Reply to author
Forward
0 new messages