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

Aperta
#9,507 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, go, rust
Ambito
ci-cd, devops, release

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Rust
Stelle
5.5k
Fork
869
Merge medio
8h 2m
PR unite (30g)
862

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/opendal

Tutte le issue di apache/opendal

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.