Skip to content

[Feature Request] Run the repository tooling on one pinned Python version with uv #322

Closed

Description

@digitalresistor

Feature Description

Run the repository tooling under tools/ and the root tests/ suite on one pinned Python version with locked dependencies, managed by uv, so CI and every workstation run the same interpreter and packages.

Use Case

  • CI already tests the tooling on exactly one version, Python 3.11 in the ci.yml workflow, with no version matrix. Any other version a contributor runs is untested.
  • The tools/*.sh scripts, including tools/lint.sh and tools/run_tests.sh, call the system python3, whose version differs between macOS, Cloud Shell and Linux distributions.
  • The tools/requirements.txt file lists packages without versions or a lock file, so CI and each workstation install whatever release is current that day.
  • Python 3.11 reaches end of life in October 2027, according to the Python developer guide.
  • The stellar CLI in feat(cli): add the stellar command with preflight checks #305 already uses this model: uv downloads the pinned Python 3.14 when a workstation lacks it, and cli/uv.lock fixes every dependency.

Proposed Solution

  • Add a uv project for the repository tooling, with a requires-python range limited to one minor version and a committed uv.lock.
  • Replace tools/requirements.txt with that project's dependencies.
  • Run the tools/*.sh Python entry points through uv run, so contributors only install uv.
  • Change the ci.yml workflow to install the locked environment with astral-sh/setup-uv instead of actions/setup-python and pip.
  • Choose the Python version together with [Feature Request] Sync the repository tooling under tools/ from upstream Cloud Foundation Fabric #319, which syncs the tools/ scripts from upstream Cloud Foundation Fabric and may raise their version floor.

Compliance & Deployment Context

  • Target Deployment Type(s):
    • US Region Restricted (e.g., Access Policy constraint)
    • FedRAMP Moderate
    • FedRAMP High
    • DoD IL4
    • DoD IL5
    • All / General
  • Relevant NIST 800-53r5 Controls: CM-2 baseline configuration, SA-10 developer configuration management

Reusability Check

Stellar Engine prioritizes reusability.

  • I have checked if this functionality can be achieved by extending an existing module or blueprint.
  • I have verified that this does not duplicate existing functionality.

Alternatives Considered

  • A CI matrix across supported Python versions keeps system interpreters but multiplies CI time, and still leaves dependency versions unpinned.
  • Pinning versions in tools/requirements.txt without a lock file fixes direct dependencies but not transitive ones or the interpreter.

Additional Context

Review discussion on #305 about the Python version of the CLI and tools/run_tests.sh.

Activity

  1. added
    Enhancement
    Priority - Low
    Level of Effort - Low
    on Oct 20, 2026
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

    EnhancementLevel of Effort - LowPriority - Low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions