chore: polish up state management#327
Open
brunodam wants to merge 5 commits intobll-state-managementfrom
Open
Conversation
Signed-off-by: Bruno De Assis Marques <bruno.marques@swirldslabs.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request enhances backward compatibility for configuration files and fixes a Helm integration issue with Kubernetes field manager name length constraints. It also corrects a minor test setup bug.
Changes:
- Implements automatic migration of deprecated config fields (
release,chart) to new names (releaseName,chartRepo) with deprecation warnings - Adds field manager name truncation logic to prevent Kubernetes API rejections when running tests or in certain IDEs
- Fixes incorrect parameter type in test setup by dereferencing the pointer
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/config/migration.go | Adds backward compatibility logic for migrating deprecated config field names with deprecation warnings |
| internal/config/config.go | Integrates migration logic into the configuration initialization process |
| internal/config/config_test.go | Adds comprehensive tests for config migration including old fields, new fields, and precedence |
| pkg/helm/helpers.go | Implements field manager name truncation to comply with Kubernetes 128-byte limit |
| pkg/helm/helpers_test.go | Adds tests for field manager truncation logic |
| internal/workflows/steps/step_setup_directories_test.go | Fixes test by correctly dereferencing WeaverPaths pointer |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Bruno De Assis Marques <bruno.marques@swirldslabs.com>
3cf0534 to
136c77e
Compare
leninmehedy
approved these changes
Jan 21, 2026
leninmehedy
approved these changes
Jan 21, 2026
Signed-off-by: Bruno De Assis Marques <bruno.marques@swirldslabs.com>
e0b4be0 to
4a3e989
Compare
Signed-off-by: Bruno De Assis Marques <bruno.marques@swirldslabs.com>
4a3e989 to
5b52168
Compare
Signed-off-by: Bruno De Assis Marques <bruno.marques@swirldslabs.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces two main improvements: enhanced backward compatibility for configuration files and a fix for Helm integration with Kubernetes regarding field manager name length. It also adds comprehensive tests to ensure these changes work as intended.
Configuration Backward Compatibility:
release,chart) to their new names (releaseName,chartRepo) for backward compatibility, along with deprecation warnings. (internal/config/config.go[1]internal/config/migration.go[2]internal/config/config_test.gointernal/config/config_test.goR58-R176)Helm Field Manager Name Fix:
pkg/helm/helpers.go[1] [2]pkg/helm/helpers_test.gopkg/helm/helpers_test.goR1-R83)Minor Fixes:
SetupHomeDirectoryStructure. (internal/workflows/steps/step_setup_directories_test.gointernal/workflows/steps/step_setup_directories_test.goL20-R20)Related Issues