Skip to content

Add examples/showcase: a rich launch reported with pkg/gorp - #30

Open
DzmitryHumianiuk wants to merge 1 commit into
masterfrom
examples/showcase
Open

DzmitryHumianiuk wants to merge 1 commit into
masterfrom
examples/showcase

Conversation

@DzmitryHumianiuk

Copy link
Copy Markdown
Member

Adds examples/showcase, a runnable reference for Go integrations. It reports a deterministic "Payments API" regression with the pkg/gorp reporting client and covers most of what an agent can send to ReportPortal.

What the launch contains

  • Launch:
    • the attribute contract env, build, version, branch, suite, platform, team, trigger;
    • the system attributes agent, os, go, skippedIssue;
    • a Markdown description with a CI link.
  • Structure:
    • two suites with nested TEST containers (up to three levels) and STEP tests;
    • a stable testCaseId that includes the parameter variant, and codeRef;
    • parameters, item attributes (feature, priority, owner, tms_id) and descriptions.
  • Fixtures and steps: BEFORE_SUITE, BEFORE_METHOD and AFTER_METHOD, plus nested steps with hasStats=false.
  • Logs: all six levels, a Markdown log, and PNG, JSON and text attachments, sent as multipart batches.
  • Retries: two failed attempts finished as No Defect, then a pass, chained with retryOf, which points at the previous attempt.
  • Outcomes:
    • skipped items, both No Defect and To Investigate;
    • Product Bug, Automation Bug and System Issue on finish, with comments;
    • history across builds 101–103: a regression appears, and a fixed bug comes back.
  • Reruns (rerun + rerunOf):
    • the failed tests are reported again and become retries of the old items, and the server recomputes the statistics;
    • a rerun finishes the launch without a status, as the Java agents do, so the server computes it from all items.

See examples/showcase/README.md for the run commands.

Notes

Verified

  • go build ./..., go vet ./..., go test ./..., golangci-lint v2.15.0 (0 issues).
  • Run against ReportPortal 6.0.0: three builds and two reruns of the third.
    • After the reruns, the launch went from 3 failed to 1 failed, and the rerun items show as retries of the original failures.
    • The launch status is still FAILED, because one failure was not fixed.

🤖 Generated with Claude Code

A runnable reference for Go integrations. It reports a deterministic
"Payments API" regression with the reporting client:

- launch attribute contract, system attributes and a Markdown
  description with a CI link;
- suites, nested TEST containers and STEP tests with stable testCaseId
  (parameter variant included) and codeRef, parameters, item attributes
  and descriptions;
- BEFORE_SUITE / BEFORE_METHOD / AFTER_METHOD fixtures and nested steps
  without statistics;
- every log level, a Markdown log and PNG/JSON/text attachments in
  multipart batches;
- retries chained with retryOf, failed attempts finished as No Defect;
- skipped items, Product Bug / Automation Bug / System Issue on finish;
- history across builds and launch reruns (rerun + rerunOf), finished
  without a status so the server computes it.

Verified against ReportPortal 6.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants