Skip to content

Conversation

@thisal2006
Copy link

This PR introduces several fixes and enhancements to improve code quality, test reliability, and documentation in Nacos. I focused on resolving errors and inconsistencies I encountered while exploring the codebase. All changes have been tested locally where applicable.
Key Changes:

Documentation:
Updated CODE_OF_CONDUCT.md to fix typos and clarify guidelines for better community engagement.

Address Module:
Fixed errors in AddressServerClusterControllerTest.java (e.g., improved test assertions and handled edge cases).

Config Module:
Corrected issues in EmbeddedConfigDumpApplyHook.java (e.g., refined dump logic to prevent potential data loss).

Istio Module:
Updated dependencies in istio/pom.xml.
Fixed model-related errors in IstioEndpoint.java (e.g., aligned with latest Istio specs).

Naming Module:
Updated dependencies in naming/pom.xml.
Resolved utility function errors in DistroUtils.java (e.g., improved distribution handling for better performance).

Auth Plugin:
Updated dependencies in nacos-default-auth-plugin/pom.xml.
Fixed authentication logic in LdapAuthenticationProvider.java (e.g., enhanced LDAP connection stability).
Improved test coverage and fixed failures in:
SafeBcryptPasswordEncoderTest.java
LdapAuthenticationProviderTest.java
PasswordEncoderUtilTest.java

Root Project:
Updated top-level dependencies in pom.xml to resolve version conflicts and security vulnerabilities.

Additional Files:
Added deps.txt as a reference for dependency notes (optional; can be removed if not needed).

Motivation:
These fixes address common errors like compilation issues, test flakiness, and outdated docs that I ran into while setting up and running Nacos locally. They should make the project more robust for new contributors.
Testing:

Built and ran the project with Maven: mvn clean install.
Verified tests pass in affected modules (e.g., mvn test -pl address,config,naming,plugin-default-impl).
No new dependencies introduced beyond updates.

Related Issues:

Fixes # [add issue numbers here if applicable, e.g., #1234 for a specific bug]

Please review and let me know if any adjustments are needed. Happy to iterate!

@CLAassistant
Copy link

CLAassistant commented Jan 21, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

Thanks for your this PR. 🙏
Please check again for your PR changes whether contains any usage/api/configuration change such as Add new API , Add new configuration, Change default value of configuration.
If so, please add or update documents(markdown type) in docs/next/ for repository nacos-group/nacos-group.github.io


感谢您提交的PR。 🙏
请再次查看您的PR内容,确认是否包含任何使用方式/API/配置参数的变更,如:新增API新增配置参数修改默认配置等操作。
如果是,请确保在提交之前,在仓库nacos-group/nacos-group.github.io中的docs/next/目录下添加或更新文档(markdown格式)。

@KomachiSion
Copy link
Collaborator

Please create issues for each changes. Don't merge in one PR.

@KomachiSion KomachiSion added the pending On hold due to dependency or release label Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending On hold due to dependency or release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants