This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://redirect.github.com/astral-sh/setup-uv) | action | minor | `v6.4.3` -> `v6.6.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v6.6.0`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.6.0): 🌈 Support for .tools-versions [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.5.0...v6.6.0) ##### Changes This release adds support for [asdf](https://asdf-vm.com/) `.tool-versions` in the `version-file` input ##### 🐛 Bug fixes - Add log message before long API calls to GitHub [@​eifinger](https://redirect.github.com/eifinger) ([#​530](https://redirect.github.com/astral-sh/setup-uv/issues/530)) ##### 🚀 Enhancements - Add support for .tools-versions [@​eifinger](https://redirect.github.com/eifinger) ([#​531](https://redirect.github.com/astral-sh/setup-uv/issues/531)) ##### 🧰 Maintenance - Bump dependencies [@​eifinger](https://redirect.github.com/eifinger) ([#​532](https://redirect.github.com/astral-sh/setup-uv/issues/532)) - chore: update known versions for 0.8.12 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​529](https://redirect.github.com/astral-sh/setup-uv/issues/529)) - chore: update known versions for 0.8.11 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​526](https://redirect.github.com/astral-sh/setup-uv/issues/526)) - chore: update known versions for 0.8.10 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​525](https://redirect.github.com/astral-sh/setup-uv/issues/525)) ### [`v6.5.0`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.5.0): 🌈 Better error messages, bug fixes and copilot agent settings [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.4.3...v6.5.0) ##### Changes This release brings better error messages in case the GitHub API is impacted, fixes a few bugs and allows to disable [problem matchers](https://redirect.github.com/actions/toolkit/blob/main/docs/problem-matchers.md) for better use in Copilot Agent workspaces. ##### 🐛 Bug fixes - Improve error messages on GitHub API errors [@​eifinger](https://redirect.github.com/eifinger) ([#​518](https://redirect.github.com/astral-sh/setup-uv/issues/518)) - Ignore backslashes and whitespace in requirements [@​axm2](https://redirect.github.com/axm2) ([#​501](https://redirect.github.com/astral-sh/setup-uv/issues/501)) ##### 🚀 Enhancements - Add input add-problem-matchers [@​eifinger](https://redirect.github.com/eifinger) ([#​517](https://redirect.github.com/astral-sh/setup-uv/issues/517)) ##### 🧰 Maintenance - chore: update known versions for 0.8.9 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​512](https://redirect.github.com/astral-sh/setup-uv/issues/512)) - chore: update known versions for 0.8.6-0.8.8 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​510](https://redirect.github.com/astral-sh/setup-uv/issues/510)) - chore: update known versions for 0.8.5 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​509](https://redirect.github.com/astral-sh/setup-uv/issues/509)) - chore: update known versions for 0.8.4 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​505](https://redirect.github.com/astral-sh/setup-uv/issues/505)) - chore: update known versions for 0.8.3 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​502](https://redirect.github.com/astral-sh/setup-uv/issues/502)) ##### 📚 Documentation - add note on caching to read disable-cache-pruning [@​eifinger](https://redirect.github.com/eifinger) ([#​506](https://redirect.github.com/astral-sh/setup-uv/issues/506)) ##### ⬆️ Dependency updates - Bump actions/checkout from 4 to 5 @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) ([#​514](https://redirect.github.com/astral-sh/setup-uv/issues/514)) - bump dependencies [@​eifinger](https://redirect.github.com/eifinger) ([#​516](https://redirect.github.com/astral-sh/setup-uv/issues/516)) - Bump biome to v2 [@​eifinger](https://redirect.github.com/eifinger) ([#​515](https://redirect.github.com/astral-sh/setup-uv/issues/515)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/astral-sh/ruff). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi43IiwidXBkYXRlZEluVmVyIjoiNDEuODIuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
139 lines
4.5 KiB
YAML
139 lines
4.5 KiB
YAML
name: ty ecosystem-analyzer
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
types: [labeled]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 0
|
|
CARGO_NET_RETRY: 10
|
|
CARGO_TERM_COLOR: always
|
|
RUSTUP_MAX_RETRIES: 10
|
|
RUST_BACKTRACE: 1
|
|
REF_NAME: ${{ github.ref_name }}
|
|
CF_API_TOKEN_EXISTS: ${{ secrets.CF_API_TOKEN != '' }}
|
|
|
|
jobs:
|
|
ty-ecosystem-analyzer:
|
|
name: Compute diagnostic diff
|
|
runs-on: depot-ubuntu-22.04-32
|
|
timeout-minutes: 20
|
|
if: contains(github.event.label.name, 'ecosystem-analyzer')
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
path: ruff
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Install the latest version of uv
|
|
uses: astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0
|
|
|
|
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
|
|
with:
|
|
workspaces: "ruff"
|
|
|
|
- name: Install Rust toolchain
|
|
run: rustup show
|
|
|
|
- name: Compute diagnostic diff
|
|
shell: bash
|
|
run: |
|
|
cd ruff
|
|
|
|
echo "Enabling configuration overloads (see .github/mypy-primer-ty.toml)"
|
|
mkdir -p ~/.config/ty
|
|
cp .github/mypy-primer-ty.toml ~/.config/ty/ty.toml
|
|
|
|
echo "new commit"
|
|
git checkout -b new_commit "$GITHUB_SHA"
|
|
git rev-list --format=%s --max-count=1 new_commit
|
|
cp crates/ty_python_semantic/resources/primer/good.txt projects_new.txt
|
|
|
|
echo "old commit (merge base)"
|
|
MERGE_BASE="$(git merge-base "$GITHUB_SHA" "origin/$GITHUB_BASE_REF")"
|
|
git checkout -b old_commit "$MERGE_BASE"
|
|
git rev-list --format=%s --max-count=1 old_commit
|
|
cp crates/ty_python_semantic/resources/primer/good.txt projects_old.txt
|
|
|
|
cd ..
|
|
|
|
uv tool install "git+https://github.com/astral-sh/ecosystem-analyzer@27dd66d9e397d986ef9c631119ee09556eab8af9"
|
|
|
|
ecosystem-analyzer \
|
|
--repository ruff \
|
|
diff \
|
|
--projects-old ruff/projects_old.txt \
|
|
--projects-new ruff/projects_new.txt \
|
|
--old old_commit \
|
|
--new new_commit \
|
|
--output-old diagnostics-old.json \
|
|
--output-new diagnostics-new.json
|
|
|
|
mkdir dist
|
|
|
|
ecosystem-analyzer \
|
|
generate-diff \
|
|
diagnostics-old.json \
|
|
diagnostics-new.json \
|
|
--old-name "main (merge base)" \
|
|
--new-name "$REF_NAME" \
|
|
--output-html dist/diff.html
|
|
|
|
ecosystem-analyzer \
|
|
generate-diff-statistics \
|
|
diagnostics-old.json \
|
|
diagnostics-new.json \
|
|
--old-name "main (merge base)" \
|
|
--new-name "$REF_NAME" \
|
|
--output diff-statistics.md
|
|
|
|
echo '## `ecosystem-analyzer` results' > comment.md
|
|
echo >> comment.md
|
|
cat diff-statistics.md >> comment.md
|
|
|
|
cat diff-statistics.md >> "$GITHUB_STEP_SUMMARY"
|
|
|
|
echo ${{ github.event.number }} > pr-number
|
|
|
|
- name: "Deploy to Cloudflare Pages"
|
|
if: ${{ env.CF_API_TOKEN_EXISTS == 'true' }}
|
|
id: deploy
|
|
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
|
|
with:
|
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
|
command: pages deploy dist --project-name=ty-ecosystem --branch ${{ github.head_ref }} --commit-hash ${GITHUB_SHA}
|
|
|
|
- name: "Append deployment URL"
|
|
if: ${{ env.CF_API_TOKEN_EXISTS == 'true' }}
|
|
env:
|
|
DEPLOYMENT_URL: ${{ steps.deploy.outputs.pages-deployment-alias-url }}
|
|
run: |
|
|
echo >> comment.md
|
|
echo "**[Full report with detailed diff]($DEPLOYMENT_URL/diff)**" >> comment.md
|
|
|
|
- name: Upload comment
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: comment.md
|
|
path: comment.md
|
|
|
|
- name: Upload pr-number
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: pr-number
|
|
path: pr-number
|
|
|
|
- name: Upload diagnostics diff
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: diff.html
|
|
path: dist/diff.html
|