You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pkg/openapi: v5.2.2 type names removed on master while module path stays /v5; v6.0.0 tag unusable for Go modules #32
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.
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.
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.
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.
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).
Option B: rename the schema keys to short names as the last stage of scripts/openapi-preprocess.jq. The generator would then emit Issue, NewIssue, NullableIssue and the request-builder methods itself. Applying pkg/openapi: restore v5.2.2 model type names as aliases #34's naming rule to all 322 schema keys gives 322 distinct names, and 147 of the 170 v5.2.2 struct names come back directly.
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.
Activity
DzmitryHumianiuk commentedon Nov 27, 2026
Follow-up after a deeper review. This needs a maintainer decision before the next tag.
Recommendation: move to
/v6.mastertargets ReportPortal 26.1+ and that older servers should stay on v5.2.x. That is a major-version statement.Api*Requesttypes and 3 API services are gone. 90 request-builder methods were renamed. 156 of 181Nullable*types are gone, andNew*constructors are missing for the restored names.ErrorRS.errorCodefrom string to int64, and report test2json: report tests as STEPs, handle skips, send system attributes #29 changesSaveLogto multipart.v6.0.0tag. Make the first resolvable tagv6.0.1(orv6.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).go get github.com/reportportal/goRP/v5@masterworks (pseudo-versionv5.2.3-0.…-517efe6b8706).Names (decide before the first v6 tag, because that tag freezes them).
scripts/openapi-preprocess.jq. The generator would then emitIssue,NewIssue,NullableIssueand the request-builder methods itself. Applying pkg/openapi: restore v5.2.2 model type names as aliases #34's naming rule to all 322 schema keys gives 322 distinct names, and 147 of the 170 v5.2.2 struct names come back directly.ComEpam…names are needed, becausereportportal/reportportal-mcp-serveralready uses them through a master pseudo-version, as do report test2json: report tests as STEPs, handle skips, send system attributes #29, Add examples/showcase: a rich launch reported with pkg/gorp #30 and openapi: decode ErrorRS.errorCode as an integer #33.AssignedProject,ProjectResourceandSearchCriteriaRQcome back by name with changed JSON fields; pkg/openapi: restore v5.2.2 model type names as aliases #34 deliberately doesn't alias 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.