Commit Graph

13 Commits

Author SHA1 Message Date
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 3dfb7a821d #15 - Implement Backpressure UPDATE & IDLE, setup AMQ handler in its own thread 2025-04-28 00:49:35 +01:00
Stanislav Hejny 88d45a9b67 #17 - review log message, standartize format and add location info 2025-04-24 02:34:11 +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 113dd38106 Added support for file download 2025-04-09 19:23:26 +01:00
Stanislav Hejny fc110c7175 Add IDLE backpressure detection 2025-04-06 01:24:51 +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 a2ddce1a2e Add support for file streaming upload, update to async pika lib 2025-03-26 13:54:30 +00:00
Stanislav Hejny e861bf0f38 Remove references to cleverswarm and fix packaging 2025-02-27 21:43:46 +00:00
Stanislav Hejny eb26eec767 CleverSwarm API invocation example 2025-02-25 20:37:33 +00:00
Stanislav Hejny 286a4986b3 AMQ adapter version w/o endpints for CleverSwarm integration 2025-02-20 15:46:53 +08:00
Stanislav Hejny d2b1b59c66 Converted AMQPAdapeter Java code to Python 2025-02-20 15:45:26 +08:00