Commit Graph

7410 Commits

Author SHA1 Message Date
Dee Anzorge
f124c73686 nginx: change etags for statically compressed files served from store
Per RFC 9110, [section 8.8.1][1], different representations of the same
resource should have different Etags:

> A strong validator is unique across all versions of all
> representations associated with a particular resource over time.
> However, there is no implication of uniqueness across representations
> of different resources (i.e., the same strong validator might be in
> use for representations of multiple resources at the same time and
> does not imply that those representations are equivalent)

When serving statically compressed files (ie, when there is an existing
corresponding .gz/.br/etc. file on disk), Nginx sends the Etag marked
as strong. These tags should be different for each compressed format
(as shown in  an explicit example in section [8.8.3.3][2] of the RFC).
Upstream Etags are composed of the file modification timestamp and
content length, and the latter generally changes between these
representations.

Previous implementation of Nix-specific Etags for things served from
store used the store hash. This is fine to share between different
files, but it becomes a problem for statically compressed versions of
the same file, as it means Nginx was serving different representations
of the same resource with the same Etag, marked as strong.

This patch addresses this by imitating the upstream Nginx behavior, and
appending the value of content length to the store hash.

[1]: https://www.rfc-editor.org/rfc/rfc9110.html#name-validator-fields
[2]:
https://www.rfc-editor.org/rfc/rfc9110.html#name-example-entity-tags-varying
2024-01-13 22:07:50 +01:00
Janik
6be9d4fc21
Merge pull request #266283 from Noodlesalat/ping-exporter-1.1.0
ping_exporter: init at 1.1.0
2023-12-31 20:50:30 +01:00
Guillaume Girol
a5cbc50912
Merge pull request #276385 from majiru/drawterm-tests
drawterm: unstable-2023-09-03 -> unstable-2023-12-23 & nixos tests
2023-12-31 15:41:26 +01:00
Maciej Krüger
b8a8c2cf15
Merge pull request #266332 from nbraud/nixos/tests/ssh-agent-auth
Add NixOS test for `security.pam.enableSSHAgentAuth`
2023-12-31 10:38:36 +01:00
zowoq
41e3e7ef30 buildbot: 3.10.0 -> 3.10.1
Changelog: https://github.com/buildbot/buildbot/releases/tag/v3.10.1
2023-12-30 11:25:04 +10:00
Maximilian Bosch
d25fdec5b3
Merge pull request #212430 from onny/nextcloud-cleanup
nixos/nextcloud: Move options into now freeForm extraOptions
2023-12-29 23:44:24 +01:00
nikstur
5a9c0b7600
Merge pull request #267983 from nikstur/replace-simple-activation-2
nixos: replace activationScripts 2/x
2023-12-29 16:29:11 +01:00
Bobby Rong
75e6da4bce
Merge pull request #277153 from trofi/nixosTests.allDrivers.anbox-avoid-aliases
nixosTests.allDrivers.anbox: avoid use of aliases
2023-12-29 21:59:43 +08:00
nikstur
1c22b64fc9 nixos/tests/nextcloud: replace activationScript
Replace with a seprate systemd service
2023-12-29 03:41:45 +01:00
nikstur
36f2ab21ea nixos/tests/incron: replace activcationScript via tmpfiles 2023-12-29 03:21:36 +01:00
Jonas Heinrich
dd8c96379f nixos/nextcloud: Move options into now freeForm extraOptions 2023-12-29 01:04:46 +01:00
Martin Weinelt
fba845e36f
Merge pull request #277235 from adamcstephens/lxd-agent/path
nixos/lxd-agent: add system path for exec
2023-12-28 21:28:15 +01:00
Adam Stephens
3f8b1d2d26
nixos/lxd-agent: add system path for exec 2023-12-28 14:27:05 -05:00
Lassulus
14912a23d1
Merge pull request #223412 from Luflosi/test-boot-from-zfs
nixos/tests/installer: test /boot on ZFS
2023-12-28 16:25:16 +01:00
Lassulus
07c7d9361a
Merge pull request #272963 from Luflosi/nixos/tests/ft2-clone-cleanup
nixos/tests/ft2-clone: cleanup
2023-12-28 16:18:43 +01:00
Bobby Rong
af9ae66959
Merge pull request #277127 from bobby285271/upd/nixosTests.mate
nixosTests.mate: Extend the test
2023-12-28 21:51:33 +08:00
Sergei Trofimovich
15a672bf1f nixosTests.tomcat: add lib to imports to fix eval
Without the change eval fails as:

    $ nix build --no-link -f. nixosTests.tomcat

        error: undefined variable 'lib'
2023-12-28 06:50:22 +00:00
Robert Hensing
ddd6c029b5
Merge pull request #276986 from trofi/dockerTools.tests.docker-tools-no-aliases
dockerTools.tests.docker-tools: user `runCommand` instead of `runComm…
2023-12-28 00:50:45 +01:00
Sergei Trofimovich
64395b676f nixosTests.allDrivers.anbox: avoid use of aliases
Before the change eval of a test failed with disabled aliases as:

    $ nix build -f. nixosTests.allDrivers.anbox --arg config '{ allowAliases = false; }'
    ...
    error: attribute 'linuxPackages_5_15' missing
2023-12-27 18:36:19 +00:00
Bobby Rong
4a31c957c1
nixosTests.mate: Extend the test
It is always nice to have some OCR tests and a coredump check.
2023-12-27 23:01:58 +08:00
Yt
bd5ff67266
Merge pull request #261789 from onny/rspamd-trainer
nixos/rspamd-trainer: init; rspamd-trainer: init at unstable-2023-11-27
2023-12-27 11:28:42 +00:00
adisbladis
14f87e678a
Merge pull request #277074 from adisbladis/maintainers-treewide-various-adisbladis-remove
maintainers: Remove adisbladis as maintainer from various packages
2023-12-28 00:28:00 +13:00
Yt
aae26351e7
Merge pull request #276542 from scvalex/livebook-0_12_0
livebook: 0.11.3 -> 0.12.0
2023-12-27 11:22:37 +00:00
adisbladis
c24958f4c7 maintainers: Remove adisbladis as maintainer from various packages
These are a handful of packages I no longer use or/and have lost interest in.
2023-12-27 23:13:50 +13:00
Jonas Heinrich
80d88736da nixos/rspamd-trainer: init; rspamd-trainer: init at unstable-2023-11-27 2023-12-27 10:35:53 +01:00
nikstur
c9569af3e0
Merge pull request #271326 from philiptaron/shutdown.target
treewide: depend on `shutdown.target` if `DefaultDependencies=no` in almost every case
2023-12-27 08:33:26 +01:00
Yt
56b8564a7d
Merge pull request #276525 from scvalex/livebook-configurable-package
livebook: configurable package and extraPackages
2023-12-27 07:30:25 +00:00
Martin Weinelt
d4c4e0269d
Merge pull request #274460 from mweinelt/kea-ipc-runtimedir
nixos/kea: return to merged runtime directory; preserve runtime directories
2023-12-27 02:08:14 +01:00
Sergei Trofimovich
4bb39bbc65 dockerTools.tests.docker-tools: user runCommand instead of runCommandNoCC alias
Noticed when evaluated tests without aliases enabled.
2023-12-26 22:42:38 +00:00
Felix Bühler
d2e4e09de4
Merge pull request #276552 from r-ryantm/auto-update/freshrss
freshrss: 1.22.1 -> 1.23.0
2023-12-26 18:19:53 +01:00
Alexandru Scvortov
0ae9c34391 livebook: configurable package and extraPackages
Also fix examples to not include a semicolon in the .env file.
2023-12-25 21:47:14 +00:00
Adam C. Stephens
c52e9de9ae
Merge pull request #275895 from adamcstephens/lxcfs/5
lxcfs: 4.0.12 -> 5.0.4
2023-12-25 08:54:08 -05:00
Midnight Veil
ed1a16e886 munin: fix missing Date::Parse module error & make test fail w/o a fix
Upstream change: https://github.com/munin-monitoring/munin/pull/1502
2023-12-25 09:13:32 +01:00
Felix Buehler
6fc02c6c6f nixos/freshrss: fix test http-auth 2023-12-25 01:01:20 +01:00
Alexandru Scvortov
da08af643a livebook: 0.11.3 -> 0.12.0 2023-12-24 21:04:45 +00:00
Doron Behar
067338523e
Merge pull request #275281 from eliandoran/feature/mympd-service
nixos/mympd: init
2023-12-24 18:43:03 +00:00
Nudelsalat
f3fb9a9134 nixos/tests/prometheus-ping-exporter: init 2023-12-24 18:11:31 +01:00
nicoo
9b8812794b nixosTests.ssh-agent-auth: Test both sudo and sudo-rs 2023-12-24 16:04:11 +00:00
nicoo
7e70c08470 nixosTests.ssh-agent-auth: init 2023-12-24 16:00:22 +00:00
Jacob Moody
c16ffa0a12 drawterm: add nixos tests 2023-12-23 22:53:49 -06:00
Thiago Kenji Okada
7480c980f7
Merge pull request #276287 from gepbird/opentabletdriver-bump
opentabletdriver: 0.6.3.0 -> 0.6.4.0
2023-12-23 23:01:42 +00:00
Gutyina Gergő
77a17f4be6 opentabletdriver: 0.6.3.0 -> 0.6.4.0
Co-authored-by: Thiago Kenji Okada <thiagokokada@gmail.com>
2023-12-23 21:16:43 +00:00
Mario Rodas
2ba8c30b4e
Merge pull request #252790 from anthonyroussel/gns3-nixos-module
nixos/gns3-server: init
2023-12-23 09:27:39 -05:00
Bobby Rong
5cb00274f2
Merge pull request #276060 from bobby285271/fix/cinnamon-sessionpath
nixos/cinnamon: Unbreak sessionPath option
2023-12-23 21:05:08 +08:00
Bobby Rong
c2bc30ee49
nixosTests.cinnamon{,-wayland}: Add test for sessionPath option 2023-12-23 10:09:35 +08:00
Adam Stephens
56e9ca19b3
lxcfs: 4.0.12 -> 5.0.4
Diff: https://github.com/lxc/lxcfs/compare/lxcfs-4.0.12...lxcfs-5.0.4

Changelog: https://linuxcontainers.org/lxcfs/news/
2023-12-21 23:10:27 -05:00
Pol Dellaiera
783163f959
Merge pull request #275429 from drupol/code-server/restore
code-server: restore and bump (4.16.1 -> 4.19.1)
2023-12-21 21:03:41 +01:00
Doron Behar
da384d0aa6
Merge pull request #275257 from schuelermine/update/musescore/4.2.0
musescore: 4.1.1 -> 4.2.0
2023-12-21 16:18:59 +00:00
Jonas Heinrich
08b802c343
Merge pull request #275718 from symphorien/fix-btrbk-tests
nixos/tests/btrbk-section-order.nix: fix test
2023-12-21 16:24:10 +01:00
Elian Doran
d3ef138c1b nixos/mympd: add nixos test 2023-12-21 16:02:10 +02:00