SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.10133 · 2024

You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projects

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 8 functions out of this paper's own repositories and ran 0 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
sola-st/executionagent canonical 0 of 8
FunctionStatusWhere it lives
apply_commit_override Not yet run sola-st/executionagent/launcher.py
pointer only (licence: NOASSERTION) · get_code("1e62e7b69944773b")
clone_error_hint Not yet run sola-st/executionagent/src/execution_agent/context.py
pointer only (licence: NOASSERTION) · get_code("0cd36acea4a05704")
clone_error_is_transient Not yet run sola-st/executionagent/src/execution_agent/context.py
pointer only (licence: NOASSERTION) · get_code("150e6d77b2592c47")
create_metadata_file Not yet run sola-st/executionagent/launcher.py
pointer only (licence: NOASSERTION) · get_code("b4a1dfe68371e39b")
create_state_persistence Not yet run sola-st/executionagent/src/execution_agent/state_persistence.py
pointer only (licence: NOASSERTION) · get_code("2122d38c03f62471")
is_repetition Not yet run sola-st/executionagent/src/execution_agent/repetition.py
pointer only (licence: NOASSERTION) · get_code("38f8fac266c95caa")
load_projects_file Not yet run sola-st/executionagent/launcher.py
pointer only (licence: NOASSERTION) · get_code("5729d7074559b944")
timed_tool Not yet run sola-st/executionagent/src/execution_agent/shared_utils.py
pointer only (licence: NOASSERTION) · get_code("b29b9f236065d141")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The ability to execute the test suite of a project is essential in many scenarios, e.g., to assess code quality and code coverage, to validate code changes made by developers or automated tools, and to ensure compatibility with dependencies. Despite its importance, executing the test suite of a project can be challenging in practice because different projects use different programming languages, software ecosystems, build systems, testing frameworks, and other tools. These challenges make it difficult to create a reliable, universal test execution method that works across different projects. This paper presents ExecutionAgent, an automated technique that prepares scripts for building an arbitrary project from source code and running its test cases. Inspired by the way a human developer would address this task, our approach is a large language model (LLM)-based agent that autonomously executes commands and interacts with the host system. The agent uses meta-prompting to gather guidelines on the latest technologies related to the given project, and it iteratively refines its process based on feedback from the previous steps. Our evaluation applies ExecutionAgent to 50 open-source projects that use 14 different programming languages and many different build and testing tools. The approach successfully executes the test suites of 33/50 projects, while matching the test results of ground truth test suite executions with a deviation of only 7.5%. These results improve over the best previously available technique by 6.6x. The costs imposed by the approach are reasonable, with an execution time of 74 minutes and LLM costs of USD 0.16, on average per project. We envision ExecutionAgent to serve as a valuable tool for developers, automated programming tools, and researchers that need to execute tests across a wide variety of projects.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2412.10133")
get_code_for_paper("2412.10133")
have("2412.10133")

Connect an agent — have() is free.