Skip to content

fix(k8s): resolve cluster secrets fixture in installed package #6948

Done

Description

@dan-petty

Problem Description

src/devops_cli/k8s/cluster_secrets.py defines _FIXTURE_SECRETS_FILE = Path(__file__).resolve().parents[3] / 'tests' / 'fixtures' / 'cluster-secrets.toml'. When devops_cli runs from an installed package (such as in /app/.venv inside the Service test image devops-cli-service:local), parents[3] points to the Python directory rather than the repository root. _FIXTURE_SECRETS_FILE does not exist, so load_cluster_secrets_table() falls back to an empty environment secret list (returning only 10 product secrets instead of 23). This causes all cluster Secret and k8s tests to fail in Service Image Tests (shards 1-6).

Expected vs Actual Behavior

Expected: load_cluster_secrets_table() resolves tests/fixtures/cluster-secrets.toml from the repository root when running tests inside the service container.
Actual: load_cluster_secrets_table() fails to find the fixture and returns an incomplete table, breaking all PR checks in Service Image Tests.

Activity

  1. added
    type/bug
    scope/k8s
    priority/p1-high
    owner/agent
    status/in-progress
    on Nov 24, 2026
  2. added 3 commits that reference this issue on Nov 24, 2026
    b418600
    0c4699c
    9b8bbb9
  3. added
    status/in-review
    and removed
    status/in-progress
    on Nov 24, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 24, 2026
  5. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-24 13:45 UTC

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

    priority/p1-highscope/k8stype/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions