codalab 1.7.5__tar.gz → 1.7.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codalab-1.7.6/PKG-INFO +67 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/common.py +1 -1
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/beam/SQLiteIndexedTar.py +4 -2
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/download_util.py +46 -38
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/file_util.py +12 -7
- codalab-1.7.6/codalab.egg-info/PKG-INFO +67 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab.egg-info/entry_points.txt +0 -1
- {codalab-1.7.5 → codalab-1.7.6}/codalab.egg-info/requires.txt +1 -1
- {codalab-1.7.5 → codalab-1.7.6}/codalab_service.py +9 -1
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/compose_files/docker-compose.yml +2 -2
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/dockerfiles/Dockerfile.server +2 -2
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/dockerfiles/Dockerfile.worker +2 -2
- {codalab-1.7.5 → codalab-1.7.6}/pyproject.toml +6 -0
- {codalab-1.7.5 → codalab-1.7.6}/requirements.txt +1 -1
- {codalab-1.7.5 → codalab-1.7.6}/setup.py +1 -1
- codalab-1.7.5/PKG-INFO +0 -18
- codalab-1.7.5/codalab.egg-info/PKG-INFO +0 -18
- {codalab-1.7.5 → codalab-1.7.6}/LICENSE.txt +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/MANIFEST.in +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/README.md +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bin/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bin/bundle_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bin/cl.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bin/server.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bin/ws_server.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/dataset_bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/derived_bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/make_bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/named_bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/private_bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/program_bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/run_bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/bundles/uploaded_bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/client/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/client/json_api_client.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/beam/MultiReaderFileStream.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/beam/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/beam/blobstorageuploader.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/beam/filesystems.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/beam/mockblobstoragefilesystem.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/beam/streamingzipfile.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/bundle_action.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/bundle_cli.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/bundle_fuse.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/bundle_store.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/bundle_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/canonicalize.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/cli_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/codalab_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/completers.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/crypt_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/download_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/editor_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/emailer.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/file_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/formatting.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/interactive_session.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/metadata_defaults.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/metadata_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/path_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/print_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/profiling_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/server_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/spec_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/telemetry_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/ui_actions.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/unicode_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/upload_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/worksheet_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/lib/zip_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/model/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/model/bundle_model.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/model/mysql_model.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/model/orm_object.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/model/sqlite_model.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/model/tables.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/model/util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/model/worker_model.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/bundle.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/dependency.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/metadata.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/metadata_spec.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/oauth2.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/permission.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/user.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/objects/worksheet.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/account.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/bundle_actions.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/bundles.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/cli.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/groups.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/help.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/interpret.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/oauth2.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/schemas.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/users.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/workers.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/worksheet_block_schemas.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/rest/worksheets.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/auth.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/authenticated_plugin.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/bundle_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/cookie.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/json_api_plugin.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/oauth2_provider.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/rest_server.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/server/worker_info_accessor.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/bundle_service_client.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/bundle_state.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/dependency_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/docker_image_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/docker_utils.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/fsm.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/image_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/main.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/noop_image_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/pyjson.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/reader.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/rest_client.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/runtime/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/runtime/kubernetes_runtime.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/singularity_image_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/state_committer.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/tar_file_stream.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/tar_subdir_stream.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/un_gzip_stream.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/un_tar_directory.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/upload_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/worker.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/worker_monitoring.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/worker_run_state.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker/worker_thread.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker_manager/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker_manager/aws_batch_worker_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker_manager/azure_batch_worker_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker_manager/kubernetes_worker_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker_manager/main.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker_manager/slurm_batch_worker_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab/worker_manager/worker_manager.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab.egg-info/SOURCES.txt +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab.egg-info/dependency_links.txt +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab.egg-info/not-zip-safe +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/codalab.egg-info/top_level.txt +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/.dockerignore +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/compose_files/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/compose_files/docker-compose.dev.yml +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/compose_files/docker-compose.ssl.yml +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/compose_files/files/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/compose_files/files/nginx.conf +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/compose_files/files/nginx.conf.ssl +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/compose_files/files/wait-for-it.sh +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/dockerfiles/Dockerfile.default-cpu +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/dockerfiles/Dockerfile.default-gpu +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/dockerfiles/Dockerfile.frontend +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/docker_config/dockerfiles/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/rc +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/__init__.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/competitiond.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/create-root-user.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/create_sample_worksheet.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/gen-cli-docs.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/gen-rest-docs.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/initialize-azurite.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/migrate-disk-to-blob.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/send-email-notifications.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/test_util.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/scripts/upload-mlcomp.py +0 -0
- {codalab-1.7.5 → codalab-1.7.6}/setup.cfg +0 -0
codalab-1.7.6/PKG-INFO
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: codalab
|
|
3
|
+
Version: 1.7.6
|
|
4
|
+
Summary: CLI for CodaLab, a platform for reproducible computation
|
|
5
|
+
Home-page: https://github.com/codalab/codalab-worksheets
|
|
6
|
+
Author: CodaLab
|
|
7
|
+
Author-email: codalab.worksheets@gmail.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Keywords: codalab reproducible computation worksheets competitions
|
|
10
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Requires-Python: ~=3.9
|
|
14
|
+
License-File: LICENSE.txt
|
|
15
|
+
Requires-Dist: wheel==0.43.0
|
|
16
|
+
Requires-Dist: apache-beam[azure]==2.38.0
|
|
17
|
+
Requires-Dist: cachetools<5,>=3.1.0
|
|
18
|
+
Requires-Dist: google-apitools<0.5.32,>=0.5.31
|
|
19
|
+
Requires-Dist: google-auth<3,>=1.18.0
|
|
20
|
+
Requires-Dist: bottle==0.12.20
|
|
21
|
+
Requires-Dist: docker==4.3.0
|
|
22
|
+
Requires-Dist: marshmallow-jsonapi==0.15.1
|
|
23
|
+
Requires-Dist: marshmallow==2.15.1
|
|
24
|
+
Requires-Dist: setuptools<80,>=40.0.0
|
|
25
|
+
Requires-Dist: argcomplete==1.12.3
|
|
26
|
+
Requires-Dist: indexed_gzip==1.7.0
|
|
27
|
+
Requires-Dist: ratarmountcore==0.1.3
|
|
28
|
+
Requires-Dist: PyYAML==6.0.1
|
|
29
|
+
Requires-Dist: psutil==5.7.2
|
|
30
|
+
Requires-Dist: six==1.15.0
|
|
31
|
+
Requires-Dist: SQLAlchemy==1.3.19
|
|
32
|
+
Requires-Dist: watchdog>=2.0.0
|
|
33
|
+
Requires-Dist: fusepy==2.0.4
|
|
34
|
+
Requires-Dist: pygments<2.13,>=2.12
|
|
35
|
+
Requires-Dist: click==8.0.2
|
|
36
|
+
Requires-Dist: python-dateutil==2.8.1
|
|
37
|
+
Requires-Dist: diffimg==0.2.3
|
|
38
|
+
Requires-Dist: selenium==3.141.0
|
|
39
|
+
Requires-Dist: requests==2.25.0
|
|
40
|
+
Requires-Dist: azure-storage-blob==12.4.0
|
|
41
|
+
Requires-Dist: azure-core==1.8.0
|
|
42
|
+
Requires-Dist: sentry-sdk==1.14.0
|
|
43
|
+
Requires-Dist: requests-oauthlib==1.1.0
|
|
44
|
+
Requires-Dist: oauthlib==2.1.0
|
|
45
|
+
Requires-Dist: markdown2==2.4.0
|
|
46
|
+
Requires-Dist: urllib3==1.26.11
|
|
47
|
+
Requires-Dist: retry==0.9.2
|
|
48
|
+
Requires-Dist: spython==0.1.14
|
|
49
|
+
Requires-Dist: flufl.lock==6.0
|
|
50
|
+
Requires-Dist: websockets==9.1
|
|
51
|
+
Requires-Dist: kubernetes==12.0.1
|
|
52
|
+
Requires-Dist: google-cloud-storage==2.0.0
|
|
53
|
+
Requires-Dist: httpio==0.3.0
|
|
54
|
+
Requires-Dist: memory_profiler==0.61.0
|
|
55
|
+
Dynamic: author
|
|
56
|
+
Dynamic: author-email
|
|
57
|
+
Dynamic: classifier
|
|
58
|
+
Dynamic: description
|
|
59
|
+
Dynamic: home-page
|
|
60
|
+
Dynamic: keywords
|
|
61
|
+
Dynamic: license
|
|
62
|
+
Dynamic: license-file
|
|
63
|
+
Dynamic: requires-dist
|
|
64
|
+
Dynamic: requires-python
|
|
65
|
+
Dynamic: summary
|
|
66
|
+
|
|
67
|
+
Visit https://worksheets.codalab.org/ or setup your own server by following the instructions in the documentation (https://codalab-worksheets.readthedocs.io/en/latest/Server-Setup).
|
|
@@ -29,7 +29,7 @@ from codalab.lib.beam.filesystems import (
|
|
|
29
29
|
|
|
30
30
|
# Increment this on master when ready to cut a release.
|
|
31
31
|
# http://semver.org/
|
|
32
|
-
CODALAB_VERSION = '1.7.
|
|
32
|
+
CODALAB_VERSION = '1.7.6'
|
|
33
33
|
BINARY_PLACEHOLDER = '<binary>'
|
|
34
34
|
URLOPEN_TIMEOUT_SECONDS = int(os.environ.get('CODALAB_URLOPEN_TIMEOUT_SECONDS', 5 * 60))
|
|
35
35
|
|
|
@@ -1476,7 +1476,8 @@ class SQLiteIndexedTar(MountSource):
|
|
|
1476
1476
|
# against this. Therefore, collate all error checking by catching exceptions.
|
|
1477
1477
|
|
|
1478
1478
|
try:
|
|
1479
|
-
gzindex = tempfile.mkstemp(dir=tmpDir)
|
|
1479
|
+
fd, gzindex = tempfile.mkstemp(dir=tmpDir)
|
|
1480
|
+
os.close(fd) # Only the path is needed; leaking the fd pins the file on disk after removal.
|
|
1480
1481
|
with open(gzindex, 'wb') as file:
|
|
1481
1482
|
if 'gzipindexes' in tables:
|
|
1482
1483
|
# Try to read index files containing very large gzip indexes
|
|
@@ -1520,7 +1521,8 @@ class SQLiteIndexedTar(MountSource):
|
|
|
1520
1521
|
# Therefore, try different paths, starting with the location where the index resides.
|
|
1521
1522
|
gzindex = None
|
|
1522
1523
|
for tmpDir in [os.path.dirname(self.indexFilePath), None]:
|
|
1523
|
-
gzindex = tempfile.mkstemp(dir=tmpDir)
|
|
1524
|
+
fd, gzindex = tempfile.mkstemp(dir=tmpDir)
|
|
1525
|
+
os.close(fd) # Only the path is needed; leaking the fd pins the file on disk after removal.
|
|
1524
1526
|
try:
|
|
1525
1527
|
fileObject.export_index(filename=gzindex)
|
|
1526
1528
|
break
|
|
@@ -183,6 +183,49 @@ def _compute_target_info_local(path: str, depth: Union[int, float]) -> TargetInf
|
|
|
183
183
|
return result
|
|
184
184
|
|
|
185
185
|
|
|
186
|
+
def _get_archive_target_info(
|
|
187
|
+
tf: Any, path: str, depth: Union[int, float], process_contents: Any
|
|
188
|
+
) -> TargetInfo:
|
|
189
|
+
"""Gets the target info of the specified path within an opened indexed archive (tf).
|
|
190
|
+
If the specified path is a directory and additional depth is requested, this
|
|
191
|
+
function is recursively called to retrieve the target info of files within
|
|
192
|
+
the directory, much like _compute_target_info_local.
|
|
193
|
+
|
|
194
|
+
This is a module-level function (rather than a recursive closure) on purpose: a
|
|
195
|
+
recursive closure references itself through its closure cell, creating a reference
|
|
196
|
+
cycle that also captures tf. That kept every opened archive (its SQLite index
|
|
197
|
+
connection, temp files and in-memory gzip index) alive until the cyclic garbage
|
|
198
|
+
collector happened to run, leaking memory and disk on the REST server.
|
|
199
|
+
"""
|
|
200
|
+
if not path.startswith("/"):
|
|
201
|
+
path = "/" + path
|
|
202
|
+
finfo = cast(FileInfo, tf.getFileInfo(path))
|
|
203
|
+
if finfo is None:
|
|
204
|
+
# Not found
|
|
205
|
+
raise PathException("File not found.")
|
|
206
|
+
result: TargetInfo = {
|
|
207
|
+
'name': os.path.basename(path), # get last part of path
|
|
208
|
+
'size': finfo.size,
|
|
209
|
+
'perm': finfo.mode & 0o777,
|
|
210
|
+
'type': '',
|
|
211
|
+
}
|
|
212
|
+
if stat.S_ISLNK(finfo.mode):
|
|
213
|
+
result['type'] = 'link'
|
|
214
|
+
result['link'] = finfo.linkname
|
|
215
|
+
elif not stat.S_ISDIR(finfo.mode):
|
|
216
|
+
result['type'] = 'file'
|
|
217
|
+
else:
|
|
218
|
+
result['type'] = 'directory'
|
|
219
|
+
if depth > 0:
|
|
220
|
+
listing = cast(Dict[str, FileInfo], tf.listDir(path) or {})
|
|
221
|
+
result['contents'] = process_contents(
|
|
222
|
+
_get_archive_target_info(tf, path + "/" + file_name, depth - 1, process_contents)
|
|
223
|
+
for file_name in listing
|
|
224
|
+
if file_name != "."
|
|
225
|
+
)
|
|
226
|
+
return result
|
|
227
|
+
|
|
228
|
+
|
|
186
229
|
def _compute_target_info_blob(
|
|
187
230
|
path: str, depth: Union[int, float], return_generators=False
|
|
188
231
|
) -> TargetInfo:
|
|
@@ -216,44 +259,9 @@ def _compute_target_info_blob(
|
|
|
216
259
|
process_contents = list if return_generators is False else lambda x: x
|
|
217
260
|
|
|
218
261
|
with OpenIndexedArchiveFile(linked_bundle_path.bundle_path) as tf:
|
|
219
|
-
|
|
220
|
-
readlink = lambda finfo: finfo.linkname
|
|
221
|
-
isfile = lambda finfo: not stat.S_ISDIR(finfo.mode)
|
|
222
|
-
isdir = lambda finfo: stat.S_ISDIR(finfo.mode)
|
|
223
|
-
listdir = lambda path: cast(Dict[str, FileInfo], tf.listDir(path) or {})
|
|
224
|
-
|
|
262
|
+
# Non-recursive wrapper; see _get_archive_target_info for why recursion lives at module level.
|
|
225
263
|
def _get_info(path: str, depth: Union[int, float]) -> TargetInfo:
|
|
226
|
-
|
|
227
|
-
If the specified path is a directory and additional depth is requested, this
|
|
228
|
-
function is recursively called to retrieve the target info of files within
|
|
229
|
-
the directory, much like _compute_target_info_local.
|
|
230
|
-
"""
|
|
231
|
-
if not path.startswith("/"):
|
|
232
|
-
path = "/" + path
|
|
233
|
-
finfo = cast(FileInfo, tf.getFileInfo(path))
|
|
234
|
-
if finfo is None:
|
|
235
|
-
# Not found
|
|
236
|
-
raise PathException("File not found.")
|
|
237
|
-
result: TargetInfo = {
|
|
238
|
-
'name': os.path.basename(path), # get last part of path
|
|
239
|
-
'size': finfo.size,
|
|
240
|
-
'perm': finfo.mode & 0o777,
|
|
241
|
-
'type': '',
|
|
242
|
-
}
|
|
243
|
-
if islink(finfo):
|
|
244
|
-
result['type'] = 'link'
|
|
245
|
-
result['link'] = readlink(finfo)
|
|
246
|
-
elif isfile(finfo):
|
|
247
|
-
result['type'] = 'file'
|
|
248
|
-
elif isdir(finfo):
|
|
249
|
-
result['type'] = 'directory'
|
|
250
|
-
if depth > 0:
|
|
251
|
-
result['contents'] = process_contents(
|
|
252
|
-
_get_info(path + "/" + file_name, depth - 1)
|
|
253
|
-
for file_name in listdir(path)
|
|
254
|
-
if file_name != "."
|
|
255
|
-
)
|
|
256
|
-
return result
|
|
264
|
+
return _get_archive_target_info(tf, path, depth, process_contents)
|
|
257
265
|
|
|
258
266
|
if not linked_bundle_path.is_archive_dir:
|
|
259
267
|
# Return the contents of the single .gz file.
|
|
@@ -290,7 +298,7 @@ def _compute_target_info_blob(
|
|
|
290
298
|
if depth > 0:
|
|
291
299
|
result['contents'] = process_contents(
|
|
292
300
|
_get_info(file_name, depth - 1)
|
|
293
|
-
for file_name in
|
|
301
|
+
for file_name in cast(Dict[str, FileInfo], tf.listDir("/") or {})
|
|
294
302
|
if file_name != "."
|
|
295
303
|
)
|
|
296
304
|
return result
|
|
@@ -217,13 +217,18 @@ class OpenIndexedArchiveFile(object):
|
|
|
217
217
|
)
|
|
218
218
|
|
|
219
219
|
def __enter__(self) -> SQLiteIndexedTar:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
220
|
+
try:
|
|
221
|
+
return SQLiteIndexedTar(
|
|
222
|
+
fileObject=self.f,
|
|
223
|
+
tarFileName="contents",
|
|
224
|
+
writeIndex=False,
|
|
225
|
+
clearIndexCache=False,
|
|
226
|
+
indexFilePath=self.index_file_name,
|
|
227
|
+
)
|
|
228
|
+
except Exception:
|
|
229
|
+
# __exit__ is not called when __enter__ raises, so clean up the temp index here.
|
|
230
|
+
os.remove(self.index_file_name)
|
|
231
|
+
raise
|
|
227
232
|
|
|
228
233
|
def __exit__(self, type, value, traceback):
|
|
229
234
|
os.remove(self.index_file_name)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: codalab
|
|
3
|
+
Version: 1.7.6
|
|
4
|
+
Summary: CLI for CodaLab, a platform for reproducible computation
|
|
5
|
+
Home-page: https://github.com/codalab/codalab-worksheets
|
|
6
|
+
Author: CodaLab
|
|
7
|
+
Author-email: codalab.worksheets@gmail.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Keywords: codalab reproducible computation worksheets competitions
|
|
10
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Requires-Python: ~=3.9
|
|
14
|
+
License-File: LICENSE.txt
|
|
15
|
+
Requires-Dist: wheel==0.43.0
|
|
16
|
+
Requires-Dist: apache-beam[azure]==2.38.0
|
|
17
|
+
Requires-Dist: cachetools<5,>=3.1.0
|
|
18
|
+
Requires-Dist: google-apitools<0.5.32,>=0.5.31
|
|
19
|
+
Requires-Dist: google-auth<3,>=1.18.0
|
|
20
|
+
Requires-Dist: bottle==0.12.20
|
|
21
|
+
Requires-Dist: docker==4.3.0
|
|
22
|
+
Requires-Dist: marshmallow-jsonapi==0.15.1
|
|
23
|
+
Requires-Dist: marshmallow==2.15.1
|
|
24
|
+
Requires-Dist: setuptools<80,>=40.0.0
|
|
25
|
+
Requires-Dist: argcomplete==1.12.3
|
|
26
|
+
Requires-Dist: indexed_gzip==1.7.0
|
|
27
|
+
Requires-Dist: ratarmountcore==0.1.3
|
|
28
|
+
Requires-Dist: PyYAML==6.0.1
|
|
29
|
+
Requires-Dist: psutil==5.7.2
|
|
30
|
+
Requires-Dist: six==1.15.0
|
|
31
|
+
Requires-Dist: SQLAlchemy==1.3.19
|
|
32
|
+
Requires-Dist: watchdog>=2.0.0
|
|
33
|
+
Requires-Dist: fusepy==2.0.4
|
|
34
|
+
Requires-Dist: pygments<2.13,>=2.12
|
|
35
|
+
Requires-Dist: click==8.0.2
|
|
36
|
+
Requires-Dist: python-dateutil==2.8.1
|
|
37
|
+
Requires-Dist: diffimg==0.2.3
|
|
38
|
+
Requires-Dist: selenium==3.141.0
|
|
39
|
+
Requires-Dist: requests==2.25.0
|
|
40
|
+
Requires-Dist: azure-storage-blob==12.4.0
|
|
41
|
+
Requires-Dist: azure-core==1.8.0
|
|
42
|
+
Requires-Dist: sentry-sdk==1.14.0
|
|
43
|
+
Requires-Dist: requests-oauthlib==1.1.0
|
|
44
|
+
Requires-Dist: oauthlib==2.1.0
|
|
45
|
+
Requires-Dist: markdown2==2.4.0
|
|
46
|
+
Requires-Dist: urllib3==1.26.11
|
|
47
|
+
Requires-Dist: retry==0.9.2
|
|
48
|
+
Requires-Dist: spython==0.1.14
|
|
49
|
+
Requires-Dist: flufl.lock==6.0
|
|
50
|
+
Requires-Dist: websockets==9.1
|
|
51
|
+
Requires-Dist: kubernetes==12.0.1
|
|
52
|
+
Requires-Dist: google-cloud-storage==2.0.0
|
|
53
|
+
Requires-Dist: httpio==0.3.0
|
|
54
|
+
Requires-Dist: memory_profiler==0.61.0
|
|
55
|
+
Dynamic: author
|
|
56
|
+
Dynamic: author-email
|
|
57
|
+
Dynamic: classifier
|
|
58
|
+
Dynamic: description
|
|
59
|
+
Dynamic: home-page
|
|
60
|
+
Dynamic: keywords
|
|
61
|
+
Dynamic: license
|
|
62
|
+
Dynamic: license-file
|
|
63
|
+
Dynamic: requires-dist
|
|
64
|
+
Dynamic: requires-python
|
|
65
|
+
Dynamic: summary
|
|
66
|
+
|
|
67
|
+
Visit https://worksheets.codalab.org/ or setup your own server by following the instructions in the documentation (https://codalab-worksheets.readthedocs.io/en/latest/Server-Setup).
|
|
@@ -21,6 +21,7 @@ from __future__ import print_function
|
|
|
21
21
|
import argparse
|
|
22
22
|
import errno
|
|
23
23
|
import os
|
|
24
|
+
import shutil
|
|
24
25
|
import socket
|
|
25
26
|
import subprocess
|
|
26
27
|
import yaml
|
|
@@ -856,9 +857,16 @@ class CodalabServiceManager(object):
|
|
|
856
857
|
print('')
|
|
857
858
|
return success
|
|
858
859
|
|
|
860
|
+
@staticmethod
|
|
861
|
+
def _compose_binary():
|
|
862
|
+
"""Use the legacy `docker-compose` if installed, else the `docker compose` plugin.
|
|
863
|
+
`--compatibility` keeps the v1 container names (e.g. codalab_rest-server_1) that tests rely on."""
|
|
864
|
+
return 'docker-compose' if shutil.which('docker-compose') else 'docker compose --compatibility'
|
|
865
|
+
|
|
859
866
|
def _run_compose_cmd(self, cmd):
|
|
860
867
|
compose_files_str = ' '.join('-f ' + f for f in self.compose_files)
|
|
861
|
-
command_string = '
|
|
868
|
+
command_string = '%s -p %s --project-directory %s %s %s' % (
|
|
869
|
+
self._compose_binary(),
|
|
862
870
|
self.args.instance_name,
|
|
863
871
|
self.compose_cwd,
|
|
864
872
|
compose_files_str,
|
|
@@ -310,7 +310,7 @@ services:
|
|
|
310
310
|
<<: *codalab-server
|
|
311
311
|
volumes:
|
|
312
312
|
- "${CODALAB_HOME}:${CODALAB_HOME}"
|
|
313
|
-
- ${CODALAB_WORKER_MANAGER_CPU_KUBERNETES_CERT_PATH}:${CODALAB_WORKER_MANAGER_CPU_KUBERNETES_CERT_PATH}:ro
|
|
313
|
+
- ${CODALAB_WORKER_MANAGER_CPU_KUBERNETES_CERT_PATH:-/dev/null}:${CODALAB_WORKER_MANAGER_CPU_KUBERNETES_CERT_PATH:-/dev/null}:ro
|
|
314
314
|
networks:
|
|
315
315
|
- rest-server
|
|
316
316
|
|
|
@@ -345,7 +345,7 @@ services:
|
|
|
345
345
|
<<: *codalab-server
|
|
346
346
|
volumes:
|
|
347
347
|
- "${CODALAB_HOME}:${CODALAB_HOME}"
|
|
348
|
-
- ${CODALAB_WORKER_MANAGER_GPU_KUBERNETES_CERT_PATH}:${CODALAB_WORKER_MANAGER_GPU_KUBERNETES_CERT_PATH}:ro
|
|
348
|
+
- ${CODALAB_WORKER_MANAGER_GPU_KUBERNETES_CERT_PATH:-/dev/null}:${CODALAB_WORKER_MANAGER_GPU_KUBERNETES_CERT_PATH:-/dev/null}:ro
|
|
349
349
|
networks:
|
|
350
350
|
- rest-server
|
|
351
351
|
|
|
@@ -42,12 +42,12 @@ COPY requirements.txt requirements.txt
|
|
|
42
42
|
COPY requirements.docs.txt requirements.docs.txt
|
|
43
43
|
COPY requirements.dev.txt requirements.dev.txt
|
|
44
44
|
COPY requirements-server.txt requirements-server.txt
|
|
45
|
-
RUN python3 -m pip install setuptools --upgrade
|
|
45
|
+
RUN python3 -m pip install "setuptools<80" --upgrade
|
|
46
46
|
RUN python3 -m pip install --no-cache-dir -r requirements-server.txt
|
|
47
47
|
|
|
48
48
|
# Install code
|
|
49
49
|
COPY setup.py setup.py
|
|
50
|
-
RUN python3 -m pip install --no-cache-dir -e .
|
|
50
|
+
RUN python3 -m pip install --no-cache-dir --no-build-isolation -e .
|
|
51
51
|
COPY alembic alembic
|
|
52
52
|
COPY alembic.ini alembic.ini
|
|
53
53
|
COPY codalab codalab
|
|
@@ -38,12 +38,12 @@ RUN mkdir ${WORKDIR}/scripts
|
|
|
38
38
|
# Install dependencies
|
|
39
39
|
COPY requirements.txt requirements.txt
|
|
40
40
|
RUN python3 -m pip install --user --upgrade pip==20.3.4; \
|
|
41
|
-
python3 -m pip install setuptools --upgrade; \
|
|
41
|
+
python3 -m pip install "setuptools<80" --upgrade; \
|
|
42
42
|
python3 -m pip install --no-cache-dir -r requirements.txt;
|
|
43
43
|
|
|
44
44
|
# Install code
|
|
45
45
|
COPY setup.py setup.py
|
|
46
|
-
RUN python3 -m pip install --no-cache-dir -e .
|
|
46
|
+
RUN python3 -m pip install --no-cache-dir --no-build-isolation -e .
|
|
47
47
|
COPY codalab/lib codalab/lib
|
|
48
48
|
COPY codalab/worker codalab/worker
|
|
49
49
|
COPY codalab/common.py codalab/common.py
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Configuration file for using Black for Codalab
|
|
2
2
|
|
|
3
|
+
[build-system]
|
|
4
|
+
# setuptools>=80 `develop` shells out to pip (and 82 removed pkg_resources),
|
|
5
|
+
# which breaks `pip install -e .` in an isolated build env.
|
|
6
|
+
requires = ["setuptools>=40.8.0,<80", "wheel"]
|
|
7
|
+
build-backend = "setuptools.build_meta:__legacy__"
|
|
8
|
+
|
|
3
9
|
[tool.black]
|
|
4
10
|
line-length = 100
|
|
5
11
|
skip-string-normalization = true
|
codalab-1.7.5/PKG-INFO
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: codalab
|
|
3
|
-
Version: 1.7.5
|
|
4
|
-
Summary: CLI for CodaLab, a platform for reproducible computation
|
|
5
|
-
Home-page: https://github.com/codalab/codalab-worksheets
|
|
6
|
-
Author: CodaLab
|
|
7
|
-
Author-email: codalab.worksheets@gmail.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Keywords: codalab reproducible computation worksheets competitions
|
|
10
|
-
Platform: UNKNOWN
|
|
11
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
-
Requires-Python: ~=3.9
|
|
15
|
-
License-File: LICENSE.txt
|
|
16
|
-
|
|
17
|
-
Visit https://worksheets.codalab.org/ or setup your own server by following the instructions in the documentation (https://codalab-worksheets.readthedocs.io/en/latest/Server-Setup).
|
|
18
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: codalab
|
|
3
|
-
Version: 1.7.5
|
|
4
|
-
Summary: CLI for CodaLab, a platform for reproducible computation
|
|
5
|
-
Home-page: https://github.com/codalab/codalab-worksheets
|
|
6
|
-
Author: CodaLab
|
|
7
|
-
Author-email: codalab.worksheets@gmail.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Keywords: codalab reproducible computation worksheets competitions
|
|
10
|
-
Platform: UNKNOWN
|
|
11
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
-
Requires-Python: ~=3.9
|
|
15
|
-
License-File: LICENSE.txt
|
|
16
|
-
|
|
17
|
-
Visit https://worksheets.codalab.org/ or setup your own server by following the instructions in the documentation (https://codalab-worksheets.readthedocs.io/en/latest/Server-Setup).
|
|
18
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|