Skip to content
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

Can Agentless Execute the generated code? #19

Open
MuhammadIkrmaSharaf opened this issue Jul 31, 2024 · 2 comments
Open

Can Agentless Execute the generated code? #19

MuhammadIkrmaSharaf opened this issue Jul 31, 2024 · 2 comments
Labels
question Further information is requested

Comments

@MuhammadIkrmaSharaf
Copy link

I would like to know:

  1. If, once a fault is localized and the agent enters the repair phase and generates code patches, it can execute the code?
  2. Additionally, if multiple patches are created, what mechanism is used to select the best patch, and on what basis are these patches distinguished?
  3. Finally, does it commit the code changes to the files?
@brutalsavage
Copy link
Contributor

Sorry for the delayed reply,

If, once a fault is localized and the agent enters the repair phase and generates code patches, it can execute the code?

Currently we do not have any implemention that directly execute any arbitary code (We do run previous regression tests as a filtering steps)

Additionally, if multiple patches are created, what mechanism is used to select the best patch, and on what basis are these patches distinguished?

We do generate multiple patches per bug (this is something that be configured). For the selection mechanism we first filter out any patches that do not pass the previous regression tests, apply normalization, and then perform majority voting to select the final patch. Please see the paper for more detailed description.

Finally, does it commit the code changes to the files?

Currently, all patches we generate are in the git diff format. Therefore, one can simply run git apply directly on our generated patch to apply and then commit the code changes.

@brutalsavage brutalsavage added the question Further information is requested label Aug 10, 2024
@flyingdutchpig
Copy link

Sorry for the delayed reply,

If, once a fault is localized and the agent enters the repair phase and generates code patches, it can execute the code?

Currently we do not have any implemention that directly execute any arbitary code (We do run previous regression tests as a filtering steps)

Additionally, if multiple patches are created, what mechanism is used to select the best patch, and on what basis are these patches distinguished?

We do generate multiple patches per bug (this is something that be configured). For the selection mechanism we first filter out any patches that do not pass the previous regression tests, apply normalization, and then perform majority voting to select the final patch. Please see the paper for more detailed description.

Finally, does it commit the code changes to the files?

Currently, all patches we generate are in the git diff format. Therefore, one can simply run git apply directly on our generated patch to apply and then commit the code changes.

I could not find the code doing "regression test", could you please point out its location? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants