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

Đang mở
#9,507 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, go, rust
Lĩnh vực
ci-cd, devops, release

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Rust
Star
5.5k
Fork
869
Merge trung bình
8 giờ 2 phút
Pull request đã merge (30 ngày)
862

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/opendal

Tất cả issue của apache/opendal

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.