Skip to content

Add //go:build integration tag to legacy *_integration_test.go files #337

Description

@Cre-eD

docs/TESTING.md documents that existing integration tests should carry a build tag so they don't run on the default go test ./...:

Existing integration files will be moved under the build tag in a future tidy-up PR; the change is mechanical (add 2 lines at the top).

Currently pkg/security/executor_integration_test.go has no build tag, so it runs on every go test ./....

Task: add the build constraint at the very top of the file (above the package clause, after the existing SPDX/copyright header), followed by a blank line:

//go:build integration

Why it's a good first issue: purely mechanical, fully documented in TESTING.md, easy to verify.

Acceptance: go test ./pkg/security/ no longer compiles/runs the integration file by default; go test -tags integration ./pkg/security/ still does.

Scope: small (1–2 lines + a blank line).

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers: small, well-scoped, low-context

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions