Skip to content

ci(go-basic-tests): run go test -race unconditionally without requiring CGO_ENABLED=1 - #92

Merged
matthyx merged 1 commit into
mainfrom
fix/test-race-unconditional
Sep 14, 2026
Merged

matthyx merged 1 commit into
mainfrom
fix/test-race-unconditional

Conversation

@matthyx

@matthyx matthyx commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Description

Ref: kubescape/kubevuln#852 (comment)

  • Removes the if: ${{ env.CGO_ENABLED == 1 }} condition on the Test race conditions step in .github/workflows/go-basic-tests.yaml.
  • Removes the redundant Test without race conditions step so that Environment-Test runs go test -v -race unconditionally.
  • Drops CGO_ENABLED from the Environment-Test job env so it does not override default CGO settings when running -race.

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5f0dface-2075-488d-a02d-5f94980dda69


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: failure
  • Vulnerabilities scan: failure
  • Unit test: success
  • Go linting: failure

1 similar comment
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: failure
  • Vulnerabilities scan: failure
  • Unit test: success
  • Go linting: failure

…ng CGO_ENABLED=1

Drop the 'if: env.CGO_ENABLED == 1' condition and remove the redundant
race-free test step so that Environment-Test always runs race detection.

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@matthyx
matthyx force-pushed the fix/test-race-unconditional branch from 9fbbbf3 to fbca76e Compare September 14, 2026 16:26
@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: failure
  • Vulnerabilities scan: failure
  • Unit test: success
  • Go linting: failure

1 similar comment
@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: failure
  • Credentials scan: failure
  • Vulnerabilities scan: failure
  • Unit test: success
  • Go linting: failure

@matthyx
matthyx merged commit 68b30a1 into main Sep 14, 2026
12 checks passed
@matthyx
matthyx deleted the fix/test-race-unconditional branch September 14, 2026 16:36
@matthyx matthyx moved this from WIP to To Archive in KS PRs tracking Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant