Skip to content

Add GitHub Actions workflow for KVM-based testing of debi.sh#149

Open
cha0sCat wants to merge 1 commit intobohanwood:masterfrom
cha0sCat:master
Open

Add GitHub Actions workflow for KVM-based testing of debi.sh#149
cha0sCat wants to merge 1 commit intobohanwood:masterfrom
cha0sCat:master

Conversation

@cha0sCat
Copy link
Contributor

@cha0sCat cha0sCat commented Nov 27, 2025

使用 workflow 对 debi.sh 进行自动化测试

这个 workflow 会启动一个 KVM 虚拟机,并真的使用 debi.sh 安装系统
甚至通过 matrix,可以自动测试不同参数组合的结果。

辨别测试成功的方式:
KVM 基础镜像的密码,与 debi.sh --password 设置的密码不同
通过不断使用新密码 ssh 到机器,如果链接成功,则代表 DD 成功。

#148 pr 过程中,我们就已经用到了这个测试

148 补丁生效前,D11 安装测试以超时失败告终
https://github.com/cha0sCat/debi/actions/runs/19710528118

148 生效后,所有测试通过
https://github.com/cha0sCat/debi/actions/runs/19711492115

另外,我们还通过此功能,成功发现了一个潜伏的问题:
D10 无法安装,因为 debian-installer 镜像被移动到 archive.debian.org
https://github.com/cha0sCat/debi/actions/runs/19725225408

…antic matrix and caching (#3)

* Initial plan

* Add GitHub Actions workflow for KVM-based testing

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

* Improve error handling and add security note to workflow

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

* Add explicit permissions to workflow for security

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

* Fix QEMU daemonize incompatibility with nographic option

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

* Fix serial.log permissions and artifact naming conflicts

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

* Fix script execution with pseudo-TTY for stty commands

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

* Add full installation verification with reboot and new password check

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

* fix: only add backports if has backports

* Refactor workflow with semantic matrix, caching, and Debian 11 base image

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

* Fix APT cache warning by using user-owned cache directory

Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: cha0sCat <47235156+cha0sCat@users.noreply.github.com>
Co-authored-by: Anonymous <>
@bohanwood
Copy link
Owner

感谢,这周末看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants