ambiguous-pointer opened a new issue, #1646:
URL: https://github.com/apache/dubbo-admin/issues/1646

   ## 概要
   
   `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` 分支):
   
   ```yaml
         - 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 范围内。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

  • [I] [ci] release.yaml 调用不... ambiguous-pointer (via GitHub) via notifications

Reply via email to