Yes reducing singletons can allow us add more ut rather than it. But
IT is still needed.
As how to reducing singletons, @Yuan Tian any idea?


-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University


Christofer Dutz via dev <[email protected]> 于2026年11月26日周四 17:49写道:
>
> Hi Xiangdong,
>
> I fully agree ... in other projects PRs by drive-by committers are quite a 
> problem.
> However, AI can be very helpful ... especially if someone has knowledge in a 
> certain
> domain but is lacking the full skill set needed for a contribution.
>
> Like in PLC4X we see several people who have issues with English ... so they 
> are using
> AI to write their communication on the list or PRs. Even if these tend to be 
> longer than
> human texts, they usually are better written.
>
> Others have knowledge in industrial automation protocols but lack skills in 
> Java.
> There I also think contributions are valuable.
>
> Coming back to IoTDB ...
>
> Admittedly I'm using a lot of AI myself to my stuff I'm doing outside of the 
> ASF.
> Here I have given up on reviewing every line of code, but setup a huge wall 
> of tests
> and automatically checked constraints and rules.
>
> Admittedly my implementation of the postgres wire format I not yet could put 
> up
> a large set of tests, but I think there are differences between new things or 
> fixing
> existing ones.
>
> I know our test-suite here in IoTDB is already huge ... putting up more and 
> more
> tests is probably not a path forward as thanks to the excessive use of 
> singletons
> most need to be tested in fat integration tests and can't be handled with 
> quick
> unit-tests.
>
> Possibly working on refactoring the core to use dependency injection instead 
> of
> singletons would allow us to really increase the number of unit-tests and 
> reduce
> the integration tests. That would help find issues with AI contributions a 
> lot quicker?
>
> Chris
>
>
>
> Xiangdong Huang <[email protected]> schrieb am Donnerstag, 26. November 2026 
> um 10:06:
>
> > Hi all,
> >
> > I'd like to know if there is any code of conduct about how to using ai
> > coding to submit pr for iotdb (and tsfile)?
> >
> > IMO, I fully support using AI coding to develop codes and submitting
> > PRs. However, to prevent PRs produced without a  proper understanding
> > of IoTDB’s operating mechanisms, and to allow our reviewers to focus
> > their efforts on reviewing AI  coding PRs that meet the required code
> > quality standards, I think we should ideally have a complete set of
> > constraints  in place. What minimum level of code quality and
> > effectiveness should a submitted PR meet? Then we can bring in human
> > reviewers for the code review.
> >
> > "code quality" here is not for code smell or others, it means whether
> > the implementation is complete, product-level, and
> > performance-lossless.
> > (AGENTS.md and CONTRIBUTING.md have some instruments but they are not 
> > enough)
> >
> > Best,
> > -----------------------------------
> > Xiangdong Huang
> > School of Software, Tsinghua University
> >

Reply via email to