Add GitHub Actions workflow for KVM-based testing of debi.sh#149
Open
cha0sCat wants to merge 1 commit intobohanwood:masterfrom
Open
Add GitHub Actions workflow for KVM-based testing of debi.sh#149cha0sCat wants to merge 1 commit intobohanwood:masterfrom
cha0sCat wants to merge 1 commit intobohanwood:masterfrom
Conversation
…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 <>
Owner
|
感谢,这周末看 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
使用 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.orghttps://github.com/cha0sCat/debi/actions/runs/19725225408