Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
07a1e89
ReportPortal reporter for Ginkgo v2 built on pkg/gorp's ReportingClient
That-geeky-shree Oct 10, 2026
95b4d82
adds integration-guide.html
That-geeky-shree Oct 10, 2026
6a64a3f
ginkgo: require released goRP v5.2.2 instead of a local replace
That-geeky-shree Nov 24, 2026
5a89d30
ginkgo: fix reporting correctness, discovery, config and robustness
That-geeky-shree Nov 24, 2026
312cb65
ginkgo: document configuration, discovery and reporting behaviour
That-geeky-shree Nov 24, 2026
75ac547
ginkgo: fix lint findings
That-geeky-shree Nov 24, 2026
f8b153e
ci: test and lint pkg/ginkgo
That-geeky-shree Nov 24, 2026
f79ab09
ginkgo: add retries, signal handling, robust wrapper, tests
That-geeky-shree Nov 26, 2026
4cff4d6
ginkgo: address third review round (retries, skips, finalization)
That-geeky-shree Nov 27, 2026
07ad5c4
ginkgo: raise test coverage above 85 percent
That-geeky-shree Nov 27, 2026
923718e
ginkgo: fix signal, finalization and master-build review items
That-geeky-shree Nov 28, 2026
0f6fafa
Merge PR #15 (923718e) into the session branch for the Ginkgo migration
ghDmitry Nov 28, 2026
7377b08
Add Launch.AbortItems: abort without the launch finish
ghDmitry Nov 28, 2026
15959b7
ginkgo: report through gorp.Session
ghDmitry Nov 28, 2026
12b984b
Merge feat/session into feat/session-ginkgo
ghDmitry Nov 28, 2026
3548ead
ginkgo: follow the session's abort rules
ghDmitry Nov 28, 2026
8055c7e
Merge feat/session into feat/session-ginkgo
ghDmitry Nov 28, 2026
fff248d
ginkgo: reuse a container start that outlived its wait; bound waits b…
ghDmitry Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,17 @@ jobs:
with:
# Keep in sync with the golangci-lint version pinned in Taskfile.yml (GOLANG_CI var).
version: v2.15.0
# pkg/ginkgo is a separate Go module, so the steps above do not cover it.
- name: golangci-lint (pkg/ginkgo)
uses: golangci/golangci-lint-action@v8
with:
version: v2.15.0
working-directory: pkg/ginkgo
- name: go.mod and go.sum are tidy
run: go mod tidy -diff
- name: go.mod and go.sum are tidy (pkg/ginkgo)
run: go mod tidy -diff
working-directory: pkg/ginkgo
- name: govulncheck
run: go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./...

Expand All @@ -54,3 +63,19 @@ jobs:
run: go vet ./...
- name: Test
run: go test -race -cover ./...
# pkg/ginkgo is a separate Go module. Its tests start worker processes and use
# TMPDIR, so they are not run on Windows yet.
- name: Build (pkg/ginkgo)
if: runner.os != 'Windows'
run: task ginkgo:build
- name: Vet (pkg/ginkgo)
if: runner.os != 'Windows'
run: task ginkgo:vet
- name: Test (pkg/ginkgo)
if: runner.os != 'Windows'
run: task ginkgo:test
# pkg/ginkgo requires a released goRP, so the steps above never compile it against the
# code in this repository. This one does, through a temporary go.work.
- name: Build and test (pkg/ginkgo) against this repository's pkg/gorp
if: runner.os != 'Windows'
run: task ginkgo:workspace
53 changes: 53 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ vars:
BINARY_DIR: bin
BUILD_INFO_LDFLAGS: -ldflags "-w -X main.date={{.BUILD_DATE}} -X main.version={{.BUILD_VERSION}}"
GOLANG_CI: docker run --rm -v "{{.TASKFILE_DIR}}:/app" -w /app golangci/golangci-lint:v2.15.0 golangci-lint
# pkg/ginkgo is a separate Go module, so the root `./...` patterns do not cover it.
GINKGO_DIR: pkg/ginkgo
GOLANG_CI_GINKGO: docker run --rm -v "{{.TASKFILE_DIR}}:/app" -w /app/{{.GINKGO_DIR}} golangci/golangci-lint:v2.15.0 golangci-lint
OUTPUT_DIR: "pkg/openapi"
# Codegen output is written here first and swapped into OUTPUT_DIR only on success.
GENERATED_DIR: "build/openapi"
Expand All @@ -27,6 +30,7 @@ tasks:
desc: Run Go tests with coverage
cmds:
- "{{.GO}} test -cover ./..."
- task: ginkgo:test

e2e:
desc: "Run end-to-end tests against a real ReportPortal (credentials from ./.gorp or GORP_CONFIG, not part of CI)"
Expand All @@ -37,17 +41,66 @@ tasks:
desc: Run go vet
cmds:
- "{{.GO}} vet ./..."
- task: ginkgo:vet

lint:
desc: Run golangci-lint
cmds:
- "{{.GOLANG_CI}} run ./..."
- task: ginkgo:lint

fmt:
desc: Format code with golangci-lint
cmds:
- "{{.GO}} fmt ./..."
- "{{.GOLANG_CI}} fmt ./..."
- task: ginkgo:fmt

ginkgo:test:
desc: Run the pkg/ginkgo module tests (separate Go module) with the race detector
dir: "{{.GINKGO_DIR}}"
cmds:
- "{{.GO}} test -race -cover ./..."

ginkgo:vet:
desc: Vet the pkg/ginkgo module, including the sanity examples
dir: "{{.GINKGO_DIR}}"
cmds:
- "{{.GO}} vet ./..."
- "{{.GO}} vet -tags sanity ./examples/..."

ginkgo:build:
desc: Build the ginkgo-rp wrapper and the agent library
dir: "{{.GINKGO_DIR}}"
cmds:
- "{{.GO}} build ./..."

ginkgo:workspace:
desc: >-
Build, vet and test pkg/ginkgo against this repository's own pkg/gorp (through a temporary
go.work), not against the released goRP it requires. Catches API drift on master early.
dir: "{{.GINKGO_DIR}}"
cmds:
- cmd: |
set -e
work="$(mktemp -d)"
(cd "$work" && {{.GO}} work init "{{.ROOT_DIR}}" "{{.ROOT_DIR}}/{{.GINKGO_DIR}}")
export GOWORK="$work/go.work"
{{.GO}} build ./...
{{.GO}} vet ./...
{{.GO}} test -race -cover ./...

ginkgo:lint:
desc: Run golangci-lint on the pkg/ginkgo module
cmds:
- "{{.GOLANG_CI_GINKGO}} run ./..."

ginkgo:fmt:
desc: Format the pkg/ginkgo module
dir: "{{.GINKGO_DIR}}"
cmds:
- "{{.GO}} fmt ./..."
- "{{.GOLANG_CI_GINKGO}} fmt ./..."

build:
desc: Build the Go binary
Expand Down
3 changes: 3 additions & 0 deletions pkg/ginkgo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# local ReportPortal credentials and agent log; never commit
reportportal.properties
rp-agent.log
Loading