mirror of https://github.com/astral-sh/ruff
[ty] CI: Faster ecosystem analysis (#20886)
## Summary I considered making a dedicated cargo profile for these, but the `profiling` profile basically made all the modifications to `release` that I would have also made. ## Test Plan CI on this PR
This commit is contained in:
parent
cb4d4493d7
commit
270ba71ad5
|
|
@ -64,12 +64,12 @@ jobs:
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
uv tool install "git+https://github.com/astral-sh/ecosystem-analyzer@279f8a15b0e7f77213bf9096dbc2335a19ef89c5"
|
uv tool install "git+https://github.com/astral-sh/ecosystem-analyzer@908758da02a73ef3f3308e1dbb2248510029bbe4"
|
||||||
|
|
||||||
ecosystem-analyzer \
|
ecosystem-analyzer \
|
||||||
--repository ruff \
|
--repository ruff \
|
||||||
diff \
|
diff \
|
||||||
--profile=release \
|
--profile=profiling \
|
||||||
--projects-old ruff/projects_old.txt \
|
--projects-old ruff/projects_old.txt \
|
||||||
--projects-new ruff/projects_new.txt \
|
--projects-new ruff/projects_new.txt \
|
||||||
--old old_commit \
|
--old old_commit \
|
||||||
|
|
|
||||||
|
|
@ -49,13 +49,13 @@ jobs:
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
uv tool install "git+https://github.com/astral-sh/ecosystem-analyzer@279f8a15b0e7f77213bf9096dbc2335a19ef89c5"
|
uv tool install "git+https://github.com/astral-sh/ecosystem-analyzer@908758da02a73ef3f3308e1dbb2248510029bbe4"
|
||||||
|
|
||||||
ecosystem-analyzer \
|
ecosystem-analyzer \
|
||||||
--verbose \
|
--verbose \
|
||||||
--repository ruff \
|
--repository ruff \
|
||||||
analyze \
|
analyze \
|
||||||
--profile=release \
|
--profile=profiling \
|
||||||
--projects ruff/crates/ty_python_semantic/resources/primer/good.txt \
|
--projects ruff/crates/ty_python_semantic/resources/primer/good.txt \
|
||||||
--output ecosystem-diagnostics.json
|
--output ecosystem-diagnostics.json
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,11 @@ cd ..
|
||||||
echo "Project selector: ${PRIMER_SELECTOR}"
|
echo "Project selector: ${PRIMER_SELECTOR}"
|
||||||
# Allow the exit code to be 0 or 1, only fail for actual mypy_primer crashes/bugs
|
# Allow the exit code to be 0 or 1, only fail for actual mypy_primer crashes/bugs
|
||||||
uvx \
|
uvx \
|
||||||
--from="git+https://github.com/hauntsaninja/mypy_primer@1dcfa196e82a25bcc839a44d2a6d17953859f6ed" \
|
--from="git+https://github.com/hauntsaninja/mypy_primer@ab5d30e2d4ecdaf7d6cc89395c7130143d6d3c82" \
|
||||||
mypy_primer \
|
mypy_primer \
|
||||||
--repo ruff \
|
--repo ruff \
|
||||||
--type-checker ty \
|
--type-checker ty \
|
||||||
|
--cargo-profile profiling \
|
||||||
--old base_commit \
|
--old base_commit \
|
||||||
--new "${GITHUB_SHA}" \
|
--new "${GITHUB_SHA}" \
|
||||||
--project-selector "/($PRIMER_SELECTOR)\$" \
|
--project-selector "/($PRIMER_SELECTOR)\$" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue