Skip to content

Commit

Permalink
tests: re-enable tests that work
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Mar 4, 2025
1 parent 6f8d8f7 commit 91efcf3
Show file tree
Hide file tree
Showing 29 changed files with 36 additions and 180 deletions.
16 changes: 1 addition & 15 deletions tests/lsp-servers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,10 @@ let
"ruff_lsp"
"bufls"
"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)
"bitbake_language_server"
]
++ lib.optionals pkgs.stdenv.isDarwin [
"fsautocomplete"
]
++ lib.optionals pkgs.stdenv.isAarch64 [
# Broken
"scheme_langserver"
Expand All @@ -63,14 +55,8 @@ let
# TODO: 2025-01-09 python312Packages.tree-sitter (dependency of autotools-language-server) is broken
# https://github.com/NixOS/nixpkgs/issues/372375
"autotools_ls"
# Binary package not available for this architecture
"starpls"
# TODO: 2024-10-05 build failure
"fstar"
]
++ lib.optionals (pkgs.stdenv.hostPlatform.system == "x86_64-darwin") [
# Binary package not available for this architecture
"starpls"
];
in
{
Expand Down
3 changes: 0 additions & 3 deletions tests/test-sources/plugins/by-name/dropbar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@
};
};
fzf = {
keymaps = {
# TODO
};
win_configs = {
relative = "win";
anchor = "NW";
Expand Down
20 changes: 3 additions & 17 deletions tests/test-sources/plugins/by-name/efmls-configs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,7 @@
];

brokenTools =
[
# 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 [
lib.optionals pkgs.stdenv.isDarwin [
# As of 2024-01-04, texliveMedium is broken on darwin
# TODO: re-enable those tests when fixed
"chktex"
Expand All @@ -48,8 +34,6 @@
# https://github.com/NixOS/nixpkgs/pull/331373
# TODO: re-enable this test when fixed
"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
Expand Down Expand Up @@ -80,6 +64,8 @@
"slim_lint"
"solhint"
"sorbet"
"swiftformat"
"swiftlint"
"xo"
]
++ lib.optionals pkgs.stdenv.isDarwin [ "clazy" ]
Expand Down
10 changes: 1 addition & 9 deletions tests/test-sources/plugins/by-name/lean/default.nix
Original file line number Diff line number Diff line change
@@ -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 = {
plugins.lean.enable = true;
};
Expand Down
4 changes: 0 additions & 4 deletions tests/test-sources/plugins/by-name/neoclip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
};

with-sqlite = {
# TODO: added 2024-09-13
# re-enable when sqlite fixed
test.runNvim = false;

plugins = {
sqlite-lua.enable = true;
neoclip = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/dart.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
13 changes: 3 additions & 10 deletions tests/test-sources/plugins/by-name/neotest/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins.neotest.enable = true;
};

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

# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
defaults = lib.mkIf pkgs.stdenv.isLinux {
defaults = {
plugins.neotest = {
enable = true;

Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/dotnet.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/elixir.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/foundry.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/go.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/golang.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/gtest.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
# 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
test.runNvim = false;
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/haskell.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/java.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/jest.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/minitest.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/pest.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/phpunit.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/playwright.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/plenary.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/python.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/rspec.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
defaults = lib.mkIf pkgs.stdenv.isLinux {
defaults = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/rust.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/scala.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
5 changes: 1 addition & 4 deletions tests/test-sources/plugins/by-name/neotest/vitest.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ lib, pkgs, ... }:
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
example = {
plugins = {
treesitter.enable = true;
neotest = {
Expand Down
44 changes: 8 additions & 36 deletions tests/test-sources/plugins/by-name/none-ls/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,48 +105,20 @@
pkgs,
...
}:
let
inherit (pkgs.stdenv) hostPlatform;
in
{
plugins.none-ls = {
# sandbox-exec: pattern serialization length 159032 exceeds maximum (65535)
enable = !pkgs.stdenv.isDarwin;
enable = !hostPlatform.isDarwin;

sources =
let
disabled =
[
# 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"
]);
disabled = lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
# Not available on aarch64-linux
"smlfmt"
];
in
# Enable every none-ls source that has an option
lib.mapAttrs (
Expand Down
Loading

0 comments on commit 91efcf3

Please sign in to comment.