Skip to content

Go-SDK: Make go-sdk docs up to date with Coordinator change#68221

Merged
jason810496 merged 4 commits into
apache:mainfrom
jason810496:refactor/go-sdk/refine-go-sdk-specific-doc
Jun 9, 2026
Merged

Go-SDK: Make go-sdk docs up to date with Coordinator change#68221
jason810496 merged 4 commits into
apache:mainfrom
jason810496:refactor/go-sdk/refine-go-sdk-specific-doc

Conversation

@jason810496

@jason810496 jason810496 commented Jun 8, 2026

Copy link
Copy Markdown
Member

What

The user-facing documentation changes for go-sdk (Go API reference) documentation and the go-sdk/README.md (will show up in https://pkg.go.dev/github.com/apache/airflow/go-sdk after release).

Verification

Checkout this feature branch then run just docs under go-sdk directory and navigate to localhost:6060 to preview what the actual doc looks like.


Was generative AI tooling used to co-author this PR?

Expand GoDoc on the symbols a bundle author touches so the API teaches
its own use: the sdk package overview and Client/Connection interfaces,
and the bundlev1 BundleProvider, Registry, and Dag authoring surface
(including the task-function injection and return-value contract). Also
fixes a ConnectinNotFound typo in an example snippet.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Go Task SDK’s user-facing documentation (README and pkg.go.dev-visible Go doc comments) to reflect the newer “Coordinator” (executable bundle) execution model alongside the existing Edge Worker mode.

Changes:

  • Expanded go-sdk/README.md with a clearer explanation of bundles, Python stub DAGs, Coordinator vs Edge Worker deployment, and protocol details.
  • Improved GoDoc across the SDK and bundle registry APIs to better describe intended usage (narrow client interfaces, XCom behavior, bundle authoring entrypoints).
  • Added a just docs helper to preview rendered Go package docs locally via pkgsite.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
go-sdk/sdk/sdk.go Adds/clarifies GoDoc for env-prefix constants and SDK client interfaces (Variables/Connections/XCom).
go-sdk/sdk/errors.go Documents XComNotFound sentinel error for API 404/miss cases.
go-sdk/sdk/doc.go Rewrites package-level docs with injected-client usage guidance and error semantics.
go-sdk/sdk/connection.go Adds GoDoc describing Connection and GetURI() behavior.
go-sdk/sdk/client.go Documents NewClient() and its intended (mostly test/advanced) usage.
go-sdk/README.md Major rewrite to document Coordinator mode, bundle authoring, configuration, limitations, and protocols.
go-sdk/Justfile Adds a docs recipe to serve pkg docs locally.
go-sdk/bundle/bundlev1/task.go Documents NewTaskFunction wrapper/validation behavior.
go-sdk/bundle/bundlev1/schemas.go Clarifies bundle authoring interfaces/types and their roles in the runtime.
go-sdk/bundle/bundlev1/registry.go Adds detailed docs for registry/DAG/task registration and execution-time lookup.
go-sdk/bundle/bundlev1/bundlev1server/server.go Documents ServerConfig as a forward-compatible options container.

Comment thread go-sdk/sdk/sdk.go Outdated
Comment thread go-sdk/README.md Outdated
Comment thread go-sdk/README.md
Comment thread go-sdk/Justfile Outdated
Comment thread go-sdk/README.md Outdated
- Fix the AIRFLOW__SECTION__KEY env var template (double underscore) and
  reword the coordinator placement note in the README
- Cross-link the formal executable-bundle-spec from the README
- Move the env-prefix const docs onto per-constant comments so they
  satisfy Go doc conventions / revive
- Pin the docs recipe's pkgsite to v0.1.0 for reproducible previews

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Comment thread go-sdk/sdk/errors.go
Comment thread go-sdk/README.md Outdated
- Correct "communication issues to the API server" -> "with" across the
  Variable/Connection/XCom NotFound sentinels
- Make the bundle-spec link absolute so it resolves on pkg.go.dev, where
  relative cross-module paths break

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.

@jason810496 jason810496 marked this pull request as ready for review June 8, 2026 12:33
@jason810496 jason810496 requested review from kaxil and uranusjr June 8, 2026 12:33
Comment thread go-sdk/README.md
@jason810496 jason810496 merged commit 43048ce into apache:main Jun 9, 2026
142 of 145 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in AIP-72 (addendum): Go-SDK Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants