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.3.1` -> `v6.4.3` | --- > [!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.4.3`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.4.3): 🌈 fix relative paths starting with dots [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.4.2...v6.4.3) #### 🐛 Bug fixes - fix relative paths starting with dots [@​eifinger](https://redirect.github.com/eifinger) ([#​500](https://redirect.github.com/astral-sh/setup-uv/issues/500)) ### [`v6.4.2`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.4.2): 🌈 Interpret relative inputs as under working-directory [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.4.1...v6.4.2) #### Changes This release will interpret relative paths in inputs as relative to the value of `working-directory` (default is `${{ github.workspace }}`) . This means the following configuration ```yaml - uses: astral-sh/setup-uv@v6 with: working-directory: /my/path cache-dependency-glob: uv.lock ``` will look for the `cache-dependency-glob` under `/my/path/uv.lock` #### 🐛 Bug fixes - interpret relative inputs as under working-directory [@​eifinger](https://redirect.github.com/eifinger) ([#​498](https://redirect.github.com/astral-sh/setup-uv/issues/498)) #### 🧰 Maintenance - chore: update known versions for 0.8.1/0.8.2 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​497](https://redirect.github.com/astral-sh/setup-uv/issues/497)) - chore: update known versions for 0.8.0 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​491](https://redirect.github.com/astral-sh/setup-uv/issues/491)) ### [`v6.4.1`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.4.1): 🌈 Hotfix: Ignore deps starting with uv when finding uv version [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.4.0...v6.4.1) ##### Changes Thank you [@​phpmypython](https://redirect.github.com/phpmypython) for raising a PR to fix this issue! ##### 🐛 Bug fixes - Ignore deps starting with uv when finding uv version [@​eifinger](https://redirect.github.com/eifinger) ([#​492](https://redirect.github.com/astral-sh/setup-uv/issues/492)) ### [`v6.4.0`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.4.0): 🌈 Add input `version-file` [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.3.1...v6.4.0) ##### Changes You can now use the `version-file` input to specify a file that contains the version of uv to install. This can either be a `pyproject.toml` or `uv.toml` file which defines a `required-version` or uv defined as a dependency in `pyproject.toml` or `requirements.txt`. ```yaml - name: Install uv based on the version defined in requirements.txt uses: astral-sh/setup-uv@v6 with: version-file: "requirements.txt" ``` ##### 🚀 Enhancements - Add input version-file [@​eifinger](https://redirect.github.com/eifinger) ([#​486](https://redirect.github.com/astral-sh/setup-uv/issues/486)) ##### 🧰 Maintenance - chore: update known versions for 0.7.22 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​488](https://redirect.github.com/astral-sh/setup-uv/issues/488)) - Bump dependencies [@​eifinger](https://redirect.github.com/eifinger) ([#​487](https://redirect.github.com/astral-sh/setup-uv/issues/487)) - chore: update known versions for 0.7.21 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​483](https://redirect.github.com/astral-sh/setup-uv/issues/483)) - chore: update known versions for 0.7.20 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​480](https://redirect.github.com/astral-sh/setup-uv/issues/480)) - chore: update known versions for 0.7.19 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​475](https://redirect.github.com/astral-sh/setup-uv/issues/475)) - chore: update known versions for 0.7.18 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​473](https://redirect.github.com/astral-sh/setup-uv/issues/473)) - chore: update known versions for 0.7.17 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​468](https://redirect.github.com/astral-sh/setup-uv/issues/468)) - chore: update known versions for 0.7.16 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​466](https://redirect.github.com/astral-sh/setup-uv/issues/466)) - chore: update known versions for 0.7.15 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​463](https://redirect.github.com/astral-sh/setup-uv/issues/463)) ##### 📚 Documentation - Add FAQ on changed cache and cache upload behavior [@​eifinger](https://redirect.github.com/eifinger) ([#​477](https://redirect.github.com/astral-sh/setup-uv/issues/477)) ##### ⬆️ Dependency updates - Bump dependencies [@​eifinger](https://redirect.github.com/eifinger) ([#​487](https://redirect.github.com/astral-sh/setup-uv/issues/487)) </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:eyJjcmVhdGVkSW5WZXIiOiI0MS40MC4wIiwidXBkYXRlZEluVmVyIjoiNDEuNDAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
79 lines
2.5 KiB
YAML
79 lines
2.5 KiB
YAML
name: Daily parser fuzz
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/daily_fuzz.yaml"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 0
|
|
CARGO_NET_RETRY: 10
|
|
CARGO_TERM_COLOR: always
|
|
RUSTUP_MAX_RETRIES: 10
|
|
PACKAGE_NAME: ruff
|
|
FORCE_COLOR: 1
|
|
|
|
jobs:
|
|
fuzz:
|
|
name: Fuzz
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
# Don't run the cron job on forks:
|
|
if: ${{ github.repository == 'astral-sh/ruff' || github.event_name != 'schedule' }}
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
- uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
|
|
- name: "Install Rust toolchain"
|
|
run: rustup show
|
|
- name: "Install mold"
|
|
uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035 # v1
|
|
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
|
|
- name: Build ruff
|
|
# A debug build means the script runs slower once it gets started,
|
|
# but this is outweighed by the fact that a release build takes *much* longer to compile in CI
|
|
run: cargo build --locked
|
|
- name: Fuzz
|
|
run: |
|
|
# shellcheck disable=SC2046
|
|
(
|
|
uvx \
|
|
--python=3.12 \
|
|
--from=./python/py-fuzzer \
|
|
fuzz \
|
|
--test-executable=target/debug/ruff \
|
|
--bin=ruff \
|
|
$(shuf -i 0-9999999999999999999 -n 1000)
|
|
)
|
|
|
|
create-issue-on-failure:
|
|
name: Create an issue if the daily fuzz surfaced any bugs
|
|
runs-on: ubuntu-latest
|
|
needs: fuzz
|
|
if: ${{ github.repository == 'astral-sh/ruff' && always() && github.event_name == 'schedule' && needs.fuzz.result == 'failure' }}
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
script: |
|
|
await github.rest.issues.create({
|
|
owner: "astral-sh",
|
|
repo: "ruff",
|
|
title: `Daily parser fuzz failed on ${new Date().toDateString()}`,
|
|
body: "Run listed here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
|
labels: ["bug", "parser", "fuzzer"],
|
|
})
|