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%

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
requested reviews from abed.alrahman, stanislav.hejny 2025-03-27 13:58:35 +00:00
hurui200320 changed title from #8 Fix pipeline to Fix pipeline 2025-04-21 06:49:31 +00:00

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

Coverage is 42%

Coverage is 42%
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.

Coverage is 42%

Coverage is 42%
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.