Skip to content

test_generate_json_schema failing as of 0.9.2 #15707

@WhyNotHugo

Description

@WhyNotHugo

Description

As of 0.9.2, the test_generate_json_schema test fails when building from source. Of note, we build with the default features.

Full build output is here: https://paste.sr.ht/~whynothugo/41004049e3a4f9d2098bec4593a68fd949bd5cd4

The output for this specific test starts at line 1816 and is 4251 lines long.

This error is produced when building the Alpine packages. The build steps can be summarised as:

# prepare()
# shadow git repo for tests
git init -q

# Avoid downloading a different toolchain on systems with rustup installed.
rm rust-toolchain.toml

cargo fetch --locked

# build()
gpep517 build-wheel \
        --wheel-dir .dist \
        --config-json '{"build-args": "--frozen"}' \
        --output-fd 3 3>&1 >&2

./target/release/ruff generate-shell-completion bash > $pkgname.bash
./target/release/ruff generate-shell-completion fish > $pkgname.fish
./target/release/ruff generate-shell-completion zsh > $pkgname.zsh

# Update ruff.schema.json as the pre-built one is generated
# using the '--all-features' Cargo flag which we don't pass.
cargo dev generate-all

# check()
unset CI_PROJECT_DIR
cargo test --frozen --workspace --exclude ruff_benchmark

Metadata

Metadata

Assignees

Labels

testingRelated to testing Ruff itself

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions