Repository navigation
build: support uv-based edx-repo-health layout in repo health job - #263
salman2013 wants to merge 2 commits into
Conversation
Set up uv so the scripts can install dependencies from uv.lock, and detect whether edx-repo-health uses the new src/scripts layout or the legacy scripts/ + requirements/ layout so older EDX_REPO_HEALTH_BRANCH refs keep working. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Thanks for the pull request, @salman2013! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
The legacy edx-repo-health layout never runs uv, so the uv cache directory is never created and setup-uv's post-job cache save fails the run. Disable the cache until the legacy layout is no longer supported. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Description
edx-repo-health is moving to uv: its scripts moved from
scripts/tosrc/scripts/, and therequirements/directory is being dropped in favour ofuv.lock. This updates the reusable repo health job to work with both layouts.astral-sh/setup-uvstep (pinned to a commit SHA) so the scripts can install edx-repo-health's dependencies fromuv.lockwithuv export.enable-cache: false). The legacy edx-repo-health scripts never run uv, so the uv cache directory is never created and setup-uv's post-job cache save fails the run.EDX_REPO_HEALTH_SCRIPTS. It points tosrc/scriptswhen that directory exists and falls back toscriptsotherwise.requirements/only when that directory exists.${EDX_REPO_HEALTH_SCRIPTS}.Workflows that pass an older
EDX_REPO_HEALTH_BRANCHref keep using the legacy layout.Follow-up plan
PR for migrating the edx-repo-health repository to uv: openedx/edx-repo-health#730
Once edx-repo-health is fully migrated to uv and no callers pass an
EDX_REPO_HEALTH_BRANCHref that uses the legacy layout:requirements/.edx-repo-health/src/scripts/and drop theEDX_REPO_HEALTH_SCRIPTSvariable.enable-cache: falsefrom the setup-uv step (see the TODO) so uv caching can be used again.🤖 Generated with Claude Code