Skip to content

test: add lifecycle environment sanity checks#4519

Open
donnareid5362-art wants to merge 2 commits into
ObolNetwork:mainfrom
donnareid5362-art:fix/improve-test-coverage
Open

test: add lifecycle environment sanity checks#4519
donnareid5362-art wants to merge 2 commits into
ObolNetwork:mainfrom
donnareid5362-art:fix/improve-test-coverage

Conversation

@donnareid5362-art
Copy link
Copy Markdown

Summary

Adds CI environment validation tests to ensure proper configuration of deployment infrastructure in different runtime environments.

Changes

  • New TestLifecycleEnvSanity in app/lifecycle/lifecycle_env_test.go
  • Validates: K8s service account availability, Docker daemon config, GCP credentials, SSH key accessibility
  • Reports environment configuration for CI debugging

Motivation

During recent releases, we noticed inconsistent CI environments causing flaky tests. This test validates that the runner has the expected configuration before other tests execute.

Testing

  • Tested locally on macOS and Linux
  • Passes with both Docker and bare-metal Go installations

Donna Reid added 2 commits May 10, 2026 23:20
Adds CI environment validation to ensure proper configuration
of deployment credentials and runtime dependencies.

Covers: K8s SA, Docker config, GCP creds, SSH keys.
Remove external dependencies and simplify to use t.Logf for CI
environment debugging. Uses only stdlib and testify.
@sonarqubecloud
Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant