How code moves from a feature branch to a published GitHub Release + Docker
Hub image, and what each CI workflow in .github/workflows/ does.
See also: Architecture & Limitations · Development & Style Guide
feature/*, fix-*, add-*, bugfix-*, ... (short-lived topic branches)
│ PR
▼
develop ───────────────────────────────────► rc/x.y.z ──► PR ──► main
│ ▲
│ (urgent prod fix, skips develop) │
└──────────────────────── hotfix/* ──────────────────────────┘
- Topic branches (any name, e.g.
add-tool-get-manual-launches,fix-tms-tool-update-test-case) — day-to-day work, PR intodevelop. develop— integration branch. Every merge triggers a "dev" Docker image build (see §3.2).rc/*— release-candidate branches cut fromdevelopto stabilize a release. Pushing torc/*triggers an RC Docker image build (§3.3).hotfix/*— urgent fixes that need to reach production without waiting for the next normal release cycle; can be branched directly and merged tomain(and should also be merged back intodevelop). Pushing tohotfix/*also triggers the RC-style image build.main— production branch. PRs intomainare only accepted fromdeveloporhotfix/*— this is enforced by CI, not just convention (§2).
.github/workflows/validate-pr-branch.yml runs on every PR targeting main
and fails the check (plus posts an explanatory PR comment) if the source
branch is neither develop nor hotfix/*. If you accidentally open a PR to
main from a random topic branch, close it and re-target/re-branch — don't
try to bypass the check.
.github/workflows/build.yml runs on push/PR to main and develop:
golangci-lint(pinned version — keep in sync withTaskfile.yaml'sGOLANGCI_LINT_VERSION; both currentlyv2.15.0).task test(go test ./...).task app:build(compiles the binary).
.github/workflows/helm-lint.yaml runs on push/PR to main, develop,
rc/**, hotfix/** when helm-charts/** changes — helm lint +
helm template --debug on the chart.
There is no separate "integration test" gate in CI today
(task test:integration is a manual/local step) — run it yourself before
merging changes that touch request/response shaping, auth, or pagination.
All three feed into reportportal/reportportal-mcp-server on the internal
ECR registry via a shared reusable workflow
(reportportal/.github/.github/workflows/build-docker-image.yaml@main, in a
separate org-level repo — not part of this codebase but shared org-wide across ReportPortal
repos).
| Workflow | Trigger | Tag(s) produced |
|---|---|---|
build-dev-image.yml |
push to develop (ignoring .github/**, README.md) |
develop-<run_number>, develop-latest |
build-rc-image.yaml |
push to rc/* or hotfix/* |
<branch>-<run_number> (slashes → dashes), latest; also parses a semver out of the branch name (e.g. rc/1.4.0 → version 1.4.0) via release-mode: true |
build-feature-image.yaml |
PR opened/synced/reopened targeting develop, or manual workflow_dispatch |
<head_ref>-<run_number> (or the manually supplied image-tag) |
These are for testing a branch's Docker image before an official release — they do not touch Docker Hub or create GitHub Releases.
Official releases are manually triggered — there is no automatic "tag on merge to main" flow.
- Make sure
main(or therc/*/hotfix/*branch about to be merged into it) is green: CI build passing,task checksclean locally, Helm lint passing if the chart changed. - Merge the
rc/*(orhotfix/*) branch intomainvia PR (source-branch check in §1.1 applies). - From the GitHub Actions tab, manually run
.github/workflows/release.yml("Release") viaworkflow_dispatch, supplying theversioninput.- Version format: plain SemVer, no
vprefix — check existing tags withgit tag --sort=-creatordate(e.g.1.3.3,1.3.2, ...); match that convention.
- Version format: plain SemVer, no
- The workflow then, in order:
- Checks out full history (
fetch-depth: 0, required by GoReleaser for changelog generation). - Creates and pushes the Git tag for
version— fails fast if the tag already exists (no accidental re-release of the same version). - Sets up Go, QEMU, and Docker Buildx.
- Logs into Docker Hub using
secrets.REGESTRY_USERNAME/secrets.REGESTRY_PASSWORD(note: the secret names have a typo, "REGESTRY" — that's intentional/existing, don't silently rename without updating the secret in repo settings too). - Runs GoReleaser (
.goreleaser.yaml) viagoreleaser/goreleaser-action, which:- Cross-compiles the binary for
linux/darwin/windows×amd64/arm64(CGO_ENABLED=0), embeddingVersion/Commit/Dateintointernal/configvia-ldflags. - Packages archives (
.zipfor Windows, default tarball otherwise) includingLICENSEandREADME.md. - Publishes a GitHub Release with a GitHub-native changelog
(
changelog.use: github-native) and the built archives as assets.
- Cross-compiles the binary for
- Builds and pushes a multi-arch Docker image
(
linux/amd64,linux/arm64) fromrelease.dockerfileto Docker Hub asreportportal/mcp-server:<version>andreportportal/mcp-server:latest, with OCI/Artifact Hub labels (maintainers, source URL, revision, etc.) baked in.
- Checks out full history (
- Don't hand-craft a Git tag and push it yourself expecting a release to
happen — tagging alone does nothing; the
release.ymlworkflow is what drives both the tag creation and the build/publish steps together. If you push a tag out-of-band, the workflow's "tag already exists" guard will block a subsequent run for that version. - Don't bypass the branch-source check to get a hotfix into
mainfaster — use ahotfix/*branch name, which is explicitly allowed. - Don't forget to merge
hotfix/*fixes back intodevelopafter they land onmain, or the fix will be lost on the next regulardevelop→rc/*→maincycle.
- Version is plain SemVer (
MAJOR.MINOR.PATCH, optionally with a pre-release suffix like the historical1.0.0-beta1), no leadingv. - 1.x supports ReportPortal 25.1+ (service-api ≥ 5.14.0), no TMS tools.
- 2.x (in development on
developat the time of writing) adds TMS tools and requires ReportPortal 26.1+ with TMS enabled. When cutting the first 2.x release, double check the README's compatibility section and the "For developers" prerequisites are updated to match (see Architecture limitation #14 re: keeping version-related docs in sync). - The README's top banner explicitly tells readers to check the
mainbranch's README for the "current" tool list, sincedevelop's README may describe in-progress/unreleased functionality — keep that banner and the version-gating notes in the tool tables (e.g. "Available from MCP server version 2.x") accurate when merging TMS-related or other version-gated features.
After a release publishes successfully:
- Verify the GitHub Release page has the expected assets (binaries for all 6 OS/arch combos + checksums) and changelog.
- Verify
docker pull reportportal/mcp-server:<version>and:latestboth resolve to the new image (check the image'sorg.opencontainers.image.revisionlabel matches the release commit SHA). - Smoke-test the new image (
task docker:run, or point a real AI assistant config at it) using the Verifying Your Setup steps in the README. - If the Helm chart's
image.tagdefault needs bumping for this release, updatehelm-charts/reportportal-mcp-server/values.yamlin a follow-up PR. - Merge
mainback intodevelopif the release branch had any last-minute fixes that only landed onmain/rc/*/hotfix/*.