-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Various improvements to PullImage() + custom registry support #14549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8eb1022
da348e7
ed64898
6281307
4cd28a5
982fd9c
f59c8a4
c8d42ea
ddeb16d
2ee97ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -120,7 +120,7 @@ class WSLCTests | |||||
| settings.MemoryMb = 2048; | ||||||
| settings.BootTimeoutMs = 30 * 1000; | ||||||
| settings.StoragePath = enableStorage ? m_storagePath.c_str() : nullptr; | ||||||
| settings.MaximumStorageSizeMb = 4096; // 4GB. | ||||||
| settings.MaximumStorageSizeMb = 1024 * 20; // 20GB. | ||||||
|
OneBlue marked this conversation as resolved.
|
||||||
| settings.NetworkingMode = networkingMode; | ||||||
|
|
||||||
| return settings; | ||||||
|
|
@@ -452,7 +452,6 @@ class WSLCTests | |||||
|
|
||||||
| if (!ExpectedTag.has_value()) | ||||||
| { | ||||||
|
|
||||||
| wil::unique_cotaskmem_array_ptr<WSLCImageInformation> images; | ||||||
| VERIFY_SUCCEEDED(m_defaultSession->ListImages(nullptr, images.addressof(), images.size_address<ULONG>())); | ||||||
|
|
||||||
|
|
@@ -483,11 +482,31 @@ class WSLCTests | |||||
| }; | ||||||
|
|
||||||
| validatePull("ubuntu@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30", {}); | ||||||
|
|
||||||
| validatePull("ubuntu", "ubuntu:latest"); | ||||||
| validatePull("debian:bookworm", "debian:bookworm"); | ||||||
| validatePull("pytorch/pytorch", "pytorch/pytorch:latest"); | ||||||
|
OneBlue marked this conversation as resolved.
|
||||||
| validatePull("registry.k8s.io/pause:3.2", "registry.k8s.io/pause:3.2"); | ||||||
|
|
||||||
|
Comment on lines
+487
to
+489
|
||||||
| // Validate that PullImage() fails appropriately when the session runs out of space. | ||||||
| { | ||||||
| auto settings = GetDefaultSessionSettings(L"wslc-pull-image-out-of-space", false); | ||||||
| settings.NetworkingMode = WSLCNetworkingModeVirtioProxy; | ||||||
| settings.MemoryMb = 1024; | ||||||
| auto session = CreateSession(settings); | ||||||
|
|
||||||
| // TODO: Add test coverage with custom registries once supported. | ||||||
| VERIFY_ARE_EQUAL(session->PullImage("pytorch/pytorch", nullptr, nullptr), E_FAIL); | ||||||
|
|
||||||
| auto comError = wsl::windows::common::wslutil::GetCOMErrorInfo(); | ||||||
| VERIFY_IS_TRUE(comError.has_value()); | ||||||
|
|
||||||
| // The error message can't be compared directly because it contains an unpredicable path: | ||||||
|
||||||
| // The error message can't be compared directly because it contains an unpredicable path: | |
| // The error message can't be compared directly because it contains an unpredictable path: |
Uh oh!
There was an error while loading. Please reload this page.