From a6cffd4f4c69ef8da2e17d1ac1adfa08db2b893b Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:29:59 -0500 Subject: [PATCH] Don't include chrome restrictions on uploads in oss-fuzz (#4610) Don't force users to sign trusted agreement. --- src/appengine/handlers/upload_testcase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/appengine/handlers/upload_testcase.py b/src/appengine/handlers/upload_testcase.py index 497de9db97..6d61068051 100644 --- a/src/appengine/handlers/upload_testcase.py +++ b/src/appengine/handlers/upload_testcase.py @@ -392,7 +392,9 @@ def do_post(self): trusted_agreement_signed = request.get( 'trustedAgreement') == TRUSTED_AGREEMENT_TEXT.strip() - if (not trusted_agreement_signed and + # Chrome is the only ClusterFuzz deployment where there are trusted bots running utasks. + # This check also fails on oss-fuzz because of the way it abuses platform. + if (not trusted_agreement_signed and utils.is_chromium() and task_utils.is_remotely_executing_utasks() and ((platform_id and platform_id != 'Linux') or job.platform.lower() != 'linux')):