Skip to content

Commit

Permalink
Add docs about using pre-built image + remove duplicated method (All-…
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-mic-lin authored Oct 13, 2024
1 parent 2692c0c commit 87021bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ Please refer to [this README](./tests/integration/README.md) for details.
1. Add your dependency in `pyproject.toml` or use `poetry add xxx`
2. Update the poetry.lock file via `poetry lock --no-update`
### 9. Use existing Docker image
To reduce build time (e.g., if no changes were made to the client-runtime component), you can use an existing Docker container image. Follow these steps:
1. Set the SANDBOX_RUNTIME_CONTAINER_IMAGE environment variable to the desired Docker image.
2. Example: export SANDBOX_RUNTIME_CONTAINER_IMAGE=ghcr.io/all-hands-ai/runtime:0.9-nikolaik
## Develop inside Docker container
TL;DR
Expand Down
6 changes: 0 additions & 6 deletions tests/unit/test_agent_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ def _calculate_window_bounds(current_line, total_lines, window_size):
return start, end


def _generate_ruby_test_file_with_lines(temp_path, num_lines) -> str:
file_path = temp_path / 'test_file.rb'
file_path.write_text('\n' * num_lines)
return file_path


def _capture_file_operation_error(operation, expected_error_msg):
with io.StringIO() as buf:
with contextlib.redirect_stdout(buf):
Expand Down

0 comments on commit 87021bd

Please sign in to comment.