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

Open
#9,507 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, go, rust
Domain
ci-cd, devops, release

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.