Skip to content

Commit d53cb38

Browse files
committed
Instrument kernel install fail
1 parent 5914b10 commit d53cb38

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ install-kernel:
156156
MONITOR_PID=$$!; \
157157
echo "Monitor running with PID $$MONITOR_PID"; \
158158
fi; \
159-
bin/container system start --timeout 60 --enable-kernel-install $(SYSTEM_START_OPTS)
159+
bin/container --debug system start --timeout 60 --enable-kernel-install $(SYSTEM_START_OPTS)
160160

161161
.PHONY: coverage
162162
coverage: init-block
@@ -193,7 +193,7 @@ integration: init-block
193193
MONITOR_PID=$$!; \
194194
echo "Monitor running with PID $$MONITOR_PID"; \
195195
fi; \
196-
bin/container system start --timeout 60 $(SYSTEM_START_OPTS) && \
196+
bin/container --debug system start --timeout 60 $(SYSTEM_START_OPTS) && \
197197
echo "Starting CLI integration tests" && \
198198
{ \
199199
exit_code=0; \

Sources/ContainerCommands/System/SystemStart.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ extension Application {
163163
return
164164
}
165165
print("Installing kernel...")
166-
try await KernelSet.downloadAndInstallWithProgressBar(tarRemoteURL: defaultKernelURL, kernelFilePath: defaultKernelBinaryPath, force: true)
166+
do {
167+
try await KernelSet.downloadAndInstallWithProgressBar(tarRemoteURL: defaultKernelURL, kernelFilePath: defaultKernelBinaryPath, force: true)
168+
} catch {
169+
log.error("Failed to install kernel: \(error)")
170+
throw error
171+
}
167172
}
168173

169174
private func initImageExists() async -> Bool {

0 commit comments

Comments
 (0)