Skip to content

Commit c695b56

Browse files
committed
test
1 parent 156b5da commit c695b56

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

examples/managed_job_with_storage.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ file_mounts:
2525
# Change this to your own globally unique bucket name.
2626
name: sky-output-bucket
2727
mode: MOUNT
28+
store: azure
2829

2930
/public-bucket:
3031
source: s3://fah-public-data-covid19-cryptic-pockets
31-
32+
3233
# File mounts for folder
3334
/tmp/workdir: ~/tmp-workdir
3435

@@ -50,7 +51,7 @@ run: |
5051
ls ~/sky_workdir/managed_job_with_storage.yaml
5152
ls ~/bucket_workdir/managed_job_with_storage.yaml
5253
ls -l /public-bucket
53-
54+
5455
5556
mkdir -p /data/logs
5657
touch /data/logs/test.log
@@ -61,6 +62,6 @@ run: |
6162
6263
cat ~/tmpfile
6364
cat ~/a/b/c/tmpfile
64-
65+
6566
# Write to a file in the mounted bucket
6667
echo "hello world!" > /output_path/output.txt

tests/smoke_tests/test_managed_job.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,9 @@ def test_managed_jobs_storage(generic_cloud: str):
947947
f'{smoke_tests_utils.down_cluster_for_cloud_cmd(name)} || true'),
948948
# Increase timeout since sky jobs queue -r can be blocked by other spot tests.
949949
timeout=20 * 60,
950-
)
950+
env={
951+
'SKYPILOT_CONFIG': 'tests/test_yamls/low_resource_sky_config.yaml'
952+
})
951953
smoke_tests_utils.run_one_test(test)
952954

953955

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
jobs:
2+
controller:
3+
resources:
4+
cpus: 2+
5+
memory: 4+
6+
serve:
7+
controller:
8+
resources:
9+
cpus: 2+
10+
memory: 4+

tests/test_yamls/test_storage_mounting.yaml.j2

+3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,22 @@ file_mounts:
2525
name: {{storage_name}}
2626
source: ~/tmp-workdir
2727
mode: {% if only_mount | default(false) %}MOUNT{% else %}COPY{% endif %}
28+
store: azure
2829

2930
# Mounting private buckets in COPY mode with a list of files as source
3031
/mount_private_copy_lof:
3132
name: {{storage_name}}
3233
source: ['~/tmp-workdir/tmp file', '~/tmp-workdir/tmp file2']
3334
mode: {% if only_mount | default(false) %}MOUNT{% else %}COPY{% endif %}
35+
store: azure
3436

3537
{% if include_private_mount | default(True) %}
3638
# Mounting private buckets in MOUNT mode
3739
/mount_private_mount:
3840
name: {{storage_name}}
3941
source: ~/tmp-workdir
4042
mode: MOUNT
43+
store: azure
4144
{% endif %}
4245

4346
run: |

0 commit comments

Comments
 (0)