Fix pipeline #10

Merged
hurui200320 merged 1 commit from feat/#8 into develop 2025-04-30 03:38:38 +00:00
Member

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.
  • fixed some unit test that cause the pytest to fail
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. + fixed some unit test that cause the pytest to fail

Coverage for module is 38%

Coverage for module is 38%
hurui200320 force-pushed feat/#8 from 5b9065ce84
Some checks failed
Unit test coverage / pytest (push) Failing after 1m6s
Unit test coverage / pytest (pull_request) Failing after 1m3s
to f67b51ad95
Some checks failed
Unit test coverage / pytest (push) Failing after 1m12s
Unit test coverage / pytest (pull_request) Failing after 1m12s
2025-03-27 13:50:40 +00:00
Compare

Coverage is 38%

Coverage is 38%
hurui200320 changed title from WIP: #8 Fix pipeline to #8 Fix pipeline 2025-03-27 13:58:16 +00:00
hurui200320 changed title from #8 Fix pipeline to Fix pipeline 2025-04-21 06:49:31 +00:00
hurui200320 force-pushed feat/#8 from 7112b44ecd
Some checks failed
Unit test coverage / pytest (push) Waiting to run
Unit test coverage / pytest (pull_request) Has been cancelled
to 58278143b1
Some checks failed
Unit test coverage / pytest (push) Failing after 1m39s
Unit test coverage / pytest (pull_request) Failing after 1m43s
2025-04-21 06:55:58 +00:00
Compare

Coverage is 38%

Coverage is 38%

Coverage is 38%

Coverage is 38%
hurui200320 changed title from Fix pipeline to WIP: Fix pipeline 2025-04-21 07:23:10 +00:00
hurui200320 force-pushed feat/#8 from 14b7b50378
Some checks failed
Unit test coverage / pytest (pull_request) Failing after 1m14s
CI for pypl publish / publish-lib (push) Has been cancelled
Unit test coverage / pytest (push) Failing after 1m33s
to 9fc8c08479
Some checks failed
CI for pypl publish / publish-lib (push) Failing after 57s
Unit test coverage / pytest (push) Failing after 59s
Unit test coverage / pytest (pull_request) Failing after 55s
2025-04-23 07:37:53 +00:00
Compare
hurui200320 force-pushed feat/#8 from 9fc8c08479
Some checks failed
CI for pypl publish / publish-lib (push) Failing after 57s
Unit test coverage / pytest (push) Failing after 59s
Unit test coverage / pytest (pull_request) Failing after 55s
to 2028b33572
Some checks failed
Unit test coverage / pytest (push) Failing after 43s
Unit test coverage / pytest (pull_request) Failing after 1m5s
CI for pypl publish / publish-lib (push) Failing after 39s
2025-04-23 08:06:41 +00:00
Compare
hurui200320 force-pushed feat/#8 from 2028b33572
Some checks failed
Unit test coverage / pytest (push) Failing after 43s
Unit test coverage / pytest (pull_request) Failing after 1m5s
CI for pypl publish / publish-lib (push) Failing after 39s
to 262410d70a
Some checks failed
Unit test coverage / pytest (push) Failing after 1m13s
CI for pypl publish / publish-lib (push) Failing after 1m12s
Unit test coverage / pytest (pull_request) Failing after 1m10s
2025-04-23 08:14:44 +00:00
Compare
hurui200320 force-pushed feat/#8 from 262410d70a
Some checks failed
Unit test coverage / pytest (push) Failing after 1m13s
CI for pypl publish / publish-lib (push) Failing after 1m12s
Unit test coverage / pytest (pull_request) Failing after 1m10s
to 656d266327
Some checks failed
CI for pypl publish / publish-lib (push) Failing after 1m15s
Unit test coverage / pytest (push) Failing after 1m17s
Unit test coverage / pytest (pull_request) Failing after 1m15s
2025-04-23 08:18:15 +00:00
Compare
hurui200320 force-pushed feat/#8 from 656d266327
Some checks failed
CI for pypl publish / publish-lib (push) Failing after 1m15s
Unit test coverage / pytest (push) Failing after 1m17s
Unit test coverage / pytest (pull_request) Failing after 1m15s
to 3f41bc6e0d
Some checks failed
Unit test coverage / pytest (push) Failing after 1m14s
Unit test coverage / pytest (pull_request) Failing after 1m13s
CI for pypl publish / publish-lib (push) Failing after 1m16s
2025-04-23 08:22:47 +00:00
Compare
hurui200320 force-pushed feat/#8 from 3f41bc6e0d
Some checks failed
Unit test coverage / pytest (push) Failing after 1m14s
Unit test coverage / pytest (pull_request) Failing after 1m13s
CI for pypl publish / publish-lib (push) Failing after 1m16s
to efe219ea21
Some checks failed
Unit test coverage / pytest (push) Failing after 1m13s
Unit test coverage / pytest (pull_request) Failing after 1m9s
CI for pypl publish / publish-lib (push) Failing after 1m16s
2025-04-23 08:28:14 +00:00
Compare
hurui200320 force-pushed feat/#8 from efe219ea21
Some checks failed
Unit test coverage / pytest (push) Failing after 1m13s
Unit test coverage / pytest (pull_request) Failing after 1m9s
CI for pypl publish / publish-lib (push) Failing after 1m16s
to 54b8f8176a
Some checks failed
Unit test coverage / pytest (push) Failing after 1m15s
Unit test coverage / pytest (pull_request) Failing after 1m14s
CI for pypl publish / publish-lib (push) Failing after 1m16s
2025-04-23 08:35:31 +00:00
Compare
hurui200320 force-pushed feat/#8 from 54b8f8176a
Some checks failed
Unit test coverage / pytest (push) Failing after 1m15s
Unit test coverage / pytest (pull_request) Failing after 1m14s
CI for pypl publish / publish-lib (push) Failing after 1m16s
to 51a6addf03
Some checks failed
Unit test coverage / pytest (push) Failing after 1m20s
Unit test coverage / pytest (pull_request) Failing after 1m16s
CI for pypl publish / publish-lib (push) Failing after 1m21s
2025-04-23 08:41:28 +00:00
Compare
hurui200320 force-pushed feat/#8 from 51a6addf03
Some checks failed
Unit test coverage / pytest (push) Failing after 1m20s
Unit test coverage / pytest (pull_request) Failing after 1m16s
CI for pypl publish / publish-lib (push) Failing after 1m21s
to f80ece3de2
Some checks failed
Unit test coverage / pytest (push) Failing after 1m17s
Unit test coverage / pytest (pull_request) Failing after 1m15s
CI for pypl publish / publish-lib (push) Failing after 1m3s
2025-04-23 08:50:50 +00:00
Compare
hurui200320 force-pushed feat/#8 from f80ece3de2
Some checks failed
Unit test coverage / pytest (push) Failing after 1m17s
Unit test coverage / pytest (pull_request) Failing after 1m15s
CI for pypl publish / publish-lib (push) Failing after 1m3s
to 06e92531c7
Some checks failed
Unit test coverage / pytest (pull_request) Has been cancelled
Unit test coverage / pytest (push) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m15s
2025-04-24 03:48:27 +00:00
Compare
hurui200320 force-pushed feat/#8 from 06e92531c7
Some checks failed
Unit test coverage / pytest (pull_request) Has been cancelled
Unit test coverage / pytest (push) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m15s
to cef99950f8
Some checks failed
Unit test coverage / pytest (pull_request) Has been cancelled
Unit test coverage / pytest (push) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m2s
2025-04-24 04:39:45 +00:00
Compare
hurui200320 force-pushed feat/#8 from cef99950f8
Some checks failed
Unit test coverage / pytest (pull_request) Has been cancelled
Unit test coverage / pytest (push) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m2s
to c7445237c9
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m17s
2025-04-24 04:41:54 +00:00
Compare
hurui200320 force-pushed feat/#8 from c7445237c9
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m17s
to fc59cf3318
Some checks failed
Unit test coverage / pytest (pull_request) Has been cancelled
Unit test coverage / pytest (push) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m2s
2025-04-24 04:45:19 +00:00
Compare
hurui200320 force-pushed feat/#8 from 5dcb5675f0
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 58s
to f8d072f53d
Some checks failed
Unit test coverage / pytest (push) Failing after 1m13s
Unit test coverage / pytest (pull_request) Failing after 1m18s
CI for pypl publish / publish-lib (push) Has been cancelled
2025-04-24 04:51:45 +00:00
Compare

Coverage is 42%

Coverage is 42%
hurui200320 force-pushed feat/#8 from f8d072f53d
Some checks failed
Unit test coverage / pytest (push) Failing after 1m13s
Unit test coverage / pytest (pull_request) Failing after 1m18s
CI for pypl publish / publish-lib (push) Has been cancelled
to 6b830b19e7
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m9s
2025-04-24 04:53:08 +00:00
Compare
Author
Member

Currently, the pulp registry is not fully working due to a permission issue: when uploading the wheel files, it got 403.

As a temporary solution, the pipeline is now uploading the wheel files to forgejo: https://git.cleverthis.com/clevermicro/amq-adapter-python/actions/runs/73/artifacts/amq-adapter-dist.zip

You can also see the artifacts in the side bar of the publishing pipeline. This will be removed once the pulp registry is fully working. The retention of the artifacts is 7 days, which should be enough for us to fix the pulp registry.

Currently, the pulp registry is not fully working due to a permission issue: when uploading the wheel files, it got 403. As a temporary solution, the pipeline is now uploading the wheel files to forgejo: https://git.cleverthis.com/clevermicro/amq-adapter-python/actions/runs/73/artifacts/amq-adapter-dist.zip You can also see the artifacts in the side bar of the publishing pipeline. This will be removed once the pulp registry is fully working. The retention of the artifacts is 7 days, which should be enough for us to fix the pulp registry.
hurui200320 force-pushed feat/#8 from cb00b61b04
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 59s
to 6b830b19e7
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m9s
2025-04-25 04:37:49 +00:00
Compare

Coverage is 42%

Coverage is 42%
hurui200320 force-pushed feat/#8 from ff1b93bc84
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m10s
to 6b830b19e7
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m9s
2025-04-28 04:46:29 +00:00
Compare
hurui200320 force-pushed feat/#8 from 6b830b19e7
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m9s
to 8f93811155
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Successful in 1m14s
2025-04-29 10:05:59 +00:00
Compare
hurui200320 force-pushed feat/#8 from 8f93811155
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Successful in 1m14s
to c6d7e9c003
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m7s
2025-04-30 03:27:37 +00:00
Compare
hurui200320 force-pushed feat/#8 from c6d7e9c003
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Failing after 1m7s
to 046cfea8f6
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Successful in 1m8s
2025-04-30 03:33:25 +00:00
Compare
hurui200320 force-pushed feat/#8 from 046cfea8f6
Some checks failed
Unit test coverage / pytest (push) Has been cancelled
Unit test coverage / pytest (pull_request) Has been cancelled
CI for pypl publish / publish-lib (push) Successful in 1m8s
to 472ae0c2f1
Some checks failed
Unit test coverage / pytest (push) Failing after 1m7s
Unit test coverage / pytest (pull_request) Failing after 1m6s
2025-04-30 03:36:03 +00:00
Compare
hurui200320 changed title from WIP: Fix pipeline to Fix pipeline 2025-04-30 03:36:37 +00:00

Coverage is 42%

Coverage is 42%
hurui200320 deleted branch feat/#8 2025-04-30 03:38:39 +00:00
hurui200320 referenced this pull request from a commit 2025-04-30 03:38:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
clevermicro/amq-adapter-python!10
No description provided.