Commit Graph
79 Commits
Author SHA1 Message Date
Michael Panchenko 7445bbcc42 Revert GH changes, don't run snapshot tests on Windows 2025-06-04 21:23:21 +02:00
Michael Panchenko dfe3633a42 Adjusted agent tests to new return of symbol tools 2025-06-04 21:03:20 +02:00
Michael Panchenko 3ee5f8e900 Minor prompting, renaming and memory file handling
- Moved symbol-reading related prompt to system prompt (from planning) since it's always need
- Use relative_path as kwarg in all tools (models get confused by different kwarg names)
- Identify and list memories without .md extension appearing
2025-06-03 12:23:35 +02:00
Michael Panchenko 795ffda435 Update snapshot (whitespace issues) 2025-06-02 22:01:23 +02:00
Michael Panchenko 950caaf91c Add and use use_same_indentation flag to body-replacement 2025-06-01 23:26:11 +02:00
Michael Panchenko e8d5cefe9d Adjusted test 2025-05-31 14:12:38 +02:00
Michael Panchenko fe6a7d04f4 Major: replace location-based symbol referencing by name_path based
Also:
1. find_references now cannot return bodies, instead content around the reference is included
2. find_reference_snippets tool removed since it's no longer necessary
2025-05-31 14:03:45 +02:00
Michael Panchenko 873c5bda3c Merge branch 'main' into better-symbolic-editing 2025-05-31 12:37:44 +02:00
Michael Panchenko 5fee09a35f Respect all gitignores when parsing project for finding language 2025-05-30 20:30:16 +02:00
Michael Panchenko bf557aeb9a Merge branch 'main' into better-symbolic-editing 2025-05-30 18:19:22 +02:00
Michael Panchenko 45b5963a27 Merge branch 'better-symbolic-editing' of github.com:oraios/serena into better-symbolic-editing 2025-05-30 16:56:06 +02:00
Michael Panchenko 9bb8c798e8 Added pytest markers to editing tests 2025-05-30 16:55:55 +02:00
Dominik Jain 04fa309170 Add type hints 2025-05-30 01:36:17 +02:00
Michael Panchenko e038cfa188 Snapshot tests for editing, WIP
Need to look over the snapshot results to see whether they're what we expect. Also, for some reason tests are failing...
2025-05-30 00:58:02 +02:00
Michael Panchenko 454c07eb5e Force added project.yml in test
Seems like we have concurrency issues in tests, adding this solves this
2025-05-29 23:50:10 +02:00
Dominik Jain e9d10fde19 Remove dry_run and overloads from remaining editing methods
Add corresponding test classes and test cases (not yet working)
2025-05-29 19:11:43 +02:00
Dominik Jain bed72f417a Add test case abstraction for editing tests
Add implementation for "delete symbol", removing unnecessary dry-run
flag and overloads from the implementation
2025-05-29 18:15:07 +02:00
Michael Panchenko bd0923a2d3 Refactoring: move out editing methods from LS to TextUtils
Now these methods can be used in dry-run mode, assuring there is no logic duplication
2025-05-29 13:37:10 +02:00
Michael Panchenko 9d493d8aab Added base class for SerenaConfig, use in-memory config for tests
Also:
1. now the normal config will always save to disk (no longer handled by a flag in the methods)
2. the commented yaml is always loaded in the beginning (instead of loading every time on save). Has the upside of simpler code and less i/o, inisignificant "downside" of comments permanently staying in RAM
3. small improvements in typing
2025-05-28 15:11:33 +02:00
Michael Panchenko 22e72a5769 Refactored project config management and activation
Project activation is now always enabled
Projects are lists to dirs
Activation works based on name or path
Activating a new project always registers it
2025-05-26 21:47:19 +02:00
Michael Panchenko 13c71bb216 Allow activation of projects without registration 2025-05-26 12:49:16 +02:00
Michael Panchenko f85aabb40e Merge branch 'main' into feature/context-and-mode
# Conflicts:
#	scripts/gen_prompt_factory.py
#	src/serena/agent.py
#	src/serena/llm/multilang_prompt.py
2025-05-23 17:42:37 +02:00
Michael Panchenko 3584ce47eb Proper first implementation of mode and context setting, WIP 2025-05-23 17:34:46 +02:00
Michael PanchenkoandMichael Panchenko 0884fc7a8c Support for multiple usage contexts and modes
The context and mode system allows for tool selection and
prompt adjustments, thus customizing the behavior of the agent
to the user's needs.
2025-05-21 19:34:11 +02:00
Michael Panchenko 0cf0ff3d48 Improvements and renamings of symbol name_path matching 2025-05-21 12:35:26 +02:00
Michael Panchenko 39854c8baa Fix minor typing issues, fix initialization of gopls, remove hack 2025-05-20 17:21:21 +02:00
Michael Panchenko a7f1af7174 Allow finding symbols by qualname. Also allow finding parents in Symbol
Fairly extensive testing included
2025-05-20 15:40:45 +02:00
Michael Panchenko c848e8a7ca Extended tests 2025-05-20 01:41:15 +02:00
Michael Panchenko e8d493f4d6 Use utf8 in all file read operations 2025-05-19 17:18:51 +02:00
Michael Panchenko 7975675a98 More explicit asserts (debugging in CI) 2025-05-19 16:11:02 +02:00
Michael Panchenko 4901f72629 Made paths in test os independent 2025-05-19 12:57:26 +02:00
Michael Panchenko 81b7192410 Added tests for PhP language server 2025-05-19 12:51:44 +02:00
Michael Panchenko 515870b55b Tests: use markers 2025-05-01 22:57:55 +02:00
Michael Panchenko 801bef4998 Typo in test 2025-04-29 14:20:48 +02:00
Michael Panchenko adad5008c7 Integration tests of SerenaAgen 2025-04-29 14:16:49 +02:00
Michael Panchenko 7293478fa5 Tests: don't import util from conftest 2025-04-28 15:44:37 +02:00
Michael Panchenko e48031ea73 Tests for TS and Go, general improvements in tests 2025-04-28 15:34:29 +02:00
Michael Panchenko 14f58c9c2e Tests: removed for-loops over col for finding references 2025-04-27 16:04:27 +02:00
Michael Panchenko 6a46a3768d Use selectionRange for referencing symbols in tests 2025-04-27 15:42:55 +02:00
Michael Panchenko e6f0ddacef Tests for LS on rust, written by windsurf with GPT4.1 2025-04-27 15:34:29 +02:00
Michael Panchenko fadfcc4f26 Tests for java, minor extension for multilspy
Written by windsurf ang GPT4.1
2025-04-27 13:43:23 +02:00
Michael Panchenko 433d7f4d59 Refactoring in tests: prepare for testing with multiple languages 2025-04-27 13:00:45 +02:00
Michael Panchenko e51cb768db Cleanup after ai 2025-04-22 17:32:45 +02:00
openhands 4d969844c8 Update iter_tool_classes to only iterate over tools in the same module by default 2025-04-22 15:13:20 +00:00
openhands d9b90f26af Improve tests for make_tool function 2025-04-22 15:03:16 +00:00
openhands 2737dd2b3f Use empty string instead of 'No description available' for missing descriptions 2025-04-22 14:18:30 +00:00
openhands 5cc4086c4f Add BasicTool to the list of classes to skip in test_make_tool_all_tools 2025-04-22 14:14:11 +00:00
openhands 6bb0074587 Fix test_make_tool_all_tools to skip test mock classes 2025-04-22 14:12:11 +00:00
openhands f1b9b3bf3d Fix parsing of tools with missing docstring descriptions 2025-04-22 14:10:24 +00:00
Marcelo Soares cf029146d1 Refactor test to target the make_tool function 2025-04-21 20:50:09 -03:00