Stanislav Hejny
66132db13a
feat/#63 - cleverswarm unidirectional command
Unit test coverage / pytest (pull_request) Successful in 1m38s
Unit test coverage / pytest (push) Successful in 1m52s
CI for pypl publish / publish-lib (push) Successful in 2m7s
/ build-and-push (push) Successful in 2m20s
Build and Publish Docker Image / build-and-push (push) Successful in 2m32s
2025-07-26 15:41:47 +01:00
Stanislav Hejny
9491517696
feat/#63 - fix the send_command and add unit tests
Unit test coverage / pytest (pull_request) Successful in 1m15s
Unit test coverage / pytest (push) Failing after 1m50s
CI for pypl publish / publish-lib (push) Successful in 1m57s
/ build-and-push (push) Successful in 1m59s
Build and Publish Docker Image / build-and-push (push) Successful in 2m12s
2025-07-24 10:05:36 +01:00
Stanislav Hejny
4985344e5e
test: add package_name parameter to invoke_command calls in test_rpc.py
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-24 08:16:42 +01:00
Stanislav Hejny
f3be2fbfea
test: update tests to use invoke_command directly
2025-07-24 08:16:41 +01:00
Stanislav Hejny
ad49cb2836
test: convert demo script to unittest framework in test_rpc.py
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-24 08:08:00 +01:00
Stanislav Hejny
2b20c9a0dc
test: add tests for RPC command invocation and error handling
2025-07-24 08:07:57 +01:00
Stanislav Hejny
050b5ddba4
fix: ensure AsyncMock returns awaitable channel in test_initialize
...
Unit test coverage / pytest (push) Successful in 1m37s
Unit test coverage / pytest (pull_request) Successful in 1m46s
/ build-and-push (push) Successful in 1m46s
Build and Publish Docker Image / build-and-push (push) Has been cancelled
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-18 09:29:54 +01:00
Stanislav Hejny
a6ca319e92
fix: use AsyncMock for mock_channel in test setup
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-18 09:25:34 +01:00
Stanislav Hejny
5ab9406430
feat: implement UserManagementServiceClient with RabbitMQ communication
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-18 07:47:21 +01:00
Stanislav Hejny
a6c918fe43
feat/58 - simplify complex logic
Build and Publish Docker Image / build-and-push (push) Waiting to run
Unit test coverage / pytest (push) Failing after 1m32s
Unit test coverage / pytest (pull_request) Failing after 1m38s
/ build-and-push (push) Successful in 1m46s
2025-07-17 17:51:01 +01:00
Stanislav Hejny
9cae4b168e
fix: properly mock nested structure in AMQConfiguration for tests
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-17 10:49:47 +01:00
Stanislav Hejny
281004798e
test: add comprehensive unit tests for DataMessageHandler
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-17 10:45:16 +01:00
Stanislav Hejny
ef5a0363cd
test: fix async mock in backpressure tests for coroutine compatibility
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-17 10:24:43 +01:00
Stanislav Hejny
7f9c02e458
test: simplify and enhance AMQService backpressure tests
2025-07-17 10:24:42 +01:00
Stanislav Hejny
cc4fbc68fd
test: add unit tests for BackpressureHandler and AMQService classes
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-16 18:48:18 +01:00
Stanislav Hejny
f8fd9f24f8
feature/58 - update unit tests for coverage
Unit test coverage / pytest (push) Successful in 1m39s
Unit test coverage / pytest (pull_request) Successful in 1m46s
/ build-and-push (push) Successful in 1m52s
Build and Publish Docker Image / build-and-push (push) Has been cancelled
2025-07-15 17:12:26 +01:00
Stanislav Hejny
7cd2960fda
feat/58 - improve Backpressure algorithm
2025-07-15 16:40:02 +01:00
Stanislav Hejny
7d4e358ce5
test: add AsyncMock to test backpressure handler conditions
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-12 23:02:19 +01:00
Stanislav Hejny
0e294b223d
Fix the global unique ID generator recursive constructor call
2025-07-12 22:59:21 +01:00
Stanislav Hejny
dbfd5ea50d
test: add unit tests for backpressure handler methods and conditions
...
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat >
2025-07-11 23:58:58 +01:00
Stanislav Hejny
5075f510e9
add consul configuration
Unit test coverage / pytest (push) Failing after 1m19s
/ build-and-push (push) Successful in 1m25s
Unit test coverage / pytest (pull_request) Failing after 1m24s
Build and Publish Docker Image / build-and-push (push) Has been cancelled
2025-07-11 22:41:40 +01:00
Stanislav Hejny
2ab2509a55
feat #58 - publish docker image with demo app, fix test case
Unit test coverage / pytest (push) Failing after 1m19s
/ build-and-push (push) Successful in 1m26s
Build and Publish Docker Image / build-and-push (push) Has been cancelled
2025-07-01 22:48:22 +01:00
Stanislav Hejny
7fd1c62596
Feat #58 - fix backpressure logic and update tests
Unit test coverage / pytest (push) Failing after 1m17s
/ build-and-push (push) Successful in 1m29s
2025-06-28 10:20:55 +02:00
Stanislav Hejny
7e04106ab4
Issue #23 - add unit test for new code from fixes identified after running test for BRAG collections
Unit test coverage / pytest (push) Successful in 1m8s
2025-06-02 12:11:07 +01:00
Stanislav Hejny
8db2ad0b64
issue #23 - unit test coverage
Unit test coverage / pytest (push) Failing after 3m17s
2025-05-29 01:43:21 +01:00
Stanislav Hejny
5261b1f959
issue #23 - fixing issues from integration test, part 3
2025-05-29 01:05:05 +01:00
Stanislav Hejny
82c8a298cd
issue #23 - fixing issues from integration test
Unit test coverage / pytest (push) Failing after 1m9s
2025-05-27 13:34:09 +01:00
Stanislav Hejny
3e0f769837
feat #16 - update version so the code can be published as artifact
Unit test coverage / pytest (push) Successful in 1m19s
Unit test coverage / pytest (pull_request) Successful in 1m17s
2025-05-19 15:27:37 +01:00
hurui200320
2e12d5ab57
test(General): finished unit test, coverage 88%
...
Unit test coverage / pytest (push) Successful in 1m8s
Unit test coverage / pytest (pull_request) Successful in 1m6s
ISSUES CLOSED : clevermicro/amq-adapter-python#16
2025-05-16 18:16:04 +08:00
hurui200320
aec53f5b34
test(General): implement unit test for data parser, rabbitmq client and other python files
...
Unit test coverage / pytest (push) Failing after 1m7s
This commit bump the coverage rate to 77%
2025-05-15 17:06:05 +08:00
Stanislav Hejny
33431e87fc
issue #16 - add model tests, cursor config file and update the tracing.py to setup Jaeger & Prometheus exporters
Unit test coverage / pytest (push) Failing after 1m4s
2025-05-15 00:47:12 +01:00
hurui200320
883ea3400f
test(General): fix existing unit tests for cleverthis service adapter
...
Unit test coverage / pytest (push) Failing after 1m10s
Should bump coverage rate to 62%
2025-05-14 16:16:10 +08:00
hurui200320
85297fa4cf
test(General): finished unit test for file handler, fixed unit test for backpressure handler
Unit test coverage / pytest (push) Failing after 1m4s
2025-05-14 15:08:32 +08:00
Stanislav Hejny
53dce69e8f
issue #16 - fix the pytest hanging after test main thread exits
Unit test coverage / pytest (push) Failing after 1m4s
2025-05-14 01:01:35 +01:00
hurui200320
98fc52fc26
Partially finished the unit test for file handler
Unit test coverage / pytest (push) Failing after 3h4m2s
2025-05-13 18:00:01 +08:00
hurui200320
44b6a8c3f1
test(General): implement unit test for serializer
2025-05-13 15:14:50 +08:00
hurui200320
45357c42a8
test(General): write test for pydantic serializer, fixed serialization bug
...
Unit test coverage / pytest (push) Failing after 3h11m8s
This commit write unit tests for pydantic serializer using cursor ai, and found an issue related to serialization. Originally, the code uses comma to concat string, but map and list also has comma inside. During the deserialization, split using comma will break map and list, leaving `{` with first kv pair for map, and `[` with first element with list. Instead of using concat with comma as separator, I use json to encode the object dict.
2025-05-12 16:42:34 +08:00
Stanislav Hejny
bc98351493
feat \#16 - add unittest for backpressure_handler and logging_utils
Unit test coverage / pytest (push) Failing after 3h11m10s
2025-05-12 01:06:39 +01:00
Stanislav Hejny
c387a2494e
#23 refactor for cleverBRAG, fix failing unit tests
Unit test coverage / pytest (push) Failing after 1m10s
Unit test coverage / pytest (pull_request) Failing after 1m9s
2025-05-12 00:46:18 +01:00
Stanislav Hejny
27a930b3c3
#23 refactor to use shared code between services, part 2
Unit test coverage / pytest (push) Failing after 1m20s
Unit test coverage / pytest (pull_request) Failing after 1m18s
2025-05-11 23:57:27 +01:00
Stanislav Hejny
2f6dbd2ad8
#23 refactor to use shared code between services
Unit test coverage / pytest (pull_request) Failing after 1m9s
Unit test coverage / pytest (push) Failing after 1m11s
2025-05-11 15:06:39 +01:00
Stanislav Hejny
15da316a1f
#43 - fix the issues reported by flake8
Unit test coverage / pytest (push) Failing after 56s
Unit test coverage / pytest (pull_request) Failing after 1m1s
2025-05-08 23:52:33 +01:00
hurui200320
bde74c82b5
Fix pipeline ( #10 )
...
Unit test coverage / pytest (push) Failing after 1m11s
CI for pypl publish / publish-lib (push) Successful in 1m16s
This MR fixed the pipeline so it can run on forgejo runner. Currently we have two pipelines set up:
+ One pipeline will run pytest to test the code and collect coverage data, this pipeline will run on all branches and PRs.
+ One pipeline will build the wheel file and publish it to the company's pypl repo, this pipeline will only run on the master branch and develop branch.
This RP also made the following changes to make the pipeline working:
+ Remove `setup.py` and `requirements.txt`, now the project is fully embraced `pyproject.toml`, which according to ChatGPT, is the most modern way of managing a python project.
+ Move all test files to `tests` folder, so it won't be packed into the final wheel file and affect the coverage rate.
+ Change version to `X.Y.Z-dev`, before building the wheel file, the pipeline will automatically add a UTC timestamp after it, so it becomes `X.Y.Z-devYYYYMMDDHHmmSS`. This is added due to the limitation of the pypl repo, unlike maven snapshot versions, you can't push the same version twice with our pypl repository.
Reviewed-on: #10
Reviewed-by: Stanislav Hejny <stanislav.hejny@cleverthis.com >
Co-authored-by: Rui Hu <rui.hu@cleverthis.com >
Co-committed-by: Rui Hu <rui.hu@cleverthis.com >
2025-04-30 03:38:36 +00:00