Nicholas Albion
|
fffc4d9dd0
|
clean up
|
2023-10-06 19:00:09 +11:00 |
|
Nicholas Albion
|
4f54e96f4e
|
improved logging
|
2023-10-06 18:26:48 +11:00 |
|
Nicholas Albion
|
62e77ec831
|
add process_name field to command_definition
|
2023-10-06 18:25:57 +11:00 |
|
Nicholas Albion
|
fd6254d1fd
|
send exit code to LLM
|
2023-10-06 18:24:25 +11:00 |
|
Nicholas Albion
|
44cdea0381
|
renamed wrapper() retry_wrapper() so that it's more obvious in logs
|
2023-10-06 14:21:56 +11:00 |
|
Nicholas Albion
|
f7cf358648
|
resolved TODO
|
2023-10-06 14:08:45 +11:00 |
|
Nicholas Albion
|
a6a1476066
|
"Expecting value" thrown in 2 scenarios:
- expecting more value (send me the rest)
- expecting valid value (`True` is not a value)
|
2023-10-06 14:01:20 +11:00 |
|
Nicholas Albion
|
5ef248ff5f
|
#132 clean_json_response() fix case of booleans in JSON
|
2023-10-06 09:03:45 +11:00 |
|
Nicholas Albion
|
1e48f7bcfd
|
fix for python3.9
|
2023-10-06 00:21:06 +11:00 |
|
Nicholas Albion
|
ac68bad8d4
|
fix for python3.9
|
2023-10-05 23:50:32 +11:00 |
|
Nicholas Albion
|
29739df59b
|
#132 handle "Invalid" errors in JSONDecodeError - more work needed
|
2023-10-05 20:42:08 +11:00 |
|
Nicholas Albion
|
17042efd36
|
Fixed issue with logging from Peewee - provided tuple as record.msg
|
2023-10-05 20:40:04 +11:00 |
|
Nicholas Albion
|
a38c35fafa
|
#131 if process_name is specified to execute_command() keep the process alive
|
2023-10-05 20:39:01 +11:00 |
|
Nicholas Albion
|
1bc25c331c
|
e.msg may also be 'Unterminated string starting at' or other values
|
2023-10-05 12:47:40 +11:00 |
|
Nicholas Albion
|
131f537f6c
|
updated test_create_development_plan()
|
2023-10-05 12:38:26 +11:00 |
|
LeonOstrez
|
e1a788b037
|
Merge pull request #125 from Pythagora-io/fix/fix-tests
fixed unit tests
|
2023-10-05 00:32:59 +01:00 |
|
Nicholas Albion
|
22bea0f388
|
clean up
|
2023-10-04 18:19:53 +11:00 |
|
Nicholas Albion
|
a1304d0d54
|
restoring other tests
|
2023-10-04 18:15:55 +11:00 |
|
Nicholas Albion
|
009e05d54d
|
Having imports in __init__.py breaks mocking in Python 3.9 & 3.10
|
2023-10-04 18:13:18 +11:00 |
|
Nicholas Albion
|
6ae562a945
|
now try test_Dev again
|
2023-10-04 18:11:25 +11:00 |
|
Nicholas Albion
|
2e87627db8
|
previous commit worked, feeling confident
|
2023-10-04 18:09:28 +11:00 |
|
Nicholas Albion
|
fd7958b6c4
|
try without import in __init__.py
|
2023-10-04 18:07:37 +11:00 |
|
Nicholas Albion
|
d7130c3dbd
|
debugging
|
2023-10-04 18:01:15 +11:00 |
|
Nicholas Albion
|
8bb0c9db4b
|
comment out mock for now
|
2023-10-04 17:56:58 +11:00 |
|
Nicholas Albion
|
fbc44890b2
|
Merge branch 'main' into fix/fix-tests
# Conflicts:
# pilot/helpers/Project.py
|
2023-10-04 17:55:40 +11:00 |
|
Nicholas Albion
|
f99c0592c5
|
bump ci
|
2023-10-04 17:50:55 +11:00 |
|
Nicholas Albion
|
64c8002a83
|
simplify
|
2023-10-04 17:48:22 +11:00 |
|
Nicholas Albion
|
67f88a6924
|
where is update_file
|
2023-10-04 17:46:19 +11:00 |
|
Nicholas Albion
|
bb6a2b6a88
|
create Project after mocking
|
2023-10-04 17:38:33 +11:00 |
|
Nicholas Albion
|
d051a75e04
|
mocker.patch('helpers.Project.File')
|
2023-10-04 17:30:17 +11:00 |
|
Nicholas Albion
|
ff9c104a85
|
pytest-mock
|
2023-10-04 17:26:23 +11:00 |
|
Nicholas Albion
|
db0d01dce9
|
@patch('database.models.files.File.insert')
|
2023-10-04 17:08:52 +11:00 |
|
Nicholas Albion
|
4cffc00d43
|
fix for Python 3.9 & 3.10: @patch('helpers.files.update_file')
|
2023-10-04 17:03:22 +11:00 |
|
Nicholas Albion
|
4f288f60d3
|
fix fro test_Project
|
2023-10-04 17:00:42 +11:00 |
|
Nicholas Albion
|
0c0d719d0f
|
new_callable=MagicMock
|
2023-10-04 16:42:21 +11:00 |
|
Nicholas Albion
|
b9d8bfa724
|
run on other python 3.9-3.12
|
2023-10-04 16:21:45 +11:00 |
|
Nicholas Albion
|
16b26ae85a
|
uncomment test_implement_code_changes_with_read
|
2023-10-04 16:19:33 +11:00 |
|
Nicholas Albion
|
908fec154e
|
tidy up
|
2023-10-04 16:18:05 +11:00 |
|
Nicholas Albion
|
0536ec9ea9
|
monkeypatch.setenv('OPENAI_API_KEY', 'secret')
|
2023-10-04 16:12:00 +11:00 |
|
Nicholas Albion
|
d0c8db238c
|
updated __init__.py
|
2023-10-04 16:09:41 +11:00 |
|
Nicholas Albion
|
c1e47ceb8b
|
testing new ApiKeyNotDefinedError in CI
|
2023-10-04 16:06:47 +11:00 |
|
Nicholas Albion
|
9251c1831e
|
model = os.getenv('MODEL_NAME', 'gpt-4') - which makes sense as CI doesn't have my env
|
2023-10-04 15:50:45 +11:00 |
|
Nicholas Albion
|
366e88dc4d
|
more debug
|
2023-10-04 15:47:47 +11:00 |
|
Nicholas Albion
|
11da00605a
|
more logging
|
2023-10-04 15:42:50 +11:00 |
|
Nicholas Albion
|
8914bb438e
|
added debuggin logs for CI
|
2023-10-04 15:39:11 +11:00 |
|
Nicholas Albion
|
4abed31309
|
without mock_questionary again
|
2023-10-04 15:29:53 +11:00 |
|
Nicholas Albion
|
796821ae24
|
log warning & error etc
|
2023-10-04 15:23:58 +11:00 |
|
Nicholas Albion
|
cbac991bd9
|
avoid getting stuck in a loop if LLM can't conform to schema.
|
2023-10-04 15:23:36 +11:00 |
|
Nicholas Albion
|
0d8a4c7fee
|
try without logger.error(str, e)
|
2023-10-04 14:56:16 +11:00 |
|
Nicholas Albion
|
a63aedb2b1
|
fix for #130
|
2023-10-04 14:53:22 +11:00 |
|