Skip to content

Drop colored logging from the Go SDK edge worker - #70824

Merged
jason810496 merged 2 commits into
apache:mainfrom
jason810496:refactor/go-sdk/drop-colored-logs
Aug 1, 2026
Merged

Drop colored logging from the Go SDK edge worker#70824
jason810496 merged 2 commits into
apache:mainfrom
jason810496:refactor/go-sdk/drop-colored-logs

Conversation

@jason810496

Copy link
Copy Markdown
Member

Why

The Go SDK edge worker was the only Edge Worker that colorized its console logs. The Python Edge Worker (edge3 provider) does not support colored logging, so we align the Go side with it and drop the feature rather than maintain coloring the rest of the Edge Worker surface does not offer.

What

Edge worker logs change from colored, human-formatted lines to standard slog text output (time=... level=INFO msg="..." key=value).


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

The Go SDK edge worker was the only Edge Worker that colorized its console
logs. The Python Edge Worker (edge3 provider) does not support colored
logging, so the Go side aligns with it and drops the feature rather than
maintaining coloring the rest of the Edge Worker surface does not offer.

Dropping colored logging removes the sole use of the github.com/MatusOllah/
slogcolor dependency; the edge worker now logs via the standard library slog
text handler, preserving log levels including the custom TRACE level. The
lang-SDK Go example module, which resolves the SDK via a replace directive,
is re-tidied to drop the now-unused indirect slogcolor entry.
The K8S Lang-SDK test always builds the Go bundle from upstream main's
go-sdk, while go_example is a branch fixture whose go.sum is tidied against
the in-repo go-sdk. When a branch changes go-sdk's dependency graph the two
go-sdks diverge, and Go refuses to build the bundle on the resulting go.sum
drift ("missing go.sum entry ..."), turning the bundle-build step red on the
pull request. Re-tidy the scratch go_example against the go-sdk it is actually
compiled against before packing so the build reconciles the drift itself; the
committed go.sum is left untouched and stays guarded by the
check-go-example-mod-tidy prek hook.
@jason810496 jason810496 added the backport-to-v3-3-test Backport to v3-3-test label Aug 1, 2026
@jason810496
jason810496 merged commit 802ffa7 into apache:main Aug 1, 2026
156 checks passed
@github-actions github-actions Bot added this to the Airflow 3.3.2 milestone Aug 1, 2026
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.2 based on: backport label targeting v3-3-test
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-3-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 802ffa7 v3-3-test

This should apply the commit to the v3-3-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

potiuk pushed a commit that referenced this pull request Aug 1, 2026
…#70908)

* Drop colored logging from the Go SDK edge worker

The Go SDK edge worker was the only Edge Worker that colorized its console
logs. The Python Edge Worker (edge3 provider) does not support colored
logging, so the Go side aligns with it and drops the feature rather than
maintaining coloring the rest of the Edge Worker surface does not offer.

Dropping colored logging removes the sole use of the github.com/MatusOllah/
slogcolor dependency; the edge worker now logs via the standard library slog
text handler, preserving log levels including the custom TRACE level. The
lang-SDK Go example module, which resolves the SDK via a replace directive,
is re-tidied to drop the now-unused indirect slogcolor entry.

* Reconcile lang-SDK Go example go.sum before building the bundle

The K8S Lang-SDK test always builds the Go bundle from upstream main's
go-sdk, while go_example is a branch fixture whose go.sum is tidied against
the in-repo go-sdk. When a branch changes go-sdk's dependency graph the two
go-sdks diverge, and Go refuses to build the bundle on the resulting go.sum
drift ("missing go.sum entry ..."), turning the bundle-build step red on the
pull request. Re-tidy the scratch go_example against the go-sdk it is actually
compiled against before packing so the build reconciles the drift itself; the
committed go.sum is left untouched and stays guarded by the
check-go-example-mod-tidy prek hook.
(cherry picked from commit 802ffa7)
potiuk added a commit that referenced this pull request Aug 1, 2026
The K8S Lang-SDK job fails on every commit here: the bundle is packed
against upstream main's go-sdk, but go_example's committed go.sum was
tidied against this branch's go-sdk, and the two dependency graphs have
diverged. Go refuses to build on that drift.

The cherry-pick of #70824 landed without the re-tidy step and its tests,
so main builds cleanly and this branch does not.
vatsrahul1001 pushed a commit that referenced this pull request Aug 5, 2026
…#70908)

* Drop colored logging from the Go SDK edge worker

The Go SDK edge worker was the only Edge Worker that colorized its console
logs. The Python Edge Worker (edge3 provider) does not support colored
logging, so the Go side aligns with it and drops the feature rather than
maintaining coloring the rest of the Edge Worker surface does not offer.

Dropping colored logging removes the sole use of the github.com/MatusOllah/
slogcolor dependency; the edge worker now logs via the standard library slog
text handler, preserving log levels including the custom TRACE level. The
lang-SDK Go example module, which resolves the SDK via a replace directive,
is re-tidied to drop the now-unused indirect slogcolor entry.

* Reconcile lang-SDK Go example go.sum before building the bundle

The K8S Lang-SDK test always builds the Go bundle from upstream main's
go-sdk, while go_example is a branch fixture whose go.sum is tidied against
the in-repo go-sdk. When a branch changes go-sdk's dependency graph the two
go-sdks diverge, and Go refuses to build the bundle on the resulting go.sum
drift ("missing go.sum entry ..."), turning the bundle-build step red on the
pull request. Re-tidy the scratch go_example against the go-sdk it is actually
compiled against before packing so the build reconciles the drift itself; the
committed go.sum is left untouched and stays guarded by the
check-go-example-mod-tidy prek hook.
(cherry picked from commit 802ffa7)
vatsrahul1001 pushed a commit that referenced this pull request Aug 5, 2026
The K8S Lang-SDK job fails on every commit here: the bundle is packed
against upstream main's go-sdk, but go_example's committed go.sum was
tidied against this branch's go-sdk, and the two dependency graphs have
diverged. Go refuses to build on that drift.

The cherry-pick of #70824 landed without the re-tidy step and its tests,
so main builds cleanly and this branch does not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants