release: integrate bindings/go into weekly ATR release lifecycle and automated companion publishing

未关闭
#9,507 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, go, rust
领域
ci-cd, devops, release

调研方向

Start with dev/src/release/package.rs, scripts/release_lifecycle.py, and the referenced release workflows and runbooks; read the current ATR release flow and Go companion publishing setup. The issue specifies the version updates, RC checks, publishing gates, proxy verification, and repository retirement steps. Done means the listed acceptance criteria are met, including disabling and archiving apache/opendal-go-services while preserving its historical tags.

由索引模型根据 Issue 内容生成。

描述

bindings/go core enhancement release website

Note: This issue was drafted with AI assistance (Gemini 4 Neon, reviewed by GPT-6.2-Astra) under maintainer @Xuanwo's direction.

Goal

Integrate bindings/go into OpenDAL's weekly ATR release pipeline (dev/src/release/, weekly_release.yml, release_lifecycle.yml, release_publish.yml, scripts/release_lifecycle.py) with zero per-release Go PRs and zero per-release website deploys, and safely retire apache/opendal-go-services.

Scope
  1. Register bindings/go in ATR source releases & version tooling:
    • Add let go = make_package("bindings/go", "0.2.0", vec![core.clone(), c.clone()]); to all_packages() in dev/src/release/package.rs (listing both core and c because archive_package() walks dependencies 1-level deep).
    • Implement update_go_version() to update the 5 require opendal.apache.org/go/artifacts/<target> v<core_ver> lines in bindings/go/go.mod (matching the top-level release tag v<core_ver> so write-once .htaccess works with zero per-release edits).
    • Update negative unit tests that currently use "bindings/go" as an invalid package name in dev/src/release/package.rs (line 713) and scripts/test_release_impact.py (lines 86, 106, 204, 234).
    • Extend scripts/verify.py to build and test extracted apache-opendal-bindings-go-*-src.tar.gz (bindings/c + go test -tags opendal_external_lib with OPENDAL_C_LIB_PATH).
  2. RC dry-run workflow (.github/workflows/release_go.yml):
    • Read-only (contents: read) workflow dispatched by .github/workflows/weekly_release.yml RC builds.
    • Builds all 5 platform companion modules from SHA_RC using locked bindings/c/Cargo.lock, runs per-target cargo deny, dependency-closure checks, compiled ABI probes, and 5-platform consumer tests via a local file:// proxy (default bundled build, go mod tidy, -tags opendal_external_lib with pre-cached non-companion deps, OPENDAL_C_LIB_PATH, 2-process concurrent startup, and MVS ABI-mismatch negative test).
    • Uploads candidate zips + identity.json only as workflow artifacts (never touches GitHub Releases or public Go proxies).
  3. Post-vote publish workflow (.github/workflows/release_go_publish.yml):
    • Separate workflow from RC release_go.yml so a manual dry-run on the final tag can never masquerade as official publication.
    • Pre-flight auth check verifies final tag v<core_ver>, commit matches SHA_RC, GitHub Release v<core_ver> exists (non-draft/non-prerelease), and ATR reports phase release.
    • Job 1 (build, contents: read): builds & verifies all 5 platform .zip, .info, .mod, cumulative list, and identity.json once and persists the exact bundle as a workflow artifact.
    • Job 2 (publish, contents: write, GPG_SECRET_KEY): downloads Job 1's frozen artifact bundle (so "Re-run failed jobs" retries identical bytes without recompiling), signs each zip (.zip.asc) + computes .zip.sha256, and uploads all assets idempotently to GitHub Release v<core_ver> (same SHA-256 → skip; missing → upload; mismatched SHA-256 → abort hard).
  4. Hourly lifecycle state machine (scripts/release_lifecycle.py):
    • Gate release_go_publish.yml dispatch in publish_builds() and go_release(candidate) on bindings/go being present in the candidate's voted package inventory at candidate.sha (never touching pre-existing RC branches like 0.59.6-rc.*).
    • Add go_release(candidate) beside nexus_release(candidate):
      1. Confirm release_go_publish.yml succeeded on SHA_RC and all 5 targets' .zip, .zip.asc, .zip.sha256, .info, .mod, list, and identity.json exist on GitHub Release v<core_ver>.
      2. Read back https://opendal.apache.org/go/modules/... for v<core_ver> (and one prior version whenever list has >1 entry; skipped on inaugural v0.2.0).
      3. Using two separate clean temp GOMODCACHE directories (no pre-populated go.sum), verify all 5 companion modules via GOPROXY=direct and GOPROXY=https://proxy.golang.org (both with GOSUMDB=sum.golang.org), asserting exact Sum and GoModSum match identity.json.
      4. Idempotently create, verify, and push signed tag bindings/go/v<go_ver> at SHA_RC using existing GPG_SECRET_KEY and SOURCE_SIGNING_FINGERPRINT (skip if valid tag already exists at SHA_RC; abort if pointing elsewhere).
      5. Before returning True (which unlocks cleanup()), fetch https://proxy.golang.org/github.com/apache/opendal/bindings/go/@v/v<go_ver>.zip, assert the root module .zip contains LICENSE and NOTICE, and run a clean external consumer (CGO_ENABLED=0, default bundled build, GOSUMDB=sum.golang.org) executing NewOperator("memory", nil).
  5. Release runbooks & apache/opendal-go-services retirement:
    • Update website/community/release/weekly.md (line 290) and .agents/skills/opendal-release/references/{go,rc,official-release}.md.
    • Pre-tag gate (before cutting bindings/go/v0.2.0): Confirm apache/opendal-go-services/.github/workflows/build_artifacts.yaml is explicitly disabled with zero in-flight generate/tag runs; update its README with migration guidance and archive the repo (never delete repo or historical tags).
Acceptance Criteria
  • just release produces apache-opendal-bindings-go-0.2.0-src.tar.gz (including companion packager/templates) and scripts/verify.py builds/tests it.
  • dev unit tests, scripts/test_release_impact.py, and release_lifecycle.py tests cover inaugural v0.2.0, old RC skip, partial upload retry from frozen artifact, and idempotent post-tag proxy retries.
  • apache/opendal-go-services polling workflow confirmed disabled before first bindings/go/v0.2.0 tag, then repo archived with historical tags preserved.
主要语言
Rust
星标
5.5k
派生
869
平均合并
8 小时 2 分钟
30 天内合并 PR
862

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/opendal 的其他 Issue

查看 apache/opendal 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。