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

オープン
#9,507 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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分
マージ済み PR(30日)
862

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/opendal のほかの issue

apache/opendal の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。