Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruff: 0.9.1 -> 0.9.2 #374335

Merged
merged 1 commit into from
Jan 16, 2025
Merged

ruff: 0.9.1 -> 0.9.2 #374335

merged 1 commit into from
Jan 16, 2025

Conversation

GaetanLepage
Copy link
Contributor

Things done

Changelog: https://github.com/astral-sh/ruff/releases/tag/0.9.2

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@GaetanLepage
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 374335


x86_64-linux

❌ 2 packages failed to build:
  • python313Packages.python-lsp-ruff
  • python313Packages.python-lsp-ruff.dist
✅ 50 packages built:
  • dmarc-metrics-exporter
  • dmarc-metrics-exporter.dist
  • maigret
  • maigret.dist
  • marimo (python312Packages.marimo)
  • marimo.dist (python312Packages.marimo.dist)
  • nbqa
  • nbqa.dist
  • nixpkgs-openjdk-updater
  • nixpkgs-openjdk-updater.dist
  • openapi-python-client
  • openapi-python-client.dist
  • python312Packages.ifcopenshell
  • python312Packages.mypy-boto3-builder
  • python312Packages.mypy-boto3-builder.dist
  • python312Packages.pyhanko
  • python312Packages.pyhanko.dist
  • python312Packages.pytest-examples
  • python312Packages.pytest-examples.dist
  • python312Packages.pytest-ruff
  • python312Packages.pytest-ruff.dist
  • python312Packages.python-lsp-ruff
  • python312Packages.python-lsp-ruff.dist
  • python312Packages.ruff
  • python312Packages.ruff.dist
  • python312Packages.xhtml2pdf
  • python312Packages.xhtml2pdf.dist
  • python312Packages.xsdata
  • python312Packages.xsdata.dist
  • python313Packages.marimo
  • python313Packages.marimo.dist
  • python313Packages.mypy-boto3-builder
  • python313Packages.mypy-boto3-builder.dist
  • python313Packages.pyhanko
  • python313Packages.pyhanko.dist
  • python313Packages.pytest-examples
  • python313Packages.pytest-examples.dist
  • python313Packages.pytest-ruff
  • python313Packages.pytest-ruff.dist
  • python313Packages.ruff
  • python313Packages.ruff.dist
  • python313Packages.xhtml2pdf
  • python313Packages.xhtml2pdf.dist
  • python313Packages.xsdata
  • python313Packages.xsdata.dist
  • ruff
  • ruff-lsp
  • ruff-lsp.dist
  • vunnel
  • vunnel.dist

aarch64-linux

❌ 2 packages failed to build:
  • python313Packages.python-lsp-ruff
  • python313Packages.python-lsp-ruff.dist
✅ 50 packages built:
  • dmarc-metrics-exporter
  • dmarc-metrics-exporter.dist
  • maigret
  • maigret.dist
  • marimo (python312Packages.marimo)
  • marimo.dist (python312Packages.marimo.dist)
  • nbqa
  • nbqa.dist
  • nixpkgs-openjdk-updater
  • nixpkgs-openjdk-updater.dist
  • openapi-python-client
  • openapi-python-client.dist
  • python312Packages.ifcopenshell
  • python312Packages.mypy-boto3-builder
  • python312Packages.mypy-boto3-builder.dist
  • python312Packages.pyhanko
  • python312Packages.pyhanko.dist
  • python312Packages.pytest-examples
  • python312Packages.pytest-examples.dist
  • python312Packages.pytest-ruff
  • python312Packages.pytest-ruff.dist
  • python312Packages.python-lsp-ruff
  • python312Packages.python-lsp-ruff.dist
  • python312Packages.ruff
  • python312Packages.ruff.dist
  • python312Packages.xhtml2pdf
  • python312Packages.xhtml2pdf.dist
  • python312Packages.xsdata
  • python312Packages.xsdata.dist
  • python313Packages.marimo
  • python313Packages.marimo.dist
  • python313Packages.mypy-boto3-builder
  • python313Packages.mypy-boto3-builder.dist
  • python313Packages.pyhanko
  • python313Packages.pyhanko.dist
  • python313Packages.pytest-examples
  • python313Packages.pytest-examples.dist
  • python313Packages.pytest-ruff
  • python313Packages.pytest-ruff.dist
  • python313Packages.ruff
  • python313Packages.ruff.dist
  • python313Packages.xhtml2pdf
  • python313Packages.xhtml2pdf.dist
  • python313Packages.xsdata
  • python313Packages.xsdata.dist
  • ruff
  • ruff-lsp
  • ruff-lsp.dist
  • vunnel
  • vunnel.dist

x86_64-darwin

⏩ 1 package marked as broken and skipped:
  • python312Packages.ifcopenshell
❌ 7 packages failed to build:
  • nbqa
  • nbqa.dist
  • nixpkgs-openjdk-updater
  • nixpkgs-openjdk-updater.dist
  • python313Packages.python-lsp-ruff
  • python313Packages.python-lsp-ruff.dist
  • ruff
✅ 44 packages built:
  • dmarc-metrics-exporter
  • dmarc-metrics-exporter.dist
  • maigret
  • maigret.dist
  • marimo (python312Packages.marimo)
  • marimo.dist (python312Packages.marimo.dist)
  • openapi-python-client
  • openapi-python-client.dist
  • python312Packages.mypy-boto3-builder
  • python312Packages.mypy-boto3-builder.dist
  • python312Packages.pyhanko
  • python312Packages.pyhanko.dist
  • python312Packages.pytest-examples
  • python312Packages.pytest-examples.dist
  • python312Packages.pytest-ruff
  • python312Packages.pytest-ruff.dist
  • python312Packages.python-lsp-ruff
  • python312Packages.python-lsp-ruff.dist
  • python312Packages.ruff
  • python312Packages.ruff.dist
  • python312Packages.xhtml2pdf
  • python312Packages.xhtml2pdf.dist
  • python312Packages.xsdata
  • python312Packages.xsdata.dist
  • python313Packages.marimo
  • python313Packages.marimo.dist
  • python313Packages.mypy-boto3-builder
  • python313Packages.mypy-boto3-builder.dist
  • python313Packages.pyhanko
  • python313Packages.pyhanko.dist
  • python313Packages.pytest-examples
  • python313Packages.pytest-examples.dist
  • python313Packages.pytest-ruff
  • python313Packages.pytest-ruff.dist
  • python313Packages.ruff
  • python313Packages.ruff.dist
  • python313Packages.xhtml2pdf
  • python313Packages.xhtml2pdf.dist
  • python313Packages.xsdata
  • python313Packages.xsdata.dist
  • ruff-lsp
  • ruff-lsp.dist
  • vunnel
  • vunnel.dist

aarch64-darwin

⏩ 1 package marked as broken and skipped:
  • python312Packages.ifcopenshell
❌ 7 packages failed to build:
  • nbqa
  • nbqa.dist
  • nixpkgs-openjdk-updater
  • nixpkgs-openjdk-updater.dist
  • python313Packages.python-lsp-ruff
  • python313Packages.python-lsp-ruff.dist
  • ruff
✅ 44 packages built:
  • dmarc-metrics-exporter
  • dmarc-metrics-exporter.dist
  • maigret
  • maigret.dist
  • marimo (python312Packages.marimo)
  • marimo.dist (python312Packages.marimo.dist)
  • openapi-python-client
  • openapi-python-client.dist
  • python312Packages.mypy-boto3-builder
  • python312Packages.mypy-boto3-builder.dist
  • python312Packages.pyhanko
  • python312Packages.pyhanko.dist
  • python312Packages.pytest-examples
  • python312Packages.pytest-examples.dist
  • python312Packages.pytest-ruff
  • python312Packages.pytest-ruff.dist
  • python312Packages.python-lsp-ruff
  • python312Packages.python-lsp-ruff.dist
  • python312Packages.ruff
  • python312Packages.ruff.dist
  • python312Packages.xhtml2pdf
  • python312Packages.xhtml2pdf.dist
  • python312Packages.xsdata
  • python312Packages.xsdata.dist
  • python313Packages.marimo
  • python313Packages.marimo.dist
  • python313Packages.mypy-boto3-builder
  • python313Packages.mypy-boto3-builder.dist
  • python313Packages.pyhanko
  • python313Packages.pyhanko.dist
  • python313Packages.pytest-examples
  • python313Packages.pytest-examples.dist
  • python313Packages.pytest-ruff
  • python313Packages.pytest-ruff.dist
  • python313Packages.ruff
  • python313Packages.ruff.dist
  • python313Packages.xhtml2pdf
  • python313Packages.xhtml2pdf.dist
  • python313Packages.xsdata
  • python313Packages.xsdata.dist
  • ruff-lsp
  • ruff-lsp.dist
  • vunnel
  • vunnel.dist

@GaetanLepage GaetanLepage merged commit 0bda27c into NixOS:master Jan 16, 2025
2 of 6 checks passed
@GaetanLepage GaetanLepage deleted the ruff branch January 16, 2025 17:32
@DontEatOreo
Copy link
Member

I'm getting error trying to build ruff on aarch64-darwin:

$ nix build github:NixOS/nixpkgs/2599327bc48f151f3c725a4a92902561af98da73#ruff

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 4 filtered out; finished in 0.00s

     Running unittests src/lib.rs (target/aarch64-apple-darwin/debug/deps/ruff_annotate_snippets-b3a6163140783f37)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/examples.rs (target/aarch64-apple-darwin/debug/deps/examples-3fcb7328bd21c94f)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 4 filtered out; finished in 0.00s

     Running tests/fixtures/main.rs (target/aarch64-apple-darwin/debug/deps/fixtures-e8e11b634bb8a8d8)
error: unexpected argument '--skip=added_package' found

Usage: fixtures-e8e11b634bb8a8d8 [OPTIONS] [FILTER]

For more information, try '--help'.
error: test failed, to rerun pass `-p ruff_annotate_snippets --test fixtures`

Caused by:
  process didn't exit successfully: `/private/tmp/nix-build-ruff-0.9.2.drv-0/source/target/aarch64-apple-darwin/debug/deps/fixtures-e8e11b634bb8a8d8 --test-threads=8 -- --test-threads=8 --skip=added_package --skip=add_search_path --skip=changed_file --skip=changed_versions_file --skip=deleted_file --skip=directory_deleted --skip=directory_moved_to_trash --skip=directory_moved_to_workspace --skip=directory_renamed --skip=hard_links_in_workspace --skip=hard_links_to_target_outside_workspace --skip=move_file_to_trash --skip=move_file_to_workspace --skip=nested_packages_delete_root --skip=new_file --skip=new_ignored_file --skip=removed_package --skip=rename_file --skip=search_path '--skip=unix::changed_metadata' '--skip=unix::symlinked_module_search_path' '--skip=unix::symlink_inside_workspace'` (exit status: 2)

@natsukium
Copy link
Member

Some tests fail on darwin.
I think these tests should be skipped since checkFlags contains something that disables similar tests.

failures:
    change_python_version_and_platform
    directory_moved_to_project
    hard_links_in_project
    hard_links_to_target_outside_project
    move_file_to_project
    nested_projects_delete_root
    unix::symlink_inside_project

@erratic-pattern
Copy link
Contributor

I'm seeing the same error as @DontEatOreo above #374335 (comment)

Setting checkFlags = [] in an overlay fixed the build for me.

See #374697 (comment)

@uncenter
Copy link
Member

Why was this merged so quickly? @GaetanLepage your own nixpkgs-review result shows ruff failing on all darwin architectures. At the bare minimum ruff should have been marked as broken initially, or at best the changes from #374697 should have been done here before merging.

@GaetanLepage
Copy link
Contributor Author

Why was this merged so quickly? @GaetanLepage your own nixpkgs-review result shows ruff failing on all darwin architectures. At the bare minimum ruff should have been marked as broken initially, or at best the changes from #374697 should have been done here before merging.

This was definitely a mistake on my end.
I got tricked by the number of successfull builds on the darwin side. Turns out, python312Packages.ruff was building but not ruff itself.
I'm the one to blame on this.

Also, we have merged the fix quite soon but not nixos-unstable is blocked and people have the broken ruff there. Far from ideal.
My apologies for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants