diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0fe2579b1..d96cfc5af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -102,8 +102,7 @@ jobs: strategy: matrix: test: - - disk - - unittest gen-rest-docs gen-cli-docs gen-readthedocs basic auth status batch anonymous competition unicode rest1 upload1 upload2 upload3 upload4 download + - unittest gen-rest-docs gen-cli-docs gen-readthedocs basic auth status batch anonymous competition unicode rest1 upload1 upload2 upload3 upload4 download disk - refs binary rm make worksheet_search worksheet_tags bundle_freeze_unfreeze worksheet_freeze_unfreeze detach perm search_time groups - worker_manager service - run time @@ -290,8 +289,7 @@ jobs: strategy: matrix: test: - - disk - - basic status batch anonymous unicode rest1 upload1 download + - basic status batch anonymous unicode rest1 upload1 download disk - refs binary rm make worksheet_search worksheet_tags bundle_freeze_unfreeze worksheet_freeze_unfreeze detach perm search_time groups - run - search read kill write mimic workers @@ -503,8 +501,7 @@ jobs: strategy: matrix: test: - - disk - - unittest gen-rest-docs gen-cli-docs gen-readthedocs basic auth status batch anonymous competition unicode rest1 upload1 upload2 upload3 upload4 download + - unittest gen-rest-docs gen-cli-docs gen-readthedocs basic auth status batch anonymous competition unicode rest1 upload1 upload2 upload3 upload4 download disk - refs binary rm make worksheet_search worksheet_tags bundle_freeze_unfreeze worksheet_freeze_unfreeze detach perm search_time groups - worker_manager service - run time @@ -620,4 +617,4 @@ jobs: needs: [format, install, test_frontend, build, test_backend, test_backend_on_worker_restart, test_backend_sharedfs, test_backend_protected_mode, test_ui] steps: - uses: actions/checkout@v3 - - run: echo Done + - run: echo Done \ No newline at end of file diff --git a/codalab/rest/bundles.py b/codalab/rest/bundles.py index 6f8c1e8a0..4827e3680 100644 --- a/codalab/rest/bundles.py +++ b/codalab/rest/bundles.py @@ -1349,6 +1349,7 @@ def delete_bundles(uuids, force, recursive, data_only, dry_run): ) # cache these so we have them even after the metadata for the bundle has been deleted + bundle_owner_ids = local.model.get_bundle_owner_ids(relevant_uuids) bundle_data_sizes = local.model.get_bundle_metadata(relevant_uuids, 'data_size') bundle_locations = { uuid: local.bundle_store.get_bundle_location(uuid) for uuid in relevant_uuids @@ -1382,7 +1383,7 @@ def delete_bundles(uuids, force, recursive, data_only, dry_run): # Update user disk used. if removed and uuid in bundle_data_sizes: local.model.increment_user_disk_used( - request.user.user_id, -int(bundle_data_sizes[uuid]) + bundle_owner_ids[uuid], -int(bundle_data_sizes[uuid]) ) return relevant_uuids