Skip to content

Support -race option for run-bdd-tests.sh/go #2863

@chengxilo

Description

@chengxilo

Description

Currently, ./scripts/run-bdd-tests.sh go only runs standard tests. I propose adding support for the -race flag to detect data race in the Go SDK.

Component

None

Proposed solution

Regarding the bdd test script, we should update run-bdd-tests.sh so it can handle a -race argument:

  • Target Command: ./scripts/run-bdd-tests.sh go -race
  • Internal Execution: Should run go test -v -race -cpu 1,4 ./... in bdd/go/Dockerfile

In workflow, we should update the matrix to run both versions in parallel for Go BDD test:

  • Job 1: go
  • Job 2: go -race

Alternatives considered

No response

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