Skip to content

pkg/openapi: v5.2.2 type names removed on master while module path stays /v5; v6.0.0 tag unusable for Go modules #32

Backlog

Description

@DzmitryHumianiuk

Problem

master is not source-compatible with v5.2.2, but the module path is still github.com/reportportal/goRP/v5, and the latest tag v6.0.0 can't be used by Go modules.

  1. Removed type names. After the OpenAPI regeneration (3d526db, 416aa9b), pkg/openapi uses the long generated names (ComEpamReportportal...). pkg/openapi/compat.go keeps short aliases for about 50 of them. 137 of the 186 model type names that v5.2.2 exported are gone, for example Issue, ParameterResource, TestItemResource, LogResource, UpdateLaunchRQ. Code written against v5.2.2 stops compiling on the next v5 release. The Ginkgo agent in Add Ginkgo v2 agent and ginkgo-rp wrapper (pkg/ginkgo) #15 is one example: it pins v5.2.2, and against master it fails with undefined: openapi.ParameterResource and undefined: openapi.Issue.
  2. v6.0.0 doesn't work as a Go module version. go.mod still declares /v5, so:
    $ go get github.com/reportportal/goRP/v5@v6.0.0
    go: github.com/reportportal/goRP/v5@v6.0.0: invalid version: module path includes a major version suffix, so major version must match
    
    The proxy lists v5 versions up to v5.2.2 only. The README's go install github.com/reportportal/goRP/v5@latest therefore installs 5.2.2, not the 6.0.0 binaries from the GitHub release.

Options

  • Stay on v5 (proposed): restore aliases for every v5.2.2 model name that maps to exactly one new type with the same meaning, and release as v5.3.0. A PR with this follows.
  • Go to v6: if the break is intended, change the module path to github.com/reportportal/goRP/v6 (go.mod and every import) and tag v6.0.1, since v6.0.0 already points at a /v5 commit.

Whatever is chosen, the README install line and the v6.0.0 tag need a decision from maintainers.

Activity

  1. DzmitryHumianiuk commented on Nov 27, 2026

    @DzmitryHumianiuk
    MemberAuthor

    Follow-up after a deeper review. This needs a maintainer decision before the next tag.

    Recommendation: move to /v6.

    • The README (line 560) already says master targets ReportPortal 26.1+ and that older servers should stay on v5.2.x. That is a major-version statement.
    • Part of the break can't be undone in v5 because the server API changed. After pkg/openapi: restore v5.2.2 model type names as aliases #34, 18 model names still have no counterpart and 3 changed their fields. 19 Api*Request types and 3 API services are gone. 90 request-builder methods were renamed. 156 of 181 Nullable* types are gone, and New* constructors are missing for the restored names.
    • Other breaking changes are pending: openapi: decode ErrorRS.errorCode as an integer #33 changes ErrorRS.errorCode from string to int64, and report test2json: report tests as STEPs, handle skips, send system attributes #29 changes SaveLog to multipart.
    • Don't move or reuse the v6.0.0 tag. Make the first resolvable tag v6.0.1 (or v6.1.0), and add a note to the v6.0.0 release about it. There is also a second v6.0.0 release in Draft (2026-11-25).
    • Until then, go get github.com/reportportal/goRP/v5@master works (pseudo-version v5.2.3-0.…-517efe6b8706).

    Names (decide before the first v6 tag, because that tag freezes them).

    The Ginkgo agent in #15 depends on this decision: as a nested module it needs a goRP tag that Go can resolve, and the type names to compile against master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions