Commit Graph

62 Commits

Author SHA1 Message Date
Stanislav Hejny c772a2844a #25 - monitor CPU usage to determine backpressure events
Unit test coverage / pytest (push) Failing after 59s
Unit test coverage / pytest (pull_request) Failing after 1m18s
2025-05-05 13:05:51 +01:00
stanislav.hejny d40e8319be Merge pull request '#28 - stop using Thread as CleverSwarm methods are not thread-safe' (#37) from single-thread into develop
Unit test coverage / pytest (push) Failing after 1m16s
CI for pypl publish / publish-lib (push) Successful in 1m20s
Reviewed-on: #37
2025-05-02 09:08:11 +00:00
Stanislav Hejny e29b7339f9 #28 - stop using Thread as CleverSwarm methods are not thread-safe
Unit test coverage / pytest (push) Failing after 59s
Unit test coverage / pytest (pull_request) Failing after 1m20s
2025-05-02 10:05:36 +01:00
stanislav.hejny d681b8ae0f Merge pull request '#35 - move CLI tools to dedicated directory so it is not part of the distributable code' (#36) from cli_tools into develop
Unit test coverage / pytest (push) Failing after 1m24s
CI for pypl publish / publish-lib (push) Successful in 1m28s
Reviewed-on: #36
2025-05-01 17:28:59 +00:00
Stanislav Hejny 4fc81edc62 #35 - move CLI tools to dedicated directory so it is not partr of the distributable code
Unit test coverage / pytest (push) Failing after 57s
Unit test coverage / pytest (pull_request) Failing after 1m23s
2025-05-01 18:26:09 +01:00
stanislav.hejny 8163542388 Merge pull request '#29 - CleverSwarm integration - fix PUT multipart/form-data message error' (#30) from fix_put_message into develop
Unit test coverage / pytest (push) Failing after 1m6s
CI for pypl publish / publish-lib (push) Failing after 1m9s
Reviewed-on: #30
2025-05-01 17:09:52 +00:00
Stanislav Hejny 317a68d0c4 bug #29 - CleverSwarm integration - fix PUT multipart/form-data message error
Unit test coverage / pytest (push) Failing after 1m9s
Unit test coverage / pytest (pull_request) Failing after 1m7s
2025-05-01 18:08:15 +01:00
Stanislav Hejny 21c062ed29 Revert "#29 - CleverSwarm integration - fix PUT multipart/form-data message error"
Unit test coverage / pytest (push) Failing after 1m10s
Unit test coverage / pytest (pull_request) Failing after 1m9s
This reverts commit c6b7b2ad7e.
2025-05-01 17:59:30 +01:00
Stanislav Hejny cf40c7d7e4 Revert "Revert "#29 - CleverSwarm integration - fix PUT multipart/form-data message error""
This reverts commit 1540335750.
2025-05-01 17:59:03 +01:00
Stanislav Hejny 1540335750 Revert "#29 - CleverSwarm integration - fix PUT multipart/form-data message error"
This reverts commit c6b7b2ad7e.
2025-05-01 17:00:34 +01:00
stanislav.hejny 10a6c93b8d Merge pull request '#32 add the RabbitMQ exchange initialization tool' (#33) from create_tools_exchg into develop
Unit test coverage / pytest (push) Failing after 1m9s
CI for pypl publish / publish-lib (push) Successful in 1m12s
Reviewed-on: #33
2025-05-01 15:56:07 +00:00
Stanislav Hejny 7453bb8860 #32 add the RabbitMQ exchange initialization tool
Unit test coverage / pytest (push) Failing after 56s
Unit test coverage / pytest (pull_request) Failing after 59s
2025-05-01 01:08:26 +01:00
Stanislav Hejny c6b7b2ad7e #29 - CleverSwarm integration - fix PUT multipart/form-data message error
Unit test coverage / pytest (push) Failing after 1m2s
Unit test coverage / pytest (pull_request) Failing after 58s
2025-05-01 00:40:59 +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
stanislav.hejny 0f8bec742d Merge pull request '#26 - fix the boolean config value conversion, organize all config values to single class' (#27) from organize-config-values into develop
Reviewed-on: #27
2025-04-29 12:11:49 +00:00
Stanislav Hejny d1ba4db460 #26 - fix the boolean config value conversion, organize all config values to single class 2025-04-29 13:05:56 +01:00
stanislav.hejny dbdf87ad77 Merge pull request '#15 - Implement Backpressure UPDATE & IDLE, setup AMQ handler in its own thread' (#22) from backpressure-idle into develop
Reviewed-on: #22
2025-04-28 20:46:22 +00:00
Stanislav Hejny f2a517a012 #15 - merge in the backpressure fix - get the exchange the right way 2025-04-28 21:45:04 +01:00
stanislav.hejny ec221c960b Merge pull request 'Fix the backpressure event' (#21) from feat/#20 into develop
Reviewed-on: #21
Reviewed-by: Stanislav Hejny <stanislav.hejny@cleverthis.com>
2025-04-28 20:38:04 +00:00
Stanislav Hejny 3dfb7a821d #15 - Implement Backpressure UPDATE & IDLE, setup AMQ handler in its own thread 2025-04-28 00:49:35 +01:00
hurui200320 8352e0e5c8 fix(General): fix the backpressure event
ISSUES CLOSED: clevermicro/amq-adapter-python#20
2025-04-25 16:27:36 +08:00
Stanislav Hejny 88d45a9b67 #17 - review log message, standartize format and add location info 2025-04-24 02:34:11 +01:00
Stanislav Hejny d4d633cb46 issue #12 - Adapter documentation, README file 2025-04-22 17:19:57 +01:00
Stanislav Hejny 7f10905791 feat/#1 - refactor code for better design and testability 2025-04-22 08:50:16 +01:00
stanislav.hejny 1de7afe4f5 feat/#1 - applied 'black' formatting 2025-04-18 23:49:10 +01:00
stanislav.hejny 04977e5ccc feat/#1 - improve error logging and fix the file upload to support also the native multipart message 2025-04-18 22:52:34 +01:00
Stanislav Hejny a8d82b1e3d #feat/1 - code cleanup for final release, part 1 2025-04-17 13:20:56 +01:00
hurui200320 7bc92f9614 fix(General): use multipart message header for file uploader 2025-04-17 15:10:12 +08:00
hurui200320 56bd0a3025 fix(General): use non-exclusive queue for streaming queues 2025-04-16 18:14:40 +08:00
hurui200320 95d08686e0 fix(General): add type conversion for in coming request 2025-04-16 17:50:37 +08:00
stanislav.hejny 7888f1bddb rewrite the download function to work with multiple threads 2025-04-16 09:11:05 +01:00
stanislav.hejny 4a248d14ac Reached functional file download 2025-04-16 03:22:58 +01:00
stanislav.hejny 0720c5963f restructure to fit around python event-loop 2025-04-16 00:24:17 +01:00
stanislav.hejny b550d98eaf Correct file download format 2025-04-13 00:42:36 +01:00
stanislav.hejny 2c641b0f64 Fix the multithread/waiting for result 2025-04-12 10:50:35 +01:00
Stanislav Hejny 79ed698ac9 Fixes from testing 2025-04-10 21:38:41 +01:00
Stanislav Hejny 63db3c0758 Added support for file download 2025-04-09 20:19:50 +01:00
Stanislav Hejny 113dd38106 Added support for file download 2025-04-09 19:23:26 +01:00
Stanislav Hejny 6b420dee0a Modify CleverSwarm adapter to use reflection to match URLPath to endpoint 2025-04-07 10:23:17 +01:00
Stanislav Hejny fc110c7175 Add IDLE backpressure detection 2025-04-06 01:24:51 +01:00
Stanislav Hejny f7bffbe20d Create new uploaded file version rather than append to it, if file of the same name already exists 2025-04-03 11:07:07 +01:00
Stanislav Hejny a4ffd56f10 Update .gitignore 2025-04-01 02:55:42 +01:00
Stanislav Hejny 579102633c Version that runs with new file upload stream and cleverswarm 2025-04-01 02:54:21 +01:00
stanislav.hejny 141de355d4 Merge pull request 'Add support for file streaming upload, update to async pika lib' (#9) from feat/#1 into develop
Reviewed-on: #9
2025-03-26 14:00:42 +00:00
Stanislav Hejny a2ddce1a2e Add support for file streaming upload, update to async pika lib 2025-03-26 13:54:30 +00:00
stanislav.hejny e8f4abdfaf Merge branch 'feat/#1' into 'develop'
AMQ adapter version w/o endpoints for CleverSwarm integration

See merge request cleverthis/clevermicro/amq-adapter-python!1
2025-02-28 12:03:50 +00:00
Stanislav Hejny d9af0d0981 Bump-up project version to enable publish to PyPI 2025-02-28 00:15:00 +00:00
Stanislav Hejny aaa2895cbc remove hardcoded config file path 2025-02-28 00:10:18 +00:00
Stanislav Hejny aaf1c77e72 Fix cleverswarm dependencies identified in testing 2025-02-27 23:08:23 +00:00
Stanislav Hejny dc884c654a Bump-up project version to enable publish to PyPI 2025-02-27 21:50:44 +00:00