Deprecated: Function libxml_disable_entity_loader() is deprecated since 8.0, as external entity loading is disabled by default in /application/src/init.php on line 167

Deprecated: Return type of Qrequest::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 22

Deprecated: Return type of & Qrequest::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 25

Deprecated: Return type of Qrequest::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 31

Deprecated: Return type of Qrequest::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 35

Deprecated: Return type of Qrequest::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 38

Deprecated: Return type of Qrequest::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 88

Deprecated: Return type of Qrequest::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/qrequest.php on line 91

Deprecated: Creation of dynamic property Qrequest::$cap is deprecated in /application/lib/qrequest.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /application/src/init.php:167) in /application/src/initweb.php on line 45

Warning: session_name(): Session name cannot be changed after headers have already been sent in /application/lib/redirect.php on line 46

Warning: session_cache_limiter(): Session cache limiter cannot be changed after headers have already been sent in /application/lib/redirect.php on line 47

Warning: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent in /application/lib/redirect.php on line 60

Warning: session_start(): Session cannot be started after headers have already been sent in /application/lib/redirect.php on line 75

Deprecated: Creation of dynamic property Qrequest::$p is deprecated in /application/lib/qrequest.php on line 42

Deprecated: Creation of dynamic property Qrequest::$paperId is deprecated in /application/lib/qrequest.php on line 42

Deprecated: Return type of PaperInfoSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/src/paperinfo.php on line 225

Deprecated: Creation of dynamic property PaperInfo::$timeFinalSubmitted is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$timeModified is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$sha1 is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$blind is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$leadContactId is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$shepherdContactId is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$capVersion is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$size is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$mimetype is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$timestamp is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$pdfFormatStatus is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$withdrawReason is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$conflictType is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$myReviewPermissions is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$topicIds is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$optionIds is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$paperTags is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$leadContactId is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$conflictType is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$paperTags is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property PaperInfo::$myReviewPermissions is deprecated in /application/src/paperinfo.php on line 303

Deprecated: Creation of dynamic property CommentInfo::$reviewFirstName is deprecated in /application/src/commentinfo.php on line 59

Deprecated: Creation of dynamic property CommentInfo::$reviewLastName is deprecated in /application/src/commentinfo.php on line 59

Deprecated: Creation of dynamic property CommentInfo::$reviewEmail is deprecated in /application/src/commentinfo.php on line 59
#26 - Netdev 0x18

Deprecated: Return type of TagAnno::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/tagger.php on line 130

Deprecated: Return type of TagMap::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/lib/tagger.php on line 299
More

PC conflicts

Jakob Keller

Jesse Brandeburg

Johannes Berg

Submitted


Deprecated: Return type of DocumentInfo::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/src/documentinfo.php on line 951

[PDF] Submission 30 Apr 2024 6:56:56pm UTC · caa037de2df8168a0b08222ea6afa91c179284bed32d86661e4a70b45b75a7d5caa037de

Problem Statement

Open-source projects heavily rely on community contributions, but the sheer volume of the patches often overwhelms even the most dedicated reviewers. These reviewers invest considerable time in meticulously reviewing each patch, ensuring adherence to guidelines, code quality, and semantic correctness. However, contributors frequently overlook established guidelines and conventions (such as whitespace issues, comment format irregularities, use of imperative mood, commit message inconsistencies, reverse Christmas tree patterns (RCT), etc.). This can shift the reviewers' focus away from more significant code aspects and from providing deeper code reviews. Furthermore, reviewers find themselves repeatedly addressing these issues, which can slow down the overall review process. While legacy automation tools (checkpatch, et all) are used to enforce certain rules, they lack the flexibility to adapt to new practices or understand the context. These tools typically concentrate on syntactic correctness but fall short when it comes to semantic subtleties and are unable to provide meaningful feedback, leaving this task to manual reviewers.

Proposed Solution

To address this challenge, we propose leveraging the advancement in generative Artificial Intelligence and Large Language Models (LLM) to provide an AI-based patch review. The solution will ingest patch emails, then submit the raw email as context attached to the review request prompt. The LLM returned review is generated as an email reply. This prompt instructs the model about commit message rules and netdev mailing list best practices. Initially, the model can scan and comment on commit messages from mailing list patch postings. Furthermore, we envision expanding this approach to review entire patches, including commit messages and code, in search of standard rule violations and obvious mistakes.

Solution Benefits

The following are a few examples of the benefits this solution brings to the review process: • Efficiency: Leveraging AI-based patch reviews reduces the burden on manual reviewers, allowing them to focus on more critical aspects of code. • Adaptability: Unlike legacy automation tools, our solution can adapt to new practices and understand context, providing meaningful feedback. • Semantic Understanding: Large Language Models (LLMs) can identify semantic subtleties beyond syntactic correctness. • Faster Review Process: By addressing common issues automatically, we accelerate the overall review process. • Scalability: The approach can be expanded to review entire patches (especially large ones), including commit messages and code. • Consistency: AI-based reviews maintain consistency in enforcing guidelines and conventions.

Potential Future Work

It is essential to emphasize that while this approach will not replace human reviews, it will significantly reduce the time spent by human reviewers on mundane comments. Looking ahead, integrating this AI-based review process into the zero-day bot, or enabling direct replies on the mailing list (with maintainers’ permission) could enhance its effectiveness. The AI assistant will (currently) not be adding Acked-by or other tags, but it is interesting to discuss what would be the prerequisites and method of doing so (example: Bot-reviewed: AI Assistant Formatting Bot <ai.bot@company.com>)

Examples

The paper will show example patches with problems that were found on the mailing list and compare our assistant’s output with the reviewer’s comments.

Plans

Gather netdev mailing list postings on patches from one kernel - Use a “net-next” kernel-cycle (v6.7..v6.8) of postings from the close of a merge window (rc1 release) to the “net-next is closed” announcement (when the merge window on the next kernel opens.) Compare AI-assistant output to real comments from reviewers - Use lore.kernel.org/netdev git repositories to scan real traffic - Use a sampling strategy to examine the assistant generated output compared to human reviewers

J. Brandeburg, K. Ayari [details]

Jesse Brandeburg (Intel) <jesse.brandeburg@intel.com>

Kamel Ayari (Intel) <kamel.ayari@intel.com>


Deprecated: Return type of ReviewField::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/src/review.php on line 161

Deprecated: Return type of ReviewForm::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /application/src/review.php on line 512
Submission Type
Talk
Submission Label
Moonshot
Estimated Length Of Time For Presentation (in minutes)
30
Attendance
Physically

To edit this submission, sign in using your email and password.