Page MenuHomePhabricator

Research Project Idea: Use AI to suggest improvements to patches uploaded to gerrit
Open, LowestPublic100 Story Points

Description

In T194934, we had a great overview on the definition of technical depth. Among many other aspects, we discussed to reduce unintentional technical risks by better on-boarding for greenhorns. I think this could be supplemented by AI that spots weak points and bugs in the code. We have a lot of training data and with ORES a lot of expertise in this field. Especially volunteers and employees who are new to the language or API make mistakes that should be easy to spot with AI methods.
For instance, in like this

-	$host = array_rand( $this->hosts );
+	$host = $this->hosts[array_rand( $this->hosts )];

the unawareness of the details of the PHP function array_rand might be a typical example of code developed by volunteers that do not use that particular language on daily basis and this should be easy to learn.

Related Objects

Event Timeline

Physikerwelt triaged this task as Lowest priority.May 21 2018, 7:50 AM
Physikerwelt created this task.
Restricted Application added a project: Scoring-platform-team. · View Herald TranscriptMay 21 2018, 7:50 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
demon moved this task from Bugs & stuff to Local hacks on the Gerrit board.Jun 9 2018, 12:55 AM
Vvjjkkii renamed this task from Research Project Idea: Use AI to suggest improvements to patches uploaded to gerrit to 4jcaaaaaaa.Jul 1 2018, 1:08 AM
Vvjjkkii raised the priority of this task from Lowest to High.
Vvjjkkii removed the point value for this task.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from 4jcaaaaaaa to Research Project Idea: Use AI to suggest improvements to patches uploaded to gerrit.Jul 2 2018, 7:52 AM
CommunityTechBot lowered the priority of this task from High to Lowest.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot set the point value for this task to 100.
CommunityTechBot added a subscriber: Aklapper.

You can use this api https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#apply-fix i think (I'm not sure where the rest api is to suggest changes though)

Restricted Application changed the subtype of this task from "Deadline" to "Task". · View Herald TranscriptOct 26 2018, 11:30 AM
Harej moved this task from Ideas to Epic on the Scoring-platform-team board.Apr 3 2019, 4:52 AM