使用非特权Kubernetes运行器在自定义资源上测试GitHub项目
软件工程
2023-09-12 v1
摘要
GitHub是托管软件项目的热门仓库,既因其易用性,也因其与测试环境的无缝集成。原生GitHub Actions使软件开发者易于验证新提交,并确信新代码不会引入重大错误。免费可用的测试环境仅限于少数流行配置,但可通过自定义Action Runners扩展。我们的团队曾可使用带GPU加速器的Kubernetes集群,因此我们探索了在其中自动部署提供GPU的运行器的可行性。然而,所有可用的基于Kubernetes的方案均需集群管理员级特权。为解决此问题,我们开发了一种以完全非特权方式运行的简易自定义方案。在本文中,我们概要描述该方案以及我们在Prototype National Research Platform系统上两个Knight lab项目中使用的经验。
引用
@article{arxiv.2305.10346,
title = {Testing GitHub projects on custom resources using unprivileged Kubernetes runners},
author = {Igor Sfiligoi and Daniel McDonald and Rob Knight and Frank Würthwein},
journal= {arXiv preprint arXiv:2305.10346},
year = {2023}
}
备注
5 pages, 1 figure, To be published in proceedings of PEARC23