Fix pipeline #10

Merged
hurui200320 merged 1 commits 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
hurui200320 self-assigned this 2025-03-27 13:48:04 +00:00
hurui200320 added 2 commits 2025-03-27 13:48:05 +00:00
fix(General): fix ci pipeline with forgejo runner
Unit test coverage / pytest (push) Failing after 1m32s
CI for pypl publish / publish-lib (push) Failing after 1m30s
4f5da0460b
fix(General): fix broken pipeline
Unit test coverage / pytest (push) Failing after 1m6s
Unit test coverage / pytest (pull_request) Failing after 1m3s
5b9065ce84

Coverage for module is 38%

Coverage for module is 38%
hurui200320 force-pushed feat/#8 from 5b9065ce84 to f67b51ad95 2025-03-27 13:50:40 +00:00 Compare

Coverage is 38%

Coverage is 38%
hurui200320 marked the pull request as ready for review 2025-03-27 13:58:16 +00:00
hurui200320 requested review from abed.alrahman 2025-03-27 13:58:35 +00:00
hurui200320 requested review from stanislav.hejny 2025-03-27 13:58:37 +00:00
hurui200320 changed title from #8 Fix pipeline to Fix pipeline 2025-04-21 06:49:31 +00:00
hurui200320 added 1 commit 2025-04-21 06:52:49 +00:00
ci(forgejo): update registry url to use pulp
Unit test coverage / pytest (push) Waiting to run
Unit test coverage / pytest (pull_request) Has been cancelled
7112b44ecd
ISSUES CLOSED: clevermicro/amq-adapter-python#8
hurui200320 force-pushed feat/#8 from 7112b44ecd to 58278143b1 2025-04-21 06:55:58 +00:00 Compare

Coverage is 38%

Coverage is 38%
hurui200320 added 1 commit 2025-04-21 07:13:33 +00:00
test
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
14b7b50378

Coverage is 38%

Coverage is 38%
hurui200320 marked the pull request as work in progress 2025-04-21 07:23:10 +00:00
stanislav.hejny approved these changes 2025-04-22 07:57:22 +00:00
hurui200320 force-pushed feat/#8 from 14b7b50378 to 9fc8c08479 2025-04-23 07:37:53 +00:00 Compare
hurui200320 force-pushed feat/#8 from 9fc8c08479 to 2028b33572 2025-04-23 08:06:41 +00:00 Compare
hurui200320 force-pushed feat/#8 from 2028b33572 to 262410d70a 2025-04-23 08:14:44 +00:00 Compare
hurui200320 force-pushed feat/#8 from 262410d70a to 656d266327 2025-04-23 08:18:15 +00:00 Compare
hurui200320 force-pushed feat/#8 from 656d266327 to 3f41bc6e0d 2025-04-23 08:22:47 +00:00 Compare
hurui200320 force-pushed feat/#8 from 3f41bc6e0d to efe219ea21 2025-04-23 08:28:14 +00:00 Compare
hurui200320 force-pushed feat/#8 from efe219ea21 to 54b8f8176a 2025-04-23 08:35:31 +00:00 Compare
hurui200320 force-pushed feat/#8 from 54b8f8176a to 51a6addf03 2025-04-23 08:41:28 +00:00 Compare
hurui200320 force-pushed feat/#8 from 51a6addf03 to f80ece3de2 2025-04-23 08:50:50 +00:00 Compare
hurui200320 force-pushed feat/#8 from f80ece3de2 to 06e92531c7 2025-04-24 03:48:27 +00:00 Compare
hurui200320 force-pushed feat/#8 from 06e92531c7 to cef99950f8 2025-04-24 04:39:45 +00:00 Compare
hurui200320 force-pushed feat/#8 from cef99950f8 to c7445237c9 2025-04-24 04:41:54 +00:00 Compare
hurui200320 force-pushed feat/#8 from c7445237c9 to fc59cf3318 2025-04-24 04:45:19 +00:00 Compare
hurui200320 added 1 commit 2025-04-24 04:49:24 +00:00
test2
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
5dcb5675f0
hurui200320 force-pushed feat/#8 from 5dcb5675f0 to f8d072f53d 2025-04-24 04:51:45 +00:00 Compare

Coverage is 42%

Coverage is 42%
hurui200320 force-pushed feat/#8 from f8d072f53d to 6b830b19e7 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 added 1 commit 2025-04-25 04:33:57 +00:00
test 2
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
cb00b61b04
hurui200320 force-pushed feat/#8 from cb00b61b04 to 6b830b19e7 2025-04-25 04:37:49 +00:00 Compare

Coverage is 42%

Coverage is 42%
hurui200320 added 1 commit 2025-04-28 03:05:46 +00:00
test2
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
ff1b93bc84
hurui200320 force-pushed feat/#8 from ff1b93bc84 to 6b830b19e7 2025-04-28 04:46:29 +00:00 Compare
hurui200320 force-pushed feat/#8 from 6b830b19e7 to 8f93811155 2025-04-29 10:05:59 +00:00 Compare
hurui200320 force-pushed feat/#8 from 8f93811155 to c6d7e9c003 2025-04-30 03:27:37 +00:00 Compare
hurui200320 force-pushed feat/#8 from c6d7e9c003 to 046cfea8f6 2025-04-30 03:33:25 +00:00 Compare
hurui200320 force-pushed feat/#8 from 046cfea8f6 to 472ae0c2f1 2025-04-30 03:36:03 +00:00 Compare
hurui200320 marked the pull request as ready for review 2025-04-30 03:36:37 +00:00

Coverage is 42%

Coverage is 42%
hurui200320 merged commit bde74c82b5 into develop 2025-04-30 03:38:38 +00:00
hurui200320 deleted branch feat/#8 2025-04-30 03:38:39 +00:00
hurui200320 referenced this issue from a commit 2025-04-30 03:38:41 +00:00
Sign in to join this conversation.
No Label
3 Participants
Notifications
Due Date
No due date set.
Reference: clevermicro/amq-adapter-python#10