1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

ci: only build "grouped" tests on x86_64-linux

This commit is contained in:
Matt Sturgeon 2025-09-07 12:34:50 +01:00 committed by Gaétan Lepage
parent 3813f183bc
commit d241216ede
12 changed files with 13 additions and 166 deletions

View file

@ -93,5 +93,5 @@ in
# TODO: consider whether all these tests are needed to be built by buildbot # TODO: consider whether all these tests are needed to be built by buildbot
buildbot = buildbot =
lib.optionalAttrs (system == "x86_64-linux") (misc // docs) // platforms // packages // mainGrouped; lib.optionalAttrs (system == "x86_64-linux") (misc // docs // mainGrouped) // platforms // packages;
} }

View file

@ -1,8 +1,5 @@
{ {
lib,
nixvimConfiguration, nixvimConfiguration,
stdenv,
runCommandLocal,
name ? "lsp-all-servers", name ? "lsp-all-servers",
}: }:
let let
@ -32,11 +29,9 @@ let
{ {
lib, lib,
options, options,
pkgs,
... ...
}: }:
let let
inherit (pkgs.stdenv) hostPlatform;
disabled = [ disabled = [
# TODO: 2025-07-25 python313Packages.lsp-tree-sitter marked as broken # TODO: 2025-07-25 python313Packages.lsp-tree-sitter marked as broken
@ -52,19 +47,6 @@ let
"ruff_lsp" "ruff_lsp"
"bufls" "bufls"
"typst_lsp" "typst_lsp"
]
++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
# TODO: 2025-04-20 build failure (swift-corelibs-xctest)
"sourcekit"
# pkgs.vectorcode cannot run in the build sandbox on this platform, due to issues with onnxruntime
"vectorcode_server"
# TODO: 2024-10-05 build failure
"fstar"
# TODO: 2025-03-04 marked as broken
"nickel_ls"
]; ];
in in
{ {
@ -93,11 +75,4 @@ let
]; ];
}; };
in in
# This fails on darwin result.config.build.test
# See https://github.com/NixOS/nix/issues/4119
if stdenv.isDarwin then
runCommandLocal name { } ''
touch $out
''
else
result.config.build.test

View file

@ -6,13 +6,7 @@
let let
inherit (pkgs.stdenv) hostPlatform; inherit (pkgs.stdenv) hostPlatform;
disabledDeps = lib.optionals hostPlatform.isDarwin [ disabledDeps = [ ];
# One of its dependencies is not available on darwin
"fontpreview"
# TODO: Failing to compile on darwin CI atm
"claude-code"
];
isDepEnabled = isDepEnabled =
name: package: name: package:

View file

@ -1,11 +1,4 @@
{ lib, pkgs, ... }: {
let
platform = pkgs.stdenv.hostPlatform;
# tabnine is not available on aarch64-linux.
doRun = !(platform.isLinux && platform.isAarch64);
in
lib.optionalAttrs doRun {
empty = { empty = {
plugins = { plugins = {
cmp.enable = true; cmp.enable = true;

View file

@ -1,9 +1,5 @@
{ lib, pkgs, ... }: { lib, ... }:
let {
inherit (pkgs.stdenv) hostPlatform;
in
# TODO: 2025-07-25 duckdb is broken on aarch64-linux
lib.optionalAttrs (!(hostPlatform.isLinux && hostPlatform.isAarch64)) {
empty = { empty = {
plugins.dbee.enable = true; plugins.dbee.enable = true;
}; };

View file

@ -4,14 +4,8 @@
}; };
all = all =
{ { options, ... }:
lib,
options,
pkgs,
...
}:
let let
inherit (pkgs.stdenv) hostPlatform;
inherit (options.plugins.efmls-configs) setup; inherit (options.plugins.efmls-configs) setup;
# toolOptions is an attrsets of the form: # toolOptions is an attrsets of the form:
@ -38,33 +32,6 @@
"phpcs" "phpcs"
"phpstan" "phpstan"
"psalm" "psalm"
]
++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
# TODO: 2025-04-20 build failure (swift-corelibs-xctest)
"swiftformat"
]
++ lib.optionals hostPlatform.isDarwin [
# As of 2024-01-04, texliveMedium is broken on darwin
# TODO: re-enable those tests when fixed
"chktex"
"latexindent"
# TODO 2025-04-20 build failure
"ansible_lint"
]
++ lib.optionals (hostPlatform.isDarwin && hostPlatform.isAarch64) [
# As of 2025-07-25, zig-zlint is failing on aarch64-darwin
"ZLint"
# As of 2025-03-18, several python311Packages.* dependencies of bashate fail on aarch64-darwin
# TODO: re-enable this test when fixed
"bashate"
]
++ lib.optionals (hostPlatform.isDarwin && hostPlatform.isx86_64) [
# As of 2024-07-31, dmd is broken on x86_64-darwin
# https://github.com/NixOS/nixpkgs/pull/331373
# TODO: re-enable this test when fixed
"dmd"
]; ];
# TODO: respect unpackaged from generated # TODO: respect unpackaged from generated
@ -97,11 +64,6 @@
"swiftformat" "swiftformat"
"swiftlint" "swiftlint"
"xo" "xo"
]
++ lib.optionals pkgs.stdenv.isDarwin [ "clazy" ]
++ lib.optionals pkgs.stdenv.isAarch64 [
"dmd"
"smlfmt"
]; ];
# Fetch the valid enum members from the tool options # Fetch the valid enum members from the tool options

View file

@ -1,13 +1,4 @@
{ {
lib,
pkgs,
...
}:
let
# Godot is only available on Linux
enable = lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.godot_4;
in
lib.optionalAttrs enable {
empty = { empty = {
plugins.godot.enable = true; plugins.godot.enable = true;
}; };

View file

@ -89,15 +89,7 @@
}; };
with-sources = with-sources =
{ { options, lib, ... }:
options,
lib,
pkgs,
...
}:
let
inherit (pkgs.stdenv) hostPlatform;
in
{ {
plugins.none-ls = { plugins.none-ls = {
enable = true; enable = true;
@ -108,43 +100,6 @@
# TODO Added 2025-04-01 # TODO Added 2025-04-01
# php-cs-fixer is marked as broken # php-cs-fixer is marked as broken
"phpcsfixer" "phpcsfixer"
]
++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
# Not available on aarch64-linux
"smlfmt"
# TODO: 2025-04-20 build failure (swift-corelibs-xctest)
"swift_format"
# TODO: 2025-04-20 build failure (open-policy-agent)
"opacheck"
"rego"
]
++ lib.optionals hostPlatform.isDarwin [
# TODO 2025-07-25 prisma build failure
"prisma_format"
"puppet_lint"
# TODO 2025-04-20 build failure
"ansiblelint"
# TODO 2025-06-24 build failure
"elm_format"
# TODO 2025-06-24 marked broken / unsupported platform
"clazy"
"haml_lint"
"racket_fixw"
"raco_fmt"
"rubyfmt"
# TODO 2025-07-07 open-policy-agent is broken on darwin
"opacheck"
"rego"
]
++ lib.optionals (hostPlatform.isDarwin && hostPlatform.isx86_64) [
# TODO: 2025-06-24 build failure
"gleam_format"
"ptop"
# NOTE: No hash for x86 darwin
"verible_verilog_format"
]; ];
in in
# Enable every none-ls source that has an option # Enable every none-ls source that has an option

View file

@ -1,8 +1,4 @@
{ lib, pkgs, ... }: {
# TODO: Added 2025-05-28
# `opencsg` fails to build on darwin
# https://github.com/NixOS/nixpkgs/issues/411700
lib.optionalAttrs (!pkgs.stdenv.hostPlatform.isDarwin) {
empty = { empty = {
plugins.openscad.enable = true; plugins.openscad.enable = true;
}; };

View file

@ -1,7 +1,4 @@
{ lib, pkgs, ... }: {
# TODO: as of 2025-05-18, luajitPackages.luv is broken on darwin
# https://github.com/NixOS/nixpkgs/issues/408528
lib.optionalAttrs (!pkgs.stdenv.hostPlatform.isDarwin) {
empty = { empty = {
plugins.papis.enable = true; plugins.papis.enable = true;
}; };

View file

@ -1,4 +1,3 @@
{ pkgs, ... }:
{ {
empty = { empty = {
plugins.telescope = { plugins.telescope = {
@ -46,7 +45,7 @@
chafa.enable = true; chafa.enable = true;
epub-thumbnailer.enable = true; epub-thumbnailer.enable = true;
ffmpegthumbnailer.enable = true; ffmpegthumbnailer.enable = true;
fontpreview.enable = !pkgs.stdenv.hostPlatform.isDarwin; fontpreview.enable = true;
imagemagick.enable = true; imagemagick.enable = true;
poppler-utils.enable = true; poppler-utils.enable = true;
}; };

View file

@ -1,7 +1,6 @@
{ lib, pkgs, ... }:
{ {
all-sources = all-sources =
{ config, ... }: { lib, config, ... }:
{ {
plugins = { plugins = {
copilot-lua = { copilot-lua = {
@ -16,10 +15,7 @@
cmp = { cmp = {
enable = true; enable = true;
settings.sources = settings.sources =
with pkgs.lib;
let let
inherit (pkgs.stdenv) hostPlatform;
disabledSources = [ disabledSources = [
# We do not provide the required HF_API_KEY environment variable. # We do not provide the required HF_API_KEY environment variable.
"cmp_ai" "cmp_ai"
@ -31,16 +27,9 @@
"supermaven" "supermaven"
# Sometimes get auth error # Sometimes get auth error
"codeium" "codeium"
]
++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
"cmp_tabnine"
]
++ lib.optionals hostPlatform.isDarwin [
# TODO: as of 2025-05-18, luajitPackages.luv is broken on darwin
# https://github.com/NixOS/nixpkgs/issues/408528
"papis"
]; ];
in in
with lib;
pipe config.cmpSourcePlugins [ pipe config.cmpSourcePlugins [
# All known source names # All known source names
attrNames attrNames