Skip to content

项目自动化测试 #19

Open
Open

Description

@specialpointcentral

随着贡献者增多,是不是得考虑增加CI了,用于避免一些基础错误。每次修复bug时,似乎都能提交一个/多个测试用例,从而扩充项目的测试集,保持稳定 :-)

Activity

  1. luzeng87 commented on Mar 28, 2025

    @luzeng87
    Contributor

    是的,今天也在和hanlu聊这个事,首先得解决环境问题。

  2. specialpointcentral commented on Mar 28, 2025

    @specialpointcentral
    ContributorAuthor

    似乎得支持action runner,riscv的讨论在这里:

    actions/runner#2157

    以及riscv的已编译仓库:
    https://github.com/dkurt/github_actions_riscv

  3. wojiushixiaobai commented on Mar 28, 2025

    @wojiushixiaobai
    Contributor

    简单的测试用例 qemu 可以胜任

  4. phorcys commented on Mar 30, 2025

    @phorcys
    Contributor

    是的,今天也在和hanlu聊这个事,首先得解决环境问题。

    我尝试用 loongson-community/dotnet-unofficial-build 编译了runner
    基本没有什么障碍,接入我fork的 lat仓库试了试,可以正常运行,没有什么问题。

    下一步结合已有的 debian-loong64/ arch-loong64 /aosc-loongarch64 docker镜像,自动化一个 runner的docker image
    然后在新旧世界各部署几个 docker容器,来跑runner就行。

  5. specialpointcentral commented on Mar 30, 2025

    @specialpointcentral
    ContributorAuthor

    是的,今天也在和hanlu聊这个事,首先得解决环境问题。

    我尝试用 loongson-community/dotnet-unofficial-build 编译了runner 基本没有什么障碍,接入我fork的 lat仓库试了试,可以正常运行,没有什么问题。

    下一步结合已有的 debian-loong64/ arch-loong64 /aosc-loongarch64 docker镜像,自动化一个 runner的docker image 然后在新旧世界各部署几个 docker容器,来跑runner就行。

    请问是在LoongArch原生机编译、运行的嘛 :-)

  6. phorcys commented on Mar 31, 2025

    @phorcys
    Contributor

    是的,今天也在和hanlu聊这个事,首先得解决环境问题。

    我尝试用 loongson-community/dotnet-unofficial-build 编译了runner 基本没有什么障碍,接入我fork的 lat仓库试了试,可以正常运行,没有什么问题。
    下一步结合已有的 debian-loong64/ arch-loong64 /aosc-loongarch64 docker镜像,自动化一个 runner的docker image 然后在新旧世界各部署几个 docker容器,来跑runner就行。

    请问是在LoongArch原生机编译、运行的嘛 :-)

    yes, debian loong64 sid.

  7. added
    enhancement
    on Apr 3, 2025
  8. phorcys commented on Apr 6, 2025

    @phorcys
    Contributor

    是的,今天也在和hanlu聊这个事,首先得解决环境问题。

    我尝试用 loongson-community/dotnet-unofficial-build 编译了runner 基本没有什么障碍,接入我fork的 lat仓库试了试,可以正常运行,没有什么问题。
    下一步结合已有的 debian-loong64/ arch-loong64 /aosc-loongarch64 docker镜像,自动化一个 runner的docker image 然后在新旧世界各部署几个 docker容器,来跑runner就行。

    请问是在LoongArch原生机编译、运行的嘛 :-)

    我在 https://github.com/phorcys/lat/tree/ci 简单做了个利用qemu-user 自动构建的原型。
    不过还没搞完, chroot环境下还没编译过去。

  9. wojiushixiaobai commented on Apr 6, 2025

    @wojiushixiaobai
    Contributor

    @phorcys 也不用从零开始,qemu 直接使用 docker/setup-qemu-action@v3

    镜像也有现成 ghcr.io/loong64/debian:trixie-slim
    担心安全问题可以参考,目前全部用 github actions 的 qemu 实现,不依赖第三方环境。

    简单的实现了一下,目前在 qemu 环境编译不通过,同样的代码在物理环境可以顺利编译 https://github.com/loong64/lat

  10. luzeng87 commented on Apr 7, 2025

    @luzeng87
    Contributor

    是的,今天也在和hanlu聊这个事,首先得解决环境问题。

    我尝试用 loongson-community/dotnet-unofficial-build 编译了runner 基本没有什么障碍,接入我fork的 lat仓库试了试,可以正常运行,没有什么问题。
    下一步结合已有的 debian-loong64/ arch-loong64 /aosc-loongarch64 docker镜像,自动化一个 runner的docker image 然后在新旧世界各部署几个 docker容器,来跑runner就行。

    请问是在LoongArch原生机编译、运行的嘛 :-)

    我在 https://github.com/phorcys/lat/tree/ci 简单做了个利用qemu-user 自动构建的原型。 不过还没搞完, chroot环境下还没编译过去。

    有一个版本了可以PR一下,后面持续完善

  11. wojiushixiaobai commented on Apr 7, 2025

    @wojiushixiaobai
    Contributor

    是否可以考虑使用交叉编译?

    测试的时候使用 qemu 验证。

  12. luzeng87 commented on Apr 8, 2025

    @luzeng87
    Contributor

    是否可以考虑使用交叉编译?

    测试的时候使用 qemu 验证。

    准备搭建几台本地runner,安装debian, archlinux, loongnix, aosc.

  13. specialpointcentral commented on Apr 15, 2025

    @specialpointcentral
    ContributorAuthor

    是否可以考虑使用交叉编译?

    测试的时候使用 qemu 验证。

    感觉可以先交叉编译建立起来,先完成:每次add tag的时候自动release二进制

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions