Skip to content

sdks/go: unit tests reach real AWS S3 and fail without credentials #172

Closed

Description

@scttfrdmn

sdks/go/objectfs/client_test.go calls New() against bucket objectfs-test-bucket, which triggers a live HeadBucket. Three tests fail under plain go test -race -short ./...:

--- FAIL: TestNew_WithDefaults
    client_test.go:256: New: ... HeadBucket ... StatusCode: 404 ... NotFound
--- FAIL: TestNew_WithRegion       (client_test.go:269)
--- FAIL: TestClose_NotMounted     (client_test.go:281)

These are not integration tests — they carry no //go:build integration tag and run in -short mode, so the default developer and CI invocation fails for a reason unrelated to the code under test. A suite that fails by default trains everyone to ignore its output, which is how the seam defects in the v0.10.0 audit went unnoticed alongside 32,680 lines of passing tests.

Fix: point them at a substrate-backed in-process S3 endpoint (see the harness work in this milestone), or tag them integration and gate on AWS_PROFILE=aws. Do not leave them as untagged tests that need network and credentials.

Activity

  1. added
    type: testing
    priority: high
    area: sdk
    on Jul 30, 2026
  2. scttfrdmn commented on Aug 2, 2026

    @scttfrdmn
    OwnerAuthor

    Fixed in v0.10.1. The SDK's tests skip rather than fail when no credentials are present, so go test ./... in a clean checkout no longer depends on an AWS account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: sdkpriority: hightype: testing

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions