llama-swap: 156 -> 165
Diff: https://github.com/mostlygeek/llama-swap/compare/v156...v165 Changelog: https://github.com/mostlygeek/llama-swap/releases/tag/v165
This commit is contained in:
@@ -16,13 +16,13 @@ let
|
|||||||
in
|
in
|
||||||
buildGoModule (finalAttrs: {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "llama-swap";
|
pname = "llama-swap";
|
||||||
version = "156";
|
version = "165";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mostlygeek";
|
owner = "mostlygeek";
|
||||||
repo = "llama-swap";
|
repo = "llama-swap";
|
||||||
tag = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-z0262afVjsdGe6WPoWO1wbccLO538fXBuxOOqLnJHRU=";
|
hash = "sha256-3NlA4LnAJ1qCy1+Jcv6wrPg/7trQhpwx00Sk98V7ZdY=";
|
||||||
# populate values that require us to use git. By doing this in postFetch we
|
# populate values that require us to use git. By doing this in postFetch we
|
||||||
# can delete .git afterwards and maintain better reproducibility of the src.
|
# can delete .git afterwards and maintain better reproducibility of the src.
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
@@ -38,12 +38,15 @@ buildGoModule (finalAttrs: {
|
|||||||
vendorHash = "sha256-5mmciFAGe8ZEIQvXejhYN+ocJL3wOVwevIieDuokhGU=";
|
vendorHash = "sha256-5mmciFAGe8ZEIQvXejhYN+ocJL3wOVwevIieDuokhGU=";
|
||||||
|
|
||||||
passthru.ui = callPackage ./ui.nix { llama-swap = finalAttrs.finalPackage; };
|
passthru.ui = callPackage ./ui.nix { llama-swap = finalAttrs.finalPackage; };
|
||||||
passthru.npmDepsHash = "sha256-Sbvz3oudMVf+PxOJ6s7LsDaxFwvftNc8ZW5KPpbI/cA=";
|
passthru.npmDepsHash = "sha256-F6izMZY4554M6PqPYjKcjNol3A6BZHHYA0CIcNrU5JA=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
versionCheckHook
|
versionCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# required for testing
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
@@ -71,6 +74,29 @@ buildGoModule (finalAttrs: {
|
|||||||
"misc/simple-responder"
|
"misc/simple-responder"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkFlags =
|
||||||
|
let
|
||||||
|
skippedTests = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
|
||||||
|
# Fail only on x86_64-darwin intermittently
|
||||||
|
# https://github.com/mostlygeek/llama-swap/issues/320
|
||||||
|
"TestProcess_AutomaticallyStartsUpstream"
|
||||||
|
"TestProcess_WaitOnMultipleStarts"
|
||||||
|
"TestProcess_BrokenModelConfig"
|
||||||
|
"TestProcess_UnloadAfterTTL"
|
||||||
|
"TestProcess_LowTTLValue"
|
||||||
|
"TestProcess_HTTPRequestsHaveTimeToFinish"
|
||||||
|
"TestProcess_SwapState"
|
||||||
|
"TestProcess_ShutdownInterruptsHealthCheck"
|
||||||
|
"TestProcess_ExitInterruptsHealthCheck"
|
||||||
|
"TestProcess_ConcurrencyLimit"
|
||||||
|
"TestProcess_StopImmediately"
|
||||||
|
"TestProcess_ForceStopWithKill"
|
||||||
|
"TestProcess_StopCmd"
|
||||||
|
"TestProcess_EnvironmentSetCorrectly"
|
||||||
|
];
|
||||||
|
in
|
||||||
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||||
|
|
||||||
# some tests expect to execute `simple-something` and proxy/helpers_test.go
|
# some tests expect to execute `simple-something` and proxy/helpers_test.go
|
||||||
# checks the file exists
|
# checks the file exists
|
||||||
doCheck = canExecute;
|
doCheck = canExecute;
|
||||||
|
|||||||
Reference in New Issue
Block a user