Skip to content

test: enable -race flag for running unit tests in CI #2558

@lucasrod16

Description

@lucasrod16

Steps to reproduce

  1. On the main branch of the repository, run all of the unit tests with the -race flag:
go test -failfast -v -race -coverprofile=coverage.out -covermode=atomic $(go list ./... | grep -v '^github.com/defenseunicorns/zarf/src/test' | grep -v 'github.com/defenseunicorns/zarf/src/extensions/bigbang/test')

Expected result

All unit tests pass

Actual Result

Unit tests fail due to data races

Visual Proof (screenshots, videos, text, etc)

data-race

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions