aboutcode-org / aboutcode-org/extractcode

QA Failure for vmimage extractor (vmimage.py): libguestfs configuration on Ubuntu

未关闭
#69 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
39
派生
23
PR 合并指标
30 天内没有已合并 PR

描述

CI job for any builds on Ubuntu 22 fails due to:
```
extractcode.ExtractErrorFailedToExtract: Unable to read kernel at: /boot/vmlinuz-6.5.0-1025-azure.
libguestfs requires the kernel executable to be readable.
This is the case by default on most Linux distributions except on Ubuntu.
```

This exception is raised at:
```
2025-01-25T13:22:44.5081493Z for kern in kernels:
2025-01-25T13:22:44.5081633Z if not os.access(kern, os.R_OK):
2025-01-25T13:22:44.5081786Z > raise ExtractErrorFailedToExtract(
2025-01-25T13:22:44.5081938Z f'Unable to read kernel at: {kern}.\n'
2025-01-25T13:22:44.5082088Z f'{GUESTFISH_KERNEL_NOT_READABLE}'
2025-01-25T13:22:44.5082214Z )
```

This could be handled using mocking for testing scenarios. However, more research is required on how such mocking can be implemented.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。