@@ -235,12 +235,13 @@ def __init__(self,
235235 self .fuzzed_key = None
236236 self .absolute_path = None
237237 self .archive_filename = None
238+ self .archived = False
238239
239240 @property
240241 def filename (self ):
241242 return os .path .basename (self .file_path )
242243
243- def is_archived (self ):
244+ def is_uploaded (self ):
244245 """Return true if archive_testcase_in_blobstore(..) was performed."""
245246 return self .fuzzed_key is not None
246247
@@ -249,14 +250,14 @@ def archive_testcase_in_blobstore(self,
249250 """Calling setup.archive_testcase_and_dependencies_in_gcs(..)
250251 and hydrate certain attributes. We single out this method because it's
251252 expensive and we want to do it at the very last minute."""
252- if self .is_archived ():
253+ if self .is_uploaded ():
253254 return
254255
255256 if upload_url .key :
256257 # TODO(metzman): Figure out if we need this check and if we can get rid of
257258 # the archived return value.
258259 self .fuzzed_key = upload_url .key
259- ( _ , self .absolute_path , self .archive_filename ) = (
260+ self . archived , self .absolute_path , self .archive_filename = (
260261 setup .archive_testcase_and_dependencies_in_gcs (
261262 self .resource_list , self .file_path , upload_url .url ))
262263
@@ -275,7 +276,7 @@ def get_error(self):
275276 (self .crash_state , self .unsymbolized_crash_stacktrace ,
276277 self .crash_stacktrace ))
277278
278- if self .is_archived () and not self .fuzzed_key :
279+ if self .is_uploaded () and not self .fuzzed_key :
279280 return f'Unable to store testcase in blobstore: { self .crash_state } '
280281
281282 if not self .crash_state or not self .crash_type :
@@ -914,7 +915,7 @@ def create_testcase(group: uworker_msg_pb2.FuzzTaskCrashGroup,
914915 fuzzer_name = uworker_input .fuzzer_name ,
915916 fully_qualified_fuzzer_name = fully_qualified_fuzzer_name ,
916917 job_type = uworker_input .job_type ,
917- archived = bool ( crash .fuzzed_key ) ,
918+ archived = crash .archived ,
918919 archive_filename = crash .archive_filename ,
919920 http_flag = crash .http_flag ,
920921 gestures = list (crash .gestures ),
0 commit comments