tweag / topiary

https://topiary.tweag.io/
MIT License
565 stars 29 forks source link

Add sandbox-breaking tests as labeled as feature(?) #781

Open toastal opened 2 weeks ago

toastal commented 2 weeks ago

I don’t know the appropriate Rust terminology for it, but it would be convenient if anything that required breaking out of the Nix sandbox, like network requests, were labeled as such so there was a flag to disable all of these test that will always fail in the sandbox. I am trying to package 0.5.1 for Nixpkgs, but the build fails on Io (the Jovian moon? input/output is abbreviated as IO) related to prefetch code.

Error Fetching Language: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })

failures:
    test_fmt_dir
    test_fmt_files
    test_fmt_files_query_fallback
    test_fmt_stdin
    test_fmt_stdin_query
    test_fmt_stdin_query_fallback
    test_vis

[^1]

[^1]: Please consider giving up MS GitHub or offering a non-proprietary, non-US-corporate-controlled mirror for this free software project. I wish to delete this Microsoft account in the future, but I need more projects like this to support alternative methods to send patches & contribute.

nbacquey commented 1 week ago

Hi @toastal, thanks for the issue. Could you please provide a more detailed reproducer?