Repository navigation
Closed
Labels
EnhancementNew feature or requestLevel of Effort - LowQuick, well-defined tasks with no unknowns; takes a few hours up to one day to completePriority - LowMinor polish, typo fixes, or technical debt; nice to have; pick up when time permits
Description
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.ymlworkflow, with no version matrix. Any other version a contributor runs is untested. - The
tools/*.shscripts, includingtools/lint.shandtools/run_tests.sh, call the systempython3, whose version differs between macOS, Cloud Shell and Linux distributions. - The
tools/requirements.txtfile 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
stellarCLI 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, andcli/uv.lockfixes every dependency.
Proposed Solution
- Add a uv project for the repository tooling, with a
requires-pythonrange limited to one minor version and a committeduv.lock. - Replace
tools/requirements.txtwith that project's dependencies. - Run the
tools/*.shPython entry points throughuv run, so contributors only install uv. - Change the
ci.ymlworkflow to install the locked environment withastral-sh/setup-uvinstead ofactions/setup-pythonand 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.txtwithout 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.
Metadata
Metadata
Assignees
Labels
EnhancementNew feature or requestLevel of Effort - LowQuick, well-defined tasks with no unknowns; takes a few hours up to one day to completePriority - LowMinor polish, typo fixes, or technical debt; nice to have; pick up when time permits
Activity