Skip to content

Commit

Permalink
Enforce untrusted testcases dont run on trusted platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmetzman committed Jul 1, 2024
1 parent ee3fa5a commit 9510770
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/clusterfuzz/_internal/bot/tasks/utasks/uworker_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,4 @@ def check_handling_testcase_safe(testcase):
if testcase.trusted:
return
if not environment.get_value('UNTRUSTED_UTASK'):
# TODO(https://b.corp.google.com/issues/328691756): Change this to
# log_fatal_and_exit once we are handling untrusted tasks properly.
logs.log_warn(f'Cannot handle {testcase.key.id()} in trusted task.')
logs.log_fatal_and_exit(f'Cannot handle {testcase.key.id()} in trusted task.')

0 comments on commit 9510770

Please sign in to comment.