[ci] release.yaml 调用不存在的 make build-dubboctl / build-dubbo-cp:develop 上的发布链路是断的

Abierto
#1,646 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 8 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
40/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, go

Línea de trabajo

Start with the Build binary step in .github/workflows/release.yaml, which calls make build-dubboctl and make build-dubbo-cp, then compare it with the targets in Makefile and the Go entry point at app/dubbo-admin/cmd/run.go. Decide how the Makefile should produce the dubbo-admin binary per GOOS/GOARCH and update the workflow's mv lines to match. Done when the release workflow's build step runs without errors for every matrix combination and the archive contains the expected binary. The missing Docker build step and the make generate reference are separate decisions that the maintainers should confirm first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

概要

develop 分支上的发布流水线是断的:.github/workflows/release.yaml 在 Build binary 步骤里调用 make build-dubboctl 和 make build-dubbo-cp,但当前 Makefile 根本没有这两个 target,也没有 dubboctl / dubbo-cp 这两个二进制。Go 重写之后发布链路没有跟着改。

1. 问题

1.1 workflow 调用了不存在的 Makefile target

.github/workflows/release.yaml(develop 分支):

      - name: Build binary
        env:
          GOOS: ${{ matrix.goos }}
          GOARCH: ${{ matrix.goarch }}
          GIT_VERSION: ${{ github.ref_name }}
        run: |
          mkdir -p build/
          make build-dubboctl GOOS=${GOOS} GOARCH=${GOARCH} GIT_VERSION=${GIT_VERSION}
          make build-dubbo-cp   GOOS=${GOOS} GOARCH=${GOARCH} GIT_VERSION=${GIT_VERSION}
          cp README.md LICENSE build/
          mv bin/dubboctl* build/
          mv bin/dubbo-cp* build/
          ls -ln build/
1.2 Makefile 里没有 build target

Makefile(develop 分支)全部 target:

help:
test: clean
fmt:
clean:
lint: install-golangci-lint
install-golangci-lint:

没有 build、build-dubboctl、build-dubbo-cp。

1.3 产物名也是 Java 时代的遗留

mv bin/dubboctl* build/ / mv bin/dubbo-cp* build/ 假定产出物叫 dubboctl 和 dubbo-cp。Go 重写后的产物是 dubbo-admin(app/dubbo-admin/cmd/run.go),bin/dubboctl* 这两个通配符永远匹配不到任何文件。

1.4 没有替代的镜像构建步骤

ci.yml 里没有 Docker 构建/推送步骤。也就是说:既没有能跑的二进制构建,也没有镜像发布自动化,整个发布链路上没有任何自动化在产出可发布物。

2. 为什么重要

  • 发版必然失败:打 tag 触发的 release workflow 在 Build binary 这一步就断,产物不会被打包上传。
  • Go 重写只改了消费端,没改生产端:Java 版是 dubbo-admin + dubboctl + dubbo-cp 三个 assembly,Go 版替换成了单个 dubbo-admin 二进制,但 workflow 仍在按三个产物组织发布。
  • 静默:这条链路只在真正打 tag 时才跑,平时没有测试覆盖,因此断掉很久也不会有人发现。
  • ASF 发版依赖它:没有这条链路,Go 版本的 Release 资产无法自动产出。

3. 证据

$ git show origin/develop:.github/workflows/release.yaml | rg -n 'make |build-'
102:          make build-dubboctl GOOS=${GOOS} GOARCH=${GOARCH} GIT_VERSION=${GIT_VERSION}
103:          make build-dubbo-cp GOOS=${GOOS} GOARCH=${GOARCH} GIT_VERSION=${GIT_VERSION}

$ git show origin/develop:Makefile | rg -n '^[a-zA-Z_-]+:'
26:help:
34:test: clean
37:fmt:
41:clean:
45:lint: install-golangci-lint
49:install-golangci-lint:

另:scripts/resourcegen 生成的头部写的是 make generate,Makefile 中同样没有 generate 目标。

4. 影响范围

  • 影响的发布资产:release tarball / zip 的全部产物。
  • 影响的平台:workflow matrix 里的全部 goos/goarch 组合(linux/windows × amd64/arm64)。
  • 该问题来自 Java vs Go 能力对齐审计报告(docs/java-go-business-parity.md,8 处已验证缺陷中的第 8 条);同批报告还记录了 5 处业务能力缺陷,均不在本 Issue 范围内。
Lenguaje dominante
Go
Estrellas
4.1k
Forks
2.2k
Merge medio
6 d 2 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/dubbo-admin

Todos los issues de apache/dubbo-admin

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.