tests: re-enable tests that work

This commit is contained in:
Gaetan Lepage 2025-03-04 10:09:08 +01:00 committed by Gaétan Lepage
parent 6f8d8f7aee
commit 9851246241
29 changed files with 36 additions and 180 deletions

View file

@ -43,18 +43,10 @@ let
"ruff_lsp" "ruff_lsp"
"bufls" "bufls"
"typst_lsp" "typst_lsp"
# Package dotnet-core-combined is marked as insecure, refusing to evaluate.
# Dotnet SDK 6.0.428 is EOL, please use 8.0 (LTS) or 9.0 (Current)
# https://github.com/NixOS/nixpkgs/pull/358533
"dafny"
"fsautocomplete"
"omnisharp"
# TODO: 2025-01-22 python312Packages.anytree is broken (dependency of bitbake-language-server) # TODO: 2025-01-22 python312Packages.anytree is broken (dependency of bitbake-language-server)
"bitbake_language_server" "bitbake_language_server"
] ]
++ lib.optionals pkgs.stdenv.isDarwin [
"fsautocomplete"
]
++ lib.optionals pkgs.stdenv.isAarch64 [ ++ lib.optionals pkgs.stdenv.isAarch64 [
# Broken # Broken
"scheme_langserver" "scheme_langserver"
@ -63,14 +55,8 @@ let
# TODO: 2025-01-09 python312Packages.tree-sitter (dependency of autotools-language-server) is broken # TODO: 2025-01-09 python312Packages.tree-sitter (dependency of autotools-language-server) is broken
# https://github.com/NixOS/nixpkgs/issues/372375 # https://github.com/NixOS/nixpkgs/issues/372375
"autotools_ls" "autotools_ls"
# Binary package not available for this architecture
"starpls"
# TODO: 2024-10-05 build failure # TODO: 2024-10-05 build failure
"fstar" "fstar"
]
++ lib.optionals (pkgs.stdenv.hostPlatform.system == "x86_64-darwin") [
# Binary package not available for this architecture
"starpls"
]; ];
in in
{ {

View file

@ -282,9 +282,6 @@
}; };
}; };
fzf = { fzf = {
keymaps = {
# TODO
};
win_configs = { win_configs = {
relative = "win"; relative = "win";
anchor = "NW"; anchor = "NW";

View file

@ -23,21 +23,7 @@
]; ];
brokenTools = brokenTools =
[ lib.optionals pkgs.stdenv.isDarwin [
# TODO: added 2024-09-13
# Swift broken everywhere atm
"swiftformat"
"swiftlint"
# TODO: added 2024-10-15
# re-enable after fixed
"dmd"
]
++ lib.optionals (system == "aarch64-linux") [
# Broken as of 2024-07-13
# TODO: re-enable this tests when fixed
"textlint"
]
++ lib.optionals pkgs.stdenv.isDarwin [
# As of 2024-01-04, texliveMedium is broken on darwin # As of 2024-01-04, texliveMedium is broken on darwin
# TODO: re-enable those tests when fixed # TODO: re-enable those tests when fixed
"chktex" "chktex"
@ -48,8 +34,6 @@
# https://github.com/NixOS/nixpkgs/pull/331373 # https://github.com/NixOS/nixpkgs/pull/331373
# TODO: re-enable this test when fixed # TODO: re-enable this test when fixed
"dmd" "dmd"
# As of 2024-11-03, graalvm-ce (dependency of clj-kondo) is broken on x86_64-darwin
"clj_kondo"
]; ];
# TODO: respect unpackaged from generated # TODO: respect unpackaged from generated
@ -80,6 +64,8 @@
"slim_lint" "slim_lint"
"solhint" "solhint"
"sorbet" "sorbet"
"swiftformat"
"swiftlint"
"xo" "xo"
] ]
++ lib.optionals pkgs.stdenv.isDarwin [ "clazy" ] ++ lib.optionals pkgs.stdenv.isDarwin [ "clazy" ]

View file

@ -1,12 +1,4 @@
{ lib, pkgs, ... }: {
let
platform = pkgs.stdenv.hostPlatform;
# TODO: `cadical`, one of `lean4`'s dependencies is broken on x86_64-darwin
# https://github.com/NixOS/nixpkgs/pull/371275
doRun = !(platform.isDarwin && platform.isx86_64);
in
lib.optionalAttrs doRun {
empty = { empty = {
plugins.lean.enable = true; plugins.lean.enable = true;
}; };

View file

@ -4,10 +4,6 @@
}; };
with-sqlite = { with-sqlite = {
# TODO: added 2024-09-13
# re-enable when sqlite fixed
test.runNvim = false;
plugins = { plugins = {
sqlite-lua.enable = true; sqlite-lua.enable = true;
neoclip = { neoclip = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,14 +1,9 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins.neotest.enable = true; plugins.neotest.enable = true;
}; };
# TODO: added 2024-09-15 all-adapters = {
# TODO: Re-enable when upstream builds in darwin sandbox
all-adapters = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {
@ -48,9 +43,7 @@
}; };
}; };
# TODO: added 2024-09-15 defaults = {
# TODO: Re-enable when upstream builds in darwin sandbox
defaults = lib.mkIf pkgs.stdenv.isLinux {
plugins.neotest = { plugins.neotest = {
enable = true; enable = true;

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
# We cannot test neotest-gtest as it tries to create file in the upper directory # We cannot test neotest-gtest as it tries to create file in the upper directory
# https://github.com/alfaix/neotest-gtest/blob/6e794ac91f4c347e2ea5ddeb23d594f8fc64f2a8/lua/neotest-gtest/utils.lua#L10-L16 # https://github.com/alfaix/neotest-gtest/blob/6e794ac91f4c347e2ea5ddeb23d594f8fc64f2a8/lua/neotest-gtest/utils.lua#L10-L16
test.runNvim = false; test.runNvim = false;

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 defaults = {
# TODO: Re-enable when upstream builds in darwin sandbox
defaults = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{ {
# TODO: added 2024-09-15 example = {
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
plugins = { plugins = {
treesitter.enable = true; treesitter.enable = true;
neotest = { neotest = {

View file

@ -105,48 +105,20 @@
pkgs, pkgs,
... ...
}: }:
let
inherit (pkgs.stdenv) hostPlatform;
in
{ {
plugins.none-ls = { plugins.none-ls = {
# sandbox-exec: pattern serialization length 159032 exceeds maximum (65535) # sandbox-exec: pattern serialization length 159032 exceeds maximum (65535)
enable = !pkgs.stdenv.isDarwin; enable = !hostPlatform.isDarwin;
sources = sources =
let let
disabled = disabled = lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
[ # Not available on aarch64-linux
# TODO: added 2024-09-13
# Swift broken everywhere atm
"swiftformat"
"swift_format"
"swiftlint"
# TODO: added 2024-10-15
# broken package
"opacheck"
"rego"
"prisma_format"
]
++ (lib.optionals pkgs.stdenv.isDarwin [
# As of 2024-05-22, python311Packages.k5test (one of ansible-lint's dependenvies) is broken on darwin
# TODO: re-enable this test when fixed
"ansible_lint"
"clazy"
"gdformat"
"gdlint"
"haml_lint"
# As of 2024-06-29, pkgs.rubyfmt is broken on darwin
# TODO: re-enable this test when fixed
"rubyfmt"
"verilator"
"verible_verilog_format"
])
++ (lib.optionals (pkgs.stdenv.isDarwin && pkgs.stdenv.isx86_64) [
# As of 2024-11-03, graalvm-ce (dependency of clj-kondo) is broken on x86_64-darwin
"clj_kondo"
])
++ (lib.optionals pkgs.stdenv.isAarch64 [
"semgrep"
"smlfmt" "smlfmt"
]); ];
in in
# Enable every none-ls source that has an option # Enable every none-ls source that has an option
lib.mapAttrs ( lib.mapAttrs (

View file

@ -82,8 +82,6 @@
}; };
no-nix = { no-nix = {
# TODO: See if we can build parsers (legacy way)
test.runNvim = false;
plugins.treesitter = { plugins.treesitter = {
enable = true; enable = true;
nixGrammars = false; nixGrammars = false;

View file

@ -60,10 +60,6 @@
}; };
example = { example = {
# TODO: added 2024-09-13
# re-enable when sqlite fixed
test.runNvim = false;
plugins = { plugins = {
sqlite-lua.enable = true; sqlite-lua.enable = true;
telescope.enable = true; telescope.enable = true;