Skip to content

Commit 9001423

Browse files
add debug log, fix azure test
1 parent bae6ae1 commit 9001423

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

label_studio/io_storages/base_models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ def sync(self):
520520
self.info_set_queued()
521521
import_sync_background(self.__class__, self.id)
522522
except Exception:
523+
logger.debug(f'Storage {self} failed', exc_info=True)
523524
storage_background_failure(self)
524525

525526
class Meta:

label_studio/io_storages/tests/test_multitask_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def test_preds_and_annots_list(storage):
342342
create_tasks(storage, output)
343343

344344

345-
def test_list_jsonl(storage):
345+
def test_list_jsonl(storage, fflag_feat_root_11_support_jsonl_cloud_storage_on):
346346
task_data = bare_task_list
347347

348348
blob_str = '\n'.join([json.dumps(task) for task in task_data]).encode()

label_studio/tests/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ def generate_signed_url(self, **kwargs):
192192
def content_as_text(self):
193193
return json.dumps(sample_json_contents)
194194

195+
def content_as_bytes(self):
196+
return json.dumps(sample_json_contents).encode('utf-8')
197+
195198
class DummyAzureContainer:
196199
def __init__(self, container_name, **kwargs):
197200
self.name = container_name

0 commit comments

Comments
 (0)