Skip to content

Conversation

a-klos
Copy link
Member

@a-klos a-klos commented Sep 8, 2025

This pull request refactors the project's CI/CD pipeline by splitting the release, build, publish, and chart update workflows into dedicated, modular GitHub Actions files. It replaces the previous monolithic semantic-release.yml with a set of specialized workflows, improving maintainability, clarity, and control over the release process. The new workflows automate semantic versioning, internal library publishing, Docker image building, Helm chart publishing, and service lockfile refreshes.

Release & Versioning Automation

  • Added .github/workflows/prepare-release.yml to automate semantic version calculation, internal library version bumps, and creation of a "prepare-release" PR after merging to main.
  • Added .github/workflows/create-release.yml to create a Git tag and GitHub Release when a "refresh-locks" PR is merged, extracting the version from the PR title.

Build & Publish Workflows

  • Added .github/workflows/build-images.yml to build and push Docker images for all services after a release is published, and to collect image digests as artifacts.
  • Added .github/workflows/publish-libs-on-merge.yml to publish internal libraries to TestPyPI and refresh service lockfiles/pins when a "prepare-release" PR is merged.
  • Added .github/workflows/publish-chart.yml to bump Helm chart versions and publish them to GHCR after images are built, including a PR to persist version updates.

Workflow Cleanups & Refactors

  • Removed the legacy .github/workflows/semantic-release.yml in favor of the new modular workflows.
  • Updated .github/workflows/lint-and-test.yml to skip jobs for PRs labeled as release-related and switched Docker builds to use Dockerfile.dev for development builds. [1] [2]

Dependency & Metadata Updates

  • Updated services/admin-backend/pyproject.toml to use the correct service name (admin-backend) and set its version to 2.2.1.

…ilding

- Added new workflows for creating releases, preparing releases, and publishing libraries on merge.
- Implemented logic to derive version from pull request titles and create Git tags/releases accordingly.
- Enhanced image building workflows to include digest capturing and improved error handling.
- Refactored existing workflows to streamline the process of bumping versions for internal libraries and services.
- Introduced scripts for bumping chart versions and updating pyproject dependencies.
- Removed obsolete scripts and workflows to clean up the repository.
… management and development workflow

- Updated Dockerfiles for services and libs to use Python 3.13 and 3.11.7.
- Introduced separate Dockerfile.dev for development environments with optimized caching.
- Enhanced dependency installation logic in Dockerfiles to streamline dev and prod setups.
- Updated Poetry version to 2.1.3 across all services and libs.
- Refined pyproject.toml files to include TestPyPI sources and group dependencies for better management.
- Improved logging setup in Dockerfiles for better runtime diagnostics.
- Moved test dependencies to a dedicated group and added pytest and coverage.
- Created a separate lint group with flake8 and related plugins.
- Added debugpy and rag-core libraries to the dev group.
- Updated production dependencies for rag-core libraries to version 2.2.1.
- Updated `pyproject.toml` and `poetry.lock` files to enforce `setuptools` version to be less than 80.9 in multiple services.
- Adjusted per-file ignores for linting in `admin-backend` and `document-extractor`.
- Streamlined Dockerfiles for `document-extractor`, `rag-backend`, and `mcp-server` to improve build efficiency and user permissions.
- Ensured consistent formatting in dependency declarations across services.
- Updated versioning for `pdfextractor_server` to 2.2.1.
- Added minimal library structures in Dockerfiles to facilitate local package recognition by Poetry.
- Moved `pytest` and `pytest-asyncio` to a new test dependency group in `rag-core-lib`.
- Added `coverage` to the test dependencies in `rag-core-lib`.
- Created a separate lint dependency group in `rag-core-lib` and included `flake8` and related packages.
- Updated markers in `poetry.lock` for better platform compatibility.
- Removed `pytest-asyncio` from the `rag-backend` dependencies and adjusted its group to only include `test`.
… Dockerfile cleanup and user permissions; adjust pyproject.toml for local dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant