-
Notifications
You must be signed in to change notification settings - Fork 9
feat: Add FLAGD_SYNC_PORT support for in-process providers with backwards compatibility #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: Add FLAGD_SYNC_PORT support for in-process providers with backwards compatibility #310
Conversation
…ompatibility Co-authored-by: aepfli <[email protected]>
|
@copilot we do not want to add another property called |
…Port option Co-authored-by: aepfli <[email protected]>
Fixed in commit 0bf3813. The implementation now:
|
|
@copilot please add a test with both environment variables, to ensure that |
Co-authored-by: aepfli <[email protected]>
Added in commit be7a318. The new scenario sets both |
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces support for the FLAGD_SYNC_PORT environment variable for in-process providers, ensuring backward compatibility with FLAGD_PORT. The changes include updating the configuration documentation and adding a comprehensive set of Gherkin test scenarios to cover the new functionality, backward compatibility, environment variable overrides, and precedence rules. The changes are well-structured and the new tests are thorough. I have one suggestion to improve the readability of the updated documentation table.
Flagd uses
FLAGD_SYNC_PORTfor in-process sync service port, but the testbed only documented and testedFLAGD_PORT. This creates configuration inconsistency between flagd and provider tests.Changes
Configuration table: Updated
portoption documentation to clarify that it usesFLAGD_PORT(for rpc) andFLAGD_SYNC_PORT(for in-process, withFLAGD_PORTas fallback)New test scenarios: Added
FLAGD_SYNC_PORTtests for the existingportoption across configuration types:FLAGD_SYNC_PORTFLAGD_SYNC_PORTtakes precedence overFLAGD_PORTwhen both are setBackwards compatibility: Added
@legacy-sync-porttagged scenarios testingFLAGD_PORTfor in-process providers, enabling future deprecationAll new scenarios use the existing
portoption and are tagged@in-processfor proper test filtering.Example
Fixes #266
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.