Conversation
✅ Deploy Preview for devspace-docs canceled.
|
318a35a to
94b7c2d
Compare
Signed-off-by: Ryan Swanson <ryan.swanson@loft.sh> # Conflicts: # go.mod # go.sum # vendor/github.com/otiai10/copy/README.md # vendor/github.com/otiai10/copy/copy.go # vendor/github.com/otiai10/copy/copy_namedpipes.go # vendor/github.com/otiai10/copy/copy_namedpipes_x.go # vendor/github.com/otiai10/copy/fileinfo_go1.15.go # vendor/github.com/otiai10/copy/options.go # vendor/github.com/otiai10/copy/permission_control.go # vendor/github.com/otiai10/copy/preserve_ltimes.go # vendor/github.com/otiai10/copy/preserve_ltimes_x.go # vendor/github.com/otiai10/copy/preserve_owner.go # vendor/github.com/otiai10/copy/preserve_owner_x.go # vendor/github.com/otiai10/copy/stat_times.go # vendor/github.com/otiai10/copy/stat_times_darwin.go # vendor/github.com/otiai10/copy/stat_times_freebsd.go # vendor/github.com/otiai10/copy/stat_times_js.go # vendor/github.com/otiai10/copy/stat_times_windows.go # vendor/github.com/otiai10/copy/stat_times_x.go # vendor/github.com/otiai10/copy/test_setup.go # vendor/github.com/otiai10/copy/test_setup_x.go # vendor/modules.txt
Signed-off-by: Ryan Swanson <ryan.swanson@loft.sh>
Signed-off-by: Ryan Swanson <ryan.swanson@loft.sh>
|
From claude: Adversarial Review — PR #3121: Update loft utils for helm v4 TL;DR The core dependency migration and interface refactor are structurally sound. There is one blocker (debug statement in tests), several meaningful correctness and quality gaps in the new logr adapter, and a large [BLOCKER] Debug emoji print left in test pkg/devspace/pipeline/engine/engine_test.go:137: [HIGH] LogrSink.Info formats structured key-value pairs as a raw slice pkg/util/log/logr_adapter.go:23-26: [HIGH] StartWait/StopWait are silently dropped — download progress is invisible pkg/util/log/stream_logger.go:470-475: [MEDIUM] WithValues silently drops structured context with no warning pkg/util/log/logr_adapter.go:39-42: [MEDIUM] Trailing-whitespace noise across hundreds of lines The diff replaces blank lines (\n) with lines containing only a tab (\t\n) in cmd/init.go, cmd/run.go, e2e/tests/render/render.go, pkg/devspace/helm/v4/client.go, pkg/devspace/deploy/deployer/kubectl/kubectl.go, and This is an editor artifact and not idiomatic Go. gofmt does not produce trailing whitespace. It makes the real changes much harder to spot in review and will trigger complaints from linters or pre-commit hooks. [MEDIUM] Duplicate Helm removal in CI .github/workflows/unit-tests.yaml now has two separate Helm-removal mechanisms for the same matrix OS:
The remove-system-helm.sh script (which correctly iterates all helm binaries in PATH) supersedes the inline step. The inline step should be removed — it's redundant and rm -rf on $(which helm) is a blunt instrument [LOW] hack/build-all.bash still hardcodes darwin-amd64 curl -s https://get.helm.sh/helm-v4.0.4-darwin-amd64.tar.gz > helm4.tar.gz This is an editor artifact and not idiomatic Go. gofmt does not produce trailing whitespace. It makes the real changes much harder to spot in review and will trigger complaints from linters or pre-commit hooks. This is an editor artifact and not idiomatic Go. gofmt does not produce trailing whitespace. It makes the real changes much harder to spot in review and will trigger complaints from linters or pre-commit hooks. [MEDIUM] Duplicate Helm removal in CI .github/workflows/unit-tests.yaml now has two separate Helm-removal mechanisms for the same matrix OS:
The remove-system-helm.sh script (which correctly iterates all helm binaries in PATH) supersedes the inline step. The inline step should be removed — it's redundant and rm -rf on $(which helm) is a blunt instrument [LOW] hack/build-all.bash still hardcodes darwin-amd64 curl -s https://get.helm.sh/helm-v4.0.4-darwin-amd64.tar.gz > helm4.tar.gz [LOW] LogrSink.Enabled always returns true — bypasses level-gating func (l *LogrSink) Enabled(level int) bool { [LOW] loft-util module status needs verification The PR deletes vendor/github.com/loft-sh/loft-util/LICENSE and vendor/github.com/loft-sh/loft-util/pkg/command/command.go but the current go.mod on main still lists github.com/loft-sh/loft-util v0.0.9-alpha as a |
… interface - add a local helm v4 downloader command outside vendor - restore repo builds with the current vendored utils state - improve logr adapter formatting and StartWait fallback - clean up helm test/build wiring and stale loft-util references Signed-off-by: Ryan Swanson <ryan.swanson@loft.sh>
- avoid double-closing copied Helm binaries - return non-missing Helm validation errors - document StopWait fallback behavior - derive build Helm version from helm_v4.go - remove whitespace-only diff noise Signed-off-by: Ryan Swanson <ryan.swanson@loft.sh>
What issue type does this pull request address? (keep at least one, remove the others)
/kind enhancement
What does this pull request do? Which issues does it resolve? (use
resolves #<issue_number>if possible)resolves #DSP-156
Please provide a short message that should be published in the DevSpace release notes
Updates the
loft-sh/utilsdependency to be able to use Helm v4 and updates some logging code so it will build.What else do we need to know?