fix: clean bulk_publish flags when deploy complete - #272
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the fab fs deploy bulk publish feature-flag lifecycle by ensuring fabric-cicd bulk publish flags are removed after a deployment run, and updates tests/deps to support that behavior.
Changes:
- Added
_remove_bulk_publish_feature_flags()and invoked it in afinallyblock when--bulk_publishis enabled. - Expanded unit tests to assert both flag append and removal behavior.
- Bumped
fabric-cicddev dependency to>=1.3.0to pick upremove_feature_flag.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/fabric_cli/commands/fs/deploy/fab_fs_deploy_config_file.py | Imports remove_feature_flag, tracks bulk_publish usage, and cleans up bulk-publish flags after deploy completes. |
| tests/test_utils/test_fab_deploy_bulk_publish.py | Updates test helper to mock/remove feature flags and adds assertions around cleanup behavior. |
| requirements-dev.txt | Updates fabric-cicd minimum dev version to support the new API. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Alon Yeshurun (ayeshurun)
previously approved these changes
Aug 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/fabric_cli/commands/fs/deploy/fab_fs_deploy_config_file.py:69
- The broad
except Exceptionwill also catch and rewrapFabricCLIError, which can change the original CLI error code/message and make upstream handling inconsistent with other commands (which generally re-raiseFabricCLIErrorunchanged). Consider re-raisingFabricCLIErrorand only wrapping unexpected exceptions (optionally chaining withfrom e).
except Exception as e:
raise FabricCLIError(
f"Deployment failed: {str(e)}", fab_constant.ERROR_IN_DEPLOYMENT
)
Ali Abu-Foul (aliabufoul)
previously approved these changes
Aug 16, 2026
Ali Abu-Foul (aliabufoul)
approved these changes
Aug 16, 2026
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.
This pull request improves the handling of the
--bulk_publishfeature flag during deployments and enhances test coverage to ensure correct behavior. The main changes include updating dependencies, ensuring feature flags are cleaned up after deployment, and adding tests to verify both the addition and removal of feature flags.Bulk publish feature flag management:
--bulk_publishis used, the corresponding feature flags (enable_experimental_featuresandenable_bulk_publish) are removed from global state after deployment by introducing the_remove_bulk_publish_feature_flagsfunction and calling it in afinallyblock indeploy_with_config_file. [1] [2]fabric_cicdto includeremove_feature_flag.Testing improvements:
test_fab_deploy_bulk_publish.pyto verify that feature flags are correctly appended and removed when--bulk_publishis set, and that no removal occurs when it is not set. [1] [2]Dependency updates:
fabric-cicddependency to version>=1.3.0inrequirements-dev.txt.