srid / emanote

Emanate a structured view of your plain-text notes

Home Page:https://emanote.srid.ca

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Verify in CI: small runtime dependencies

srid opened this issue · comments

Test in CI that the emanote closure size doesn't bloat up again (#295)

Current:

❯ nix path-info --json -S .#default | jq 'map(select(.closureSize > 0.4e9)) | sort_by(.closureSize) | map([.path, .closureSize])'
warning: Using saved setting for 'extra-substituters = https://cache.garnix.io' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=' from ~/.local/share/nix/trusted-settings.json.
[
  [
    "/nix/store/3h9p5bi32263wqdnpf63f1rw0c722fln-emanote-1.0.1.0",
    542715032
  ]
]

Potential test: ensure that the following command ("Show every path whose closure is bigger than 1 GB, sorted by closure size:") returns empty results:

❯ nix path-info --json -S .#default | jq 'map(select(.closureSize > 1e9)) | sort_by(.closureSize) | map([.path, .closureSize])'  
warning: Using saved setting for 'extra-substituters = https://cache.garnix.io' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=' from ~/.local/share/nix/trusted-settings.json.
[]

Added the check to Jenkins: #475