🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

refactor: reorganize console output - #10876

Merged
olblak merged 16 commits into
updatecli:mainfrom
olblak:refactor/internal-logging
Oct 20, 2026
Merged

olblak merged 16 commits into
updatecli:mainfrom
olblak:refactor/internal-logging

Conversation

@olblak

@olblak olblak commented Oct 16, 2026

Copy link
Copy Markdown
Member

This pullrequest introduces the following changes

  1. Migrate from logrus to an internal log package
  2. Switch logrus to slog + lipgloss

Test

To test this pull request, you can run the following commands:

cd <to_package_directory>
go test

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.
  • I have tested this pull request manually with a custom Updatecli build and it works as expected.

Tradeoff

Potential improvement

@olblak olblak added the enhancement New feature or request label Oct 16, 2026
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 446 files, which is 296 over the limit of 150.

To get a review, reduce the PR to 150 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8d954253-a58d-4b12-a327-f91bebdc147a
📥 Commits

Reviewing files that changed from the base of the PR and between a5c7496 and 424ad45.

⛔ Files ignored due to path filters: 1
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing: 446
  • .golangci.yml
  • cmd/apply.go
  • cmd/compose_apply.go
  • cmd/compose_diff.go
  • cmd/compose_show.go
  • cmd/diff.go
  • cmd/docs.go
  • cmd/env.go
  • cmd/jsonschema.go
  • cmd/manifest_init.go
  • cmd/manifest_pull.go
  • cmd/manifest_push.go
  • cmd/manifest_show.go
  • cmd/manifest_upgrade.go
  • cmd/manifest_validate.go
  • cmd/pipeline_apply.go
  • cmd/pipeline_diff.go
  • cmd/pipeline_prepare.go
  • cmd/prepare.go
  • cmd/root.go
  • cmd/show.go
  • cmd/udash_config.go
  • cmd/udash_login.go
  • cmd/udash_logout.go
  • cmd/version.go
  • go.mod
  • pkg/core/cache/source.go
  • pkg/core/compose/file.go
  • pkg/core/compose/main.go
  • pkg/core/compose/schemavalidate.go
  • pkg/core/config/defaults.go
  • pkg/core/config/helper.go
  • pkg/core/config/main.go
  • pkg/core/config/schemavalidate.go
  • pkg/core/config/template.go
  • pkg/core/engine/actions.go
  • pkg/core/engine/autodiscovery.go
  • pkg/core/engine/configuration.go
  • pkg/core/engine/exportReport.go
  • pkg/core/engine/manifest_show.go
  • pkg/core/engine/manifest_upgrade.go
  • pkg/core/engine/manifest_validate.go
  • pkg/core/engine/prepare.go
  • pkg/core/engine/registry.go
  • pkg/core/engine/reports.go
  • pkg/core/engine/run.go
  • pkg/core/engine/scaffold.go
  • pkg/core/engine/schema.go
  • pkg/core/engine/scm.go
  • pkg/core/engine/udash.go
  • pkg/core/engine/utils.go
  • pkg/core/engine/version.go
  • pkg/core/httpclient/caching.go
  • pkg/core/httpclient/caching_test.go
  • pkg/core/httpclient/retry.go
  • pkg/core/httpclient/transport.go
  • pkg/core/jsonschema/main.go
  • pkg/core/log/format.go
  • pkg/core/log/format_test.go
  • pkg/core/log/log.go
  • pkg/core/log/log_test.go
  • pkg/core/log/logrus.go
  • pkg/core/log/output.go
  • pkg/core/log/output_test.go
  • pkg/core/log/tail.go
  • pkg/core/log/tail_test.go
  • pkg/core/log/title.go
  • pkg/core/pipeline/action/main.go
  • pkg/core/pipeline/actions.go
  • pkg/core/pipeline/autodiscovery/groupby.go
  • pkg/core/pipeline/autodiscovery/main.go
  • pkg/core/pipeline/condition/main.go
  • pkg/core/pipeline/console_output.go
  • pkg/core/pipeline/console_output_test.go
  • pkg/core/pipeline/main.go
  • pkg/core/pipeline/main_helpers_test.go
  • pkg/core/pipeline/main_test.go
  • pkg/core/pipeline/scm/config.go
  • pkg/core/pipeline/scmdirectory.go
  • pkg/core/pipeline/sort.go
  • pkg/core/pipeline/sort_test.go
  • pkg/core/pipeline/source/main.go
  • pkg/core/pipeline/target/main.go
  • pkg/core/pipeline/targets.go
  • pkg/core/pipeline/utils.go
  • pkg/core/registry/pull.go
  • pkg/core/registry/push.go
  • pkg/core/registry/utils.go
  • pkg/core/reports/action.go
  • pkg/core/reports/actions.go
  • pkg/core/reports/main.go
  • pkg/core/reports/report.go
  • pkg/core/result/changelog.go
  • pkg/core/result/condition.go
  • pkg/core/result/source.go
  • pkg/core/result/target.go
  • pkg/core/scaffold/config.go
  • pkg/core/scaffold/main.go
  • pkg/core/scaffold/policy.go
  • pkg/core/telemetry/telemetry.go
  • pkg/core/text/main.go
  • pkg/core/transformer/apply_log_test.go
  • pkg/core/transformer/findSubMatch.go
  • pkg/core/transformer/main.go
  • pkg/core/udash/config_spec.go
  • pkg/core/udash/helpers.go
  • pkg/core/udash/login.go
  • pkg/core/udash/logout.go
  • pkg/core/udash/publish.go
  • pkg/core/version/main.go
  • pkg/plugins/autodiscovery/argocd/application.go
  • pkg/plugins/autodiscovery/argocd/main.go
  • pkg/plugins/autodiscovery/argocd/matchingRule.go
  • pkg/plugins/autodiscovery/argocd/utils.go
  • pkg/plugins/autodiscovery/bazel/main.go
  • pkg/plugins/autodiscovery/bazel/matchingRule.go
  • pkg/plugins/autodiscovery/bazel/utils.go
  • pkg/plugins/autodiscovery/cargo/dependencies.go
  • pkg/plugins/autodiscovery/cargo/main.go
  • pkg/plugins/autodiscovery/cargo/matchingRule.go
  • pkg/plugins/autodiscovery/cargo/utils.go
  • pkg/plugins/autodiscovery/dockercompose/compose.go
  • pkg/plugins/autodiscovery/dockercompose/main.go
  • pkg/plugins/autodiscovery/dockercompose/matchingRule.go
  • pkg/plugins/autodiscovery/dockercompose/utils.go
  • pkg/plugins/autodiscovery/dockerfile/dockerfile.go
  • pkg/plugins/autodiscovery/dockerfile/main.go
  • pkg/plugins/autodiscovery/dockerfile/matchingRule.go
  • pkg/plugins/autodiscovery/dockerfile/utils.go
  • pkg/plugins/autodiscovery/fleet/dependencies.go
  • pkg/plugins/autodiscovery/fleet/main.go
  • pkg/plugins/autodiscovery/fleet/matchingRule.go
  • pkg/plugins/autodiscovery/fleet/utils.go
  • pkg/plugins/autodiscovery/flux/helmreleaseManifests.go
  • pkg/plugins/autodiscovery/flux/main.go
  • pkg/plugins/autodiscovery/flux/matchingRule.go
  • pkg/plugins/autodiscovery/flux/ociRepositoryManifests.go
  • pkg/plugins/autodiscovery/flux/utils.go
  • pkg/plugins/autodiscovery/githubaction/main.go
  • pkg/plugins/autodiscovery/githubaction/matchingRule.go
  • pkg/plugins/autodiscovery/githubaction/utils.go
  • pkg/plugins/autodiscovery/githubaction/workflow.go
  • pkg/plugins/autodiscovery/githubaction/workflowDockerManifest.go
  • pkg/plugins/autodiscovery/githubaction/workflowGHAManifest.go
  • pkg/plugins/autodiscovery/githubaction/workflowManifests.go
  • pkg/plugins/autodiscovery/golang/dependency.go
  • pkg/plugins/autodiscovery/golang/main.go
  • pkg/plugins/autodiscovery/golang/matchingRule.go
  • pkg/plugins/autodiscovery/golang/utils.go
  • pkg/plugins/autodiscovery/helm/container.go
  • pkg/plugins/autodiscovery/helm/dependencies.go
  • pkg/plugins/autodiscovery/helm/main.go
  • pkg/plugins/autodiscovery/helm/matchingRule.go
  • pkg/plugins/autodiscovery/helm/utils.go
  • pkg/plugins/autodiscovery/helmfile/main.go
  • pkg/plugins/autodiscovery/helmfile/matchingRule.go
  • pkg/plugins/autodiscovery/helmfile/releases.go
  • pkg/plugins/autodiscovery/helmfile/utils.go
  • pkg/plugins/autodiscovery/ko/containers.go
  • pkg/plugins/autodiscovery/ko/main.go
  • pkg/plugins/autodiscovery/ko/matchingRule.go
  • pkg/plugins/autodiscovery/ko/utils.go
  • pkg/plugins/autodiscovery/kubernetes/containers.go
  • pkg/plugins/autodiscovery/kubernetes/kubernetes.go
  • pkg/plugins/autodiscovery/kubernetes/main.go
  • pkg/plugins/autodiscovery/kubernetes/matchingRule.go
  • pkg/plugins/autodiscovery/kubernetes/prow.go
  • pkg/plugins/autodiscovery/kubernetes/utils.go
  • pkg/plugins/autodiscovery/maven/dependency.go
  • pkg/plugins/autodiscovery/maven/dependencyParentPom.go
  • pkg/plugins/autodiscovery/maven/main.go
  • pkg/plugins/autodiscovery/maven/matchingRule.go
  • pkg/plugins/autodiscovery/maven/settings_xml.go
  • pkg/plugins/autodiscovery/maven/utils.go
  • pkg/plugins/autodiscovery/nomad/dockerDriver.go
  • pkg/plugins/autodiscovery/nomad/main.go
  • pkg/plugins/autodiscovery/nomad/matchingRule.go
  • pkg/plugins/autodiscovery/nomad/utils.go
  • pkg/plugins/autodiscovery/npm/dependency.go
  • pkg/plugins/autodiscovery/npm/lockfile.go
  • pkg/plugins/autodiscovery/npm/main.go
  • pkg/plugins/autodiscovery/npm/matchingRule.go
  • pkg/plugins/autodiscovery/npm/utils.go
  • pkg/plugins/autodiscovery/npm/vulnerability_test.go
  • pkg/plugins/autodiscovery/plugin/hostFunction.go
  • pkg/plugins/autodiscovery/plugin/main.go
  • pkg/plugins/autodiscovery/plugin/utils.go
  • pkg/plugins/autodiscovery/precommit/dependency.go
  • pkg/plugins/autodiscovery/precommit/main.go
  • pkg/plugins/autodiscovery/precommit/matchingRule.go
  • pkg/plugins/autodiscovery/precommit/utils.go
  • pkg/plugins/autodiscovery/pyproject/dependencies.go
  • pkg/plugins/autodiscovery/pyproject/main.go
  • pkg/plugins/autodiscovery/pyproject/matchingRule.go
  • pkg/plugins/autodiscovery/pyproject/utils.go
  • pkg/plugins/autodiscovery/terraform/main.go
  • pkg/plugins/autodiscovery/terraform/matching_rule.go
  • pkg/plugins/autodiscovery/terraform/providers.go
  • pkg/plugins/autodiscovery/terraform/utils.go
  • pkg/plugins/autodiscovery/terragrunt/main.go
  • pkg/plugins/autodiscovery/terragrunt/matching_rule.go
  • pkg/plugins/autodiscovery/terragrunt/modules.go
  • pkg/plugins/autodiscovery/terragrunt/utils.go
  • pkg/plugins/autodiscovery/updatecli/main.go
  • pkg/plugins/autodiscovery/updatecli/matchingRule.go
  • pkg/plugins/autodiscovery/updatecli/policies.go
  • pkg/plugins/autodiscovery/updatecli/utils.go
  • pkg/plugins/autodiscovery/woodpecker/main.go
  • pkg/plugins/autodiscovery/woodpecker/matchingRule.go
  • pkg/plugins/autodiscovery/woodpecker/workflow.go
  • pkg/plugins/changelog/github/v3/api.go
  • pkg/plugins/changelog/github/v3/changelog.go
  • pkg/plugins/changelog/markdown/main.go
  • pkg/plugins/resources/awsami/condition.go
  • pkg/plugins/resources/awsami/helpers.go
  • pkg/plugins/resources/awsami/main.go
  • pkg/plugins/resources/awsami/sort.go
  • pkg/plugins/resources/awsami/source.go
  • pkg/plugins/resources/awsami/spec.go
  • pkg/plugins/resources/azuredevops/client/spec.go
  • pkg/plugins/resources/azuredevops/credential/main.go
  • pkg/plugins/resources/azuredevops/pullrequest/clean.go
  • pkg/plugins/resources/azuredevops/pullrequest/create.go
  • pkg/plugins/resources/azuredevops/pullrequest/exist.go
  • pkg/plugins/resources/azuredevops/pullrequest/main.go
  • pkg/plugins/resources/azuredevops/pullrequest/utils.go
  • pkg/plugins/resources/bazelmod/condition.go
  • pkg/plugins/resources/bazelmod/spec.go
  • pkg/plugins/resources/bazelregistry/condition.go
  • pkg/plugins/resources/bazelregistry/main.go
  • pkg/plugins/resources/bazelregistry/spec.go
  • pkg/plugins/resources/bitbucket/client/main.go
  • pkg/plugins/resources/bitbucket/pullrequest/clean.go
  • pkg/plugins/resources/bitbucket/pullrequest/create.go
  • pkg/plugins/resources/bitbucket/pullrequest/exist.go
  • pkg/plugins/resources/bitbucket/pullrequest/utils.go
  • pkg/plugins/resources/cargopackage/condition.go
  • pkg/plugins/resources/cargopackage/main.go
  • pkg/plugins/resources/cargopackage/source.go
  • pkg/plugins/resources/csv/condition.go
  • pkg/plugins/resources/csv/main.go
  • pkg/plugins/resources/csv/source.go
  • pkg/plugins/resources/csv/spec.go
  • pkg/plugins/resources/csv/target.go
  • pkg/plugins/resources/dockerdigest/condition.go
  • pkg/plugins/resources/dockerfile/condition.go
  • pkg/plugins/resources/dockerfile/mobyparser/main.go
  • pkg/plugins/resources/dockerfile/mobyparser/main_test.go
  • pkg/plugins/resources/dockerfile/mobyparser/marshal_test.go
  • pkg/plugins/resources/dockerfile/simpletextparser/main.go
  • pkg/plugins/resources/dockerfile/source.go
  • pkg/plugins/resources/dockerfile/target.go
  • pkg/plugins/resources/dockerimage/changelog.go
  • pkg/plugins/resources/dockerimage/condition.go
  • pkg/plugins/resources/dockerimage/main.go
  • pkg/plugins/resources/dockerimage/source.go
  • pkg/plugins/resources/dockerimage/spec.go
  • pkg/plugins/resources/file/condition.go
  • pkg/plugins/resources/file/main.go
  • pkg/plugins/resources/file/source.go
  • pkg/plugins/resources/file/target.go
  • pkg/plugins/resources/gitbranch/condition.go
  • pkg/plugins/resources/gitbranch/source.go
  • pkg/plugins/resources/gitbranch/target.go
  • pkg/plugins/resources/gitcommit/condition.go
  • pkg/plugins/resources/gitcommit/source.go
  • pkg/plugins/resources/gitea/branch/condition.go
  • pkg/plugins/resources/gitea/branch/main.go
  • pkg/plugins/resources/gitea/branch/source.go
  • pkg/plugins/resources/gitea/client/main.go
  • pkg/plugins/resources/gitea/client/spec.go
  • pkg/plugins/resources/gitea/pullrequest/clean.go
  • pkg/plugins/resources/gitea/pullrequest/create.go
  • pkg/plugins/resources/gitea/pullrequest/exist.go
  • pkg/plugins/resources/gitea/pullrequest/utils.go
  • pkg/plugins/resources/gitea/release/condition.go
  • pkg/plugins/resources/gitea/release/main.go
  • pkg/plugins/resources/gitea/release/target.go
  • pkg/plugins/resources/gitea/tag/condition.go
  • pkg/plugins/resources/gitea/tag/main.go
  • pkg/plugins/resources/gitea/tag/source.go
  • pkg/plugins/resources/githubrelease/changelog.go
  • pkg/plugins/resources/githubrelease/condition.go
  • pkg/plugins/resources/githubrelease/main.go
  • pkg/plugins/resources/githubrelease/source.go
  • pkg/plugins/resources/gitlab/branch/main.go
  • pkg/plugins/resources/gitlab/client/main.go
  • pkg/plugins/resources/gitlab/mergerequest/clean.go
  • pkg/plugins/resources/gitlab/mergerequest/create.go
  • pkg/plugins/resources/gitlab/mergerequest/exist.go
  • pkg/plugins/resources/gitlab/mergerequest/utils.go
  • pkg/plugins/resources/gitlab/release/condition.go
  • pkg/plugins/resources/gitlab/release/main.go
  • pkg/plugins/resources/gitlab/release/target.go
  • pkg/plugins/resources/gitlab/tag/condition.go
  • pkg/plugins/resources/gitlab/tag/main.go
  • pkg/plugins/resources/gittag/condition.go
  • pkg/plugins/resources/gittag/target.go
  • pkg/plugins/resources/gittag/utils.go
  • pkg/plugins/resources/go/gomod/changelog.go
  • pkg/plugins/resources/go/gomod/version.go
  • pkg/plugins/resources/go/language/age.go
  • pkg/plugins/resources/go/language/changelog.go
  • pkg/plugins/resources/go/language/condition.go
  • pkg/plugins/resources/go/language/version.go
  • pkg/plugins/resources/go/module/changelog.go
  • pkg/plugins/resources/go/module/condition.go
  • pkg/plugins/resources/go/module/main.go
  • pkg/plugins/resources/go/module/utils.go
  • pkg/plugins/resources/go/module/version.go
  • pkg/plugins/resources/hcl/main.go
  • pkg/plugins/resources/hcl/spec.go
  • pkg/plugins/resources/hcl/target.go
  • pkg/plugins/resources/helm/changelog.go
  • pkg/plugins/resources/helm/condition.go
  • pkg/plugins/resources/helm/source_oci.go
  • pkg/plugins/resources/helm/target.go
  • pkg/plugins/resources/helm/utils.go
  • pkg/plugins/resources/helm/validate.go
  • pkg/plugins/resources/jenkins/changelog.go
  • pkg/plugins/resources/jenkins/condition.go
  • pkg/plugins/resources/jenkins/main.go
  • pkg/plugins/resources/json/condition.go
  • pkg/plugins/resources/json/main.go
  • pkg/plugins/resources/json/source.go
  • pkg/plugins/resources/json/spec.go
  • pkg/plugins/resources/json/target.go
  • pkg/plugins/resources/maven/condition.go
  • pkg/plugins/resources/maven/main.go
  • pkg/plugins/resources/maven/source.go
  • pkg/plugins/resources/npm/age.go
  • pkg/plugins/resources/npm/changelog.go
  • pkg/plugins/resources/npm/condition.go
  • pkg/plugins/resources/npm/main.go
  • pkg/plugins/resources/pypi/changelog.go
  • pkg/plugins/resources/pypi/condition.go
  • pkg/plugins/resources/pypi/main.go
  • pkg/plugins/resources/shell/changeIf.go
  • pkg/plugins/resources/shell/command.go
  • pkg/plugins/resources/shell/environments.go
  • pkg/plugins/resources/shell/main.go
  • pkg/plugins/resources/shell/success/checksum/main.go
  • pkg/plugins/resources/shell/success/checksum/utils.go
  • pkg/plugins/resources/shell/success/console/main.go
  • pkg/plugins/resources/shell/success/exitcode/main.go
  • pkg/plugins/resources/shell/target.go
  • pkg/plugins/resources/stash/branch/condition.go
  • pkg/plugins/resources/stash/branch/main.go
  • pkg/plugins/resources/stash/client/main.go
  • pkg/plugins/resources/stash/pullrequest/clean.go
  • pkg/plugins/resources/stash/pullrequest/create.go
  • pkg/plugins/resources/stash/pullrequest/exist.go
  • pkg/plugins/resources/stash/pullrequest/utils.go
  • pkg/plugins/resources/stash/release/condition.go
  • pkg/plugins/resources/stash/release/main.go
  • pkg/plugins/resources/stash/release/source.go
  • pkg/plugins/resources/stash/release/target.go
  • pkg/plugins/resources/stash/tag/condition.go
  • pkg/plugins/resources/stash/tag/main.go
  • pkg/plugins/resources/stash/tag/source.go
  • pkg/plugins/resources/systemd/condition.go
  • pkg/plugins/resources/systemd/target.go
  • pkg/plugins/resources/temurin/api.go
  • pkg/plugins/resources/temurin/condition.go
  • pkg/plugins/resources/temurin/source.go
  • pkg/plugins/resources/terraform/lock/main.go
  • pkg/plugins/resources/terraform/lock/spec.go
  • pkg/plugins/resources/terraform/lock/target.go
  • pkg/plugins/resources/terraform/provider/main.go
  • pkg/plugins/resources/terraform/provider/spec.go
  • pkg/plugins/resources/terraform/provider/target.go
  • pkg/plugins/resources/terraform/registry/changelog.go
  • pkg/plugins/resources/terraform/registry/condition.go
  • pkg/plugins/resources/terraform/registry/registry.go
  • pkg/plugins/resources/terraform/registry/spec.go
  • pkg/plugins/resources/terraform/registry/versions.go
  • pkg/plugins/resources/toml/condition.go
  • pkg/plugins/resources/toml/main.go
  • pkg/plugins/resources/toml/source.go
  • pkg/plugins/resources/toml/spec.go
  • pkg/plugins/resources/toml/target.go
  • pkg/plugins/resources/toolversions/spec.go
  • pkg/plugins/resources/updateclihttp/main.go
  • pkg/plugins/resources/updateclihttp/source.go
  • pkg/plugins/resources/vulnerability/osv/changelog.go
  • pkg/plugins/resources/vulnerability/osv/condition.go
  • pkg/plugins/resources/vulnerability/osv/fixedversion.go
  • pkg/plugins/resources/vulnerability/osv/source.go
  • pkg/plugins/resources/vulnerability/osv/vulns.go
  • pkg/plugins/resources/xml/main.go
  • pkg/plugins/resources/yaml/main.go
  • pkg/plugins/resources/yaml/source.go
  • pkg/plugins/resources/yaml/target.go
  • pkg/plugins/resources/yaml/target_goyaml.go
  • pkg/plugins/resources/yaml/target_yamlpath.go
  • pkg/plugins/resources/yaml/utils.go
  • pkg/plugins/scms/azuredevops/main.go
  • pkg/plugins/scms/azuredevopssearch/main.go
  • pkg/plugins/scms/azuredevopssearch/specGenerator.go
  • pkg/plugins/scms/bitbucket/main.go
  • pkg/plugins/scms/bitbucket/scm.go
  • pkg/plugins/scms/bitbucket/util.go
  • pkg/plugins/scms/git/commit/main.go
  • pkg/plugins/scms/git/main.go
  • pkg/plugins/scms/git/scm.go
  • pkg/plugins/scms/gitea/main.go
  • pkg/plugins/scms/gitea/scm.go
  • pkg/plugins/scms/gitea/util.go
  • pkg/plugins/scms/github/branch.go
  • pkg/plugins/scms/github/client/main.go
  • pkg/plugins/scms/github/comment.go
  • pkg/plugins/scms/github/group.go
  • pkg/plugins/scms/github/label.go
  • pkg/plugins/scms/github/main.go
  • pkg/plugins/scms/github/pullrequest.go
  • pkg/plugins/scms/github/pullrequestReviews.go
  • pkg/plugins/scms/github/rateLimit.go
  • pkg/plugins/scms/github/release.go
  • pkg/plugins/scms/github/repository.go
  • pkg/plugins/scms/github/scm.go
  • pkg/plugins/scms/github/tag.go
  • pkg/plugins/scms/github/token/token.go
  • pkg/plugins/scms/github/user.go
  • pkg/plugins/scms/githubsearch/specGenerator.go
  • pkg/plugins/scms/gitlab/main.go
  • pkg/plugins/scms/gitlab/scm.go
  • pkg/plugins/scms/gitlab/util.go
  • pkg/plugins/scms/gitlabsearch/specGenerator.go
  • pkg/plugins/scms/stash/main.go
  • pkg/plugins/scms/stash/scm.go
  • pkg/plugins/scms/stash/util.go
  • pkg/plugins/utils/age/main.go
  • pkg/plugins/utils/cargo/main.go
  • pkg/plugins/utils/dasel/query.go
  • pkg/plugins/utils/dasel/write.go
  • pkg/plugins/utils/filepath.go
  • pkg/plugins/utils/gitgeneric/branch.go
  • pkg/plugins/utils/gitgeneric/commit.go
  • pkg/plugins/utils/gitgeneric/main.go
  • pkg/plugins/utils/gitgeneric/squash.go
  • pkg/plugins/utils/pathresolver/pathresolver.go
  • pkg/plugins/utils/toolversions/write.go
  • pkg/plugins/utils/version/filter.go
  • pkg/plugins/utils/version/pep440.go
  • pkg/plugins/utils/version/semver.go
  • pkg/plugins/utils/version/time.go

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@olblak

olblak commented Oct 17, 2026

Copy link
Copy Markdown
Member Author

@copilot please fix the merge conflicts in this pull request.

olblak added 16 commits October 20, 2026 08:33
Grow pkg/core/log into the logging entry point for Updatecli, still
backed by logrus:

- level functions mirroring the logrus API used across the code base
- Capture(w) copies log lines to w until stopped; captures nest, so a
  pipeline-wide capture can wrap the per-resource ones
- Progress() for transient output that should reach the terminal only
- Title and Section keep the meaning of headers instead of building
  ASCII art at every call site

The global logrus logger now writes through the same output, so
dependencies logging with logrus still land in captures.

Sources, conditions and targets use Capture instead of swapping the
global logrus output and resetting it to a hardcoded os.Stdout.
Output written with fmt.Print or to os.Stdout bypasses the logger, so it
never reaches the console output attached to reports.

- path walking and parsing failures in autodiscovery are now warnings
- action and merge errors are logged as errors
- drop a stray empty line in the dockerimage source and a duplicate
  error message in the npm resource, the error is already returned
- git push progress goes to log.Progress, terminal only

forbidigo now rejects fmt.Print* and os.Stdout/os.Stderr outside cmd/,
the log package and tests. The interactive udash token prompt keeps
writing to the terminal on purpose.
Mechanical swap of every logrus call for the matching pkg/core/log
function, the log package mirrors the logrus API so the console output
is unchanged.

Tests now assert on log.Capture output instead of swapping the logrus
output or installing a logrus test hook.

depguard rejects new logrus imports outside pkg/core/log.
Per-resource console output misses why a pipeline failed: resource
errors, pipeline errors, git push and pull request output are all
logged outside of any source, condition or target.

Report gains a ConsoleOutput field holding the console output of the
whole pipeline:

- the pipeline run, including resource errors and the engine failure
  message
- actions and their cleanup
- git push and working branch cleanup, attributed to every pipeline
  with a target on that repository branch

Push and cleanup errors are now logged where they happen so they end up
in that output. Only the last 1MiB is kept, the end of a log being where
a failure is explained.

The per-branch push and cleanup logic moves into pushSCMBranch and
pruneSCMBranch so the capture can wrap it.
The log package now logs through a log/slog handler writing the same
plain text lines as before, so the console output is unchanged.

Messages are only formatted when their level is enabled.

logrus is still a dependency of helm, sops, testcontainers and others,
so the global logrus logger stays routed through the same output, with
the same format and level. It's the only place importing logrus.
Titles, section headers and log levels are now rendered with lipgloss
on a color terminal: titles in a rounded box, sections with a colored
category and a rule, levels as colored labels. The basic ANSI colors
follow the terminal theme.

Output to a non-terminal, or with NO_COLOR set, stays the exact same
plain text as before, so CI logs don't change.

Captures always get plain text. Previously a run on a color terminal
stored ANSI codes in the console output of reports.

Title and Section are passed to the slog handler as records with a
kind, so the handler decides how to render them. lipgloss replaces the
direct use of fatih/color.
Banners were built by hand at each call site with strings.Repeat and
strings.ToTitle, in five slightly different styles. They now all go
through the log package, from the most to the least prominent:

- Title: major steps, such as "Pipeline" or "Auto Discovery"
- PipelineTitle: the name of the pipeline about to run
- Heading: stages such as "Actions", "Pushing Git changes", "Report",
  "Run Summary", "Version" and every autodiscovery crawler
- Section: sources, conditions and targets
- Subheading: the errors of a pipeline, the changelog in debug mode

Changing the look of the console output now only touches
pkg/core/log/format.go.

The plain text output keeps the same banners, with the whitespace
around headings normalized and the underline matching the heading
length. The summary banner of the report template becomes a heading.
Every source, condition and target with transformers logged a header
and one line per step at info level, on every run, even when the value
didn't change.

The header and the per-step lines move to debug. At info level, a
single line shows the net transformation, and only when the value
changed: it explains why a value differs from its source, so it stays
visible in the terminal and in the console output sent to udash, where
debug is rarely enabled.
A cache hit is an implementation detail: the source result is the same
either way, so the message is only useful when debugging.
When no pipeline defines autodiscovery crawlers, the "Auto Discovery"
title was followed by nothing, which looked like a step that ran and
silently failed. It's now followed by "disabled".
Step titles such as "Pipeline" or "Auto Discovery" appear once per run
but were the most prominent banners, while pipelines, the unit people
scan for, were a small badge.

- step titles become a dim full-width rule on a color terminal, and a
  single "== PIPELINE ==" line in plain text
- the pipeline title opens with a colored bar, its short ID and the dry
  run mode folded into a second line; plain text keeps the box and the
  full ID
- each pipeline closes with its result and duration, colored by result
  on a color terminal, "=> CHANGED (4.2s)" in plain text, so it's clear
  where a pipeline ends; it's part of the pipeline console output too
The pipeline title was still hard to spot: its bar was one character
wide and its bold name weighed the same as the source and target
headers repeated around it.

On a color terminal, a pipeline now opens with a full-width band, the
only line with a background, holding its position in the run, its name,
its short ID and the dry run mode. It closes with a rule spanning the
full width in the color of its result, so a failure leaves a red line
across the screen.

In plain text, the box gains the position, such as "[3/12]".

The engine now opens a pipeline as well as closing it, since it knows
its position.
Actions, Pushing Git changes, Report, Udash, Summary and Version are
steps of a run like Prepare, Auto Discovery or Pipeline, but were shown
as headings. They now use the same title.

Run Summary stays a heading, as part of the Summary step. The summary
template no longer adds blank lines around itself, the banners own the
spacing.
The band shortened the pipeline ID to 8 characters, but --pipeline-ids
only matches complete IDs and a custom pipelineid can be cut in the
middle of a meaningful name. On a color terminal, the full ID wasn't
printed anywhere anymore.

The band becomes a block of colored rows: an empty row, the position,
name and dry run mode, the full pipeline ID, and an empty row. Its
height makes pipelines even easier to spot when scrolling.

On a narrow terminal the "Pipeline ID:" label is dropped so the ID still
fits; the band only grows past the terminal width when the ID alone
doesn't fit. Plain text is unchanged, it already shows the full ID.
Rules under titles, headings and sections were sized by the byte length
of the text in plain output and by rune count in styled output, so they
misaligned for names with accents, emoji or wide characters. Both
renderers now use the displayed width.

Also document that captures are global: a resource capture receives the
lines of the resources running at the same time.

Signed-off-by: Olblak <me@olblak.com>
The HTTP cache keys GET responses by URL only and no write invalidates
them, so an SCM client reading again after creating a pull request,
branch, tag or release in the same run could get the state from before
the write. Gitea, Bitbucket and Stash clients went through that cache.

httpclient gains NewUncachedRetryClient and UncachedTransport, with the
same retry, proxy and tracing as NewRetryClient but never the cache,
and UserAgent to share the updatecli User-Agent. Gitea, Bitbucket,
Stash and GitHub clients now use it. GitHub only sends GraphQL POST
requests, so its behaviour doesn't change.

The GitLab client used its own HTTP client so far. It now uses the
uncached updatecli one, with its own retries disabled to avoid stacking
both, and sends the updatecli User-Agent instead of go-gitlab.

Signed-off-by: Olblak <me@olblak.com>
@olblak
olblak force-pushed the refactor/internal-logging branch from 1921fd7 to 424ad45 Compare October 20, 2026 06:38
@olblak
olblak merged commit 4e87a4a into updatecli:main Oct 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant