Repository navigation
Add Ginkgo v2 agent and ginkgo-rp wrapper (pkg/ginkgo) - #15
That-geeky-shree wants to merge 11 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for the contribution — the overall design (wrapper creates/finishes the launch, workers report via ReportBeforeEach/ReportAfterEach, file-based coordination for Reporting correctness
Configuration Robustness Tests / CI / release Smaller notes: string-matching in |
The replace directive broke go install ...@latest.
Address review feedback on reportportal#15: - Stable testCaseId, codeRef and uniqueId so History and retries work - Real timestamps for By() steps, logs and attachments - Per-step status instead of the spec's final status - Send GinkgoWriter and stdout output to ReportPortal - Finish Describe/Context containers explicitly with the right status - Report BeforeSuite/AfterSuite failures as their own items - Env-var configuration, launch attributes, description and mode, and Ginkgo labels as item attributes - Fix temp-file leaks and per-worker cleanup - Suite discovery follows Ginkgo (any *_test.go calling RunSpecs, paths outside cwd), and a worker whose package was not registered logs an ERROR - Never kill the test process from library code - Skip only the agent's own rpagent package instead of any path containing the word - Mark suites that received no specs as skipped, not failed - Tests for container cache locking (including across processes) and hierarchy building
4f0d47f to
312cb65
Compare
|
@DzmitryHumianiuk Thanks for the review. All 12 points are addressed and pushed, checked against a local ReportPortal (including a
The |
|
Thanks for the quick turnaround — I went through the new head. All 12 points are addressed in code, and build, vet and This is a large addition to an official client, so I'd like it to be complete before merge rather than followed up later. That includes the two items you proposed to defer. Previously deferred — please include in this PR
New findings on this pass
Questions
|
|
@DzmitryHumianiuk Thanks for the review again. All pointers and both deferred items are now in the PR.
Your questions
|
|
Thanks, this is a big step forward. I reviewed
I also ran it against a live ReportPortal (API 6.0.0) in three modes: sequential, What works on a live instance
Where the agent stands against the Java agents I compared the agent with client-java + agent-java-testng and with the ReportPortal server code. Legend: ✅ done · ❌ must fix in this PR (numbered items below) · ➡️ follow-up PR.
The items below still need fixing in this PR. 1. A failure in The README premise is also wrong: "Ginkgo does not keep the failure message of an earlier attempt". It does. In How to fix:
2. How to fix: in 3. Please pass 4. Every spec gets a 5. Finalization cannot be interrupted and has no overall deadline How to fix:
6. Skipped and pending specs become "To Investigate" (confirmed live) The agent also starts an item for every spec in How to fix:
7. Pin
8. The launch link is never printed on ReportPortal 6.x 9. README: per-attempt stdout under 10. README wording on discovery
The agent's behaviour is reasonable. Please just describe it as it is, and mention the edge case: a package whose Ginkgo files are all excluded by tags is still picked up by Ginkgo but is not registered in ReportPortal. 11. Follow-up: job control with the separate process group Squashing and rewording the history after the review is fine. Please also make sure CI passes on the new head once it is approved to run. |
|
@DzmitryHumianiuk, Thanks for the live run and the detailed review. All 11 items are fixed and pushed (two new commits on top of f79ab09). I Build, vet,
Also tested against the real instance:
Left for a follow-up, as in your java-testNg vs ginkgo table: |
|
Thanks, this round closes almost everything. I reviewed
All 11 items are fixed. A few things are left, mostly in the new signal and finalization code. Please fix all of them, including the minor ones, so the next round can be the last:
I'd like all of the above fixed in this PR. I also re-ran all our goRP examples together with this build (master + #29 + #30 + this PR): the results match the earlier runs, except one expected change: To Investigate drops by one because pending specs are now NOT_ISSUE. The follow-up list in your comment looks right to me. |
|
Thanks @DzmitryHumianiuk. All the points are fixed and pushed. I tested them on ReportPortal 6.0.0, on the released goRP v5.2.2 and, through a
I'll squash and reword the history once you confirm there are no more changes. |
|
Thanks, I reviewed What I ran:
Verified fixed:
Please fix the following, then I think we're done:
After these, please squash and reword as you suggested. We're close to merging. Next on our side is a shared reporting session in |
|
Two notes while you work on the items from my last review. Neither one adds to that list.
|
Adds a ReportPortal agent for Ginkgo v2, as discussed in reportportal/reportportal#2706.
ginkgo-rpwrapper creates and finalizes the launch; works with-rand-p.pkg/gorp'sReportingClient. Lives in its own Go module (pkg/ginkgo), so goRP's maingo.modis unchanged.pkg/ginkgo/examples, behind thesanitybuild tag.Tested: build, vet, race tests and repo lint config pass. Ran the examples in parallel against a local ReportPortal 5.15.
Open points:
pkg/ginkgo/go.modhas a temporaryreplaceto../..; it needs removing after a goRP release.task test/task lintdon't cover this module. Happy to add CI steps or move the code if you prefer.