<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/tests, branch jd/zx2c4-deployment</title>
<subtitle>cgit itself, for testing</subtitle>
<id>https://git.untode.su/cgit/atom?h=jd%2Fzx2c4-deployment</id>
<link rel='self' href='https://git.untode.su/cgit/atom?h=jd%2Fzx2c4-deployment'/>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/'/>
<updated>2026-09-18T11:51:15Z</updated>
<entry>
<title>ui-shared: fix the Expires header on error pages</title>
<updated>2026-09-18T11:51:15Z</updated>
<author>
<name>Konstantin Ryabitsev</name>
<email>konstantin@linuxfoundation.org</email>
</author>
<published>2026-08-25T15:07:25Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=156e859aad4c98a169ce4c49e839cae41a28f432'/>
<id>urn:sha1:156e859aad4c98a169ce4c49e839cae41a28f432</id>
<content type='text'>
page.expires is an absolute time: the normal path seeds it from
page.modified and adds the relevant TTL in seconds. The error page
instead assigns cache-dynamic-ttl directly, which is a count of minutes
and carries no base, so every error page cgit has produced since
"ui-shared: cache errors for dynamic TTL" reports

  Expires: Thu, 01 Jan 1970 00:00:05 GMT

five seconds past the epoch, which is the value of the default TTL read
as seconds. The intent of that change was to stop errors being cached
forever; the effect is that they are never cached at all, since every
downstream cache is told the response was already stale.

Seed the value from page.modified and scale the TTL to seconds, matching
what calc_ttl() does for ordinary pages. prepare_context() sets
page.modified before anything can produce an error page, so the base is
always available.

Add a test. The header can be checked without any date arithmetic: a TTL
of zero has to reproduce Last-Modified exactly, and a non-zero one has
to differ from it without falling back to the epoch.

Fixes: c5975ae ("ui-shared: cache errors for "dynamic TTL"")
Signed-off-by: Konstantin Ryabitsev &lt;konstantin@linuxfoundation.org&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>tests: t0107: support older and/or non-GNU tar</title>
<updated>2020-12-29T20:06:17Z</updated>
<author>
<name>Todd Zullinger</name>
<email>tmz@pobox.com</email>
</author>
<published>2020-12-29T19:18:01Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=bd6f5683f6cde4212364354b3139c1d521f40f39'/>
<id>urn:sha1:bd6f5683f6cde4212364354b3139c1d521f40f39</id>
<content type='text'>
The untar tests for various compression algorithms use shortcut options
from GNU tar to handle decompression.  These options may not be provided
by non-GNU tar nor even by slightly older GNU tar versions which ship on
many systems.

An example of the latter case is the --zstd option.  This was added in
GNU tar-1.32 (2019-02-23)¹.  This version of tar is not provided by
CentOS/RHEL, in particular.  In Debian, --zstd has been backported to
the tar-1.30 release.

Avoid the requirement on any specific implementations or versions of tar
by piping decompressed output to tar.  This is compatible with older GNU
tar releases as well as tar implementations from other vendors.  (It may
also be a slight benefit that this more closely matches what the
snapshot creation code does.)

¹ Technically, the --zstd option was first released in tar-1.31
  (2019-01-02), but this release was very short-lived and is no longer
  listed on the GNU Tar release page.

Signed-off-by: Todd Zullinger &lt;tmz@pobox.com&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>tests: try with commit-graph</title>
<updated>2020-10-21T22:04:10Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-10-21T20:16:57Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=adcc4f822fe11836e5f942fc1ae0f00db4eb8d5f'/>
<id>urn:sha1:adcc4f822fe11836e5f942fc1ae0f00db4eb8d5f</id>
<content type='text'>
Git 2.24.0 enabled commit-graph by default and caused crashes without
necessary update. Let's test to work with commit-graph.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>tests: do not copy snapshots to /tmp/</title>
<updated>2020-10-21T22:03:01Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-10-21T19:31:52Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=a1039ab17591cc531c877bc693088fd2e45c97ff'/>
<id>urn:sha1:a1039ab17591cc531c877bc693088fd2e45c97ff</id>
<content type='text'>
No idea why this was added... Possibly to inspect the snapshot manually?
Let's drop it.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>global: replace hard coded hash length</title>
<updated>2020-10-20T21:57:12Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-10-20T21:46:09Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=a4de0e810b69710c3b32f6d253d80d16dec09f36'/>
<id>urn:sha1:a4de0e810b69710c3b32f6d253d80d16dec09f36</id>
<content type='text'>
With sha1 we had a guaranteed length of 40 hex chars. This changes now
that we have to support sha256 with 64 hex chars... Support both.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>global: replace references to 'sha1' with 'oid'</title>
<updated>2020-10-20T21:57:12Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-10-20T21:32:45Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=779631c6dc23c15bbbf45a7c7ab9fffb619037b7'/>
<id>urn:sha1:779631c6dc23c15bbbf45a7c7ab9fffb619037b7</id>
<content type='text'>
For some time now sha1 is considered broken and upstream is working to
replace it with sha256. Replace all references to 'sha1' with 'oid',
just as upstream does.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>git: update to v2.29.0</title>
<updated>2020-10-19T18:27:28Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-10-06T14:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=629659d2cffbf059374fc53e6400ff0bebe1ddde'/>
<id>urn:sha1:629659d2cffbf059374fc53e6400ff0bebe1ddde</id>
<content type='text'>
Update to git version v2.29.0, this requires changes for these
upstream commits:

* dbbcd44fb47347a3fdbee88ea21805b7f4ac0b98
  strvec: rename files from argv-array to strvec

* 873cd28a8b17ff21908c78c7929a7615f8c94992
  argv-array: rename to strvec

* d70a9eb611a9d242c1d26847d223b8677609305b
  strvec: rename struct fields

* 6a67c759489e1025665adf78326e9e0d0981bab5
  test-lib-functions: restrict test_must_fail usage

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-snapshot: add support for zstd compression</title>
<updated>2020-03-13T01:56:39Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-02-26T08:12:21Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=892ba8c3cc0617d2087a2337d8c6e71524d7b49c'/>
<id>urn:sha1:892ba8c3cc0617d2087a2337d8c6e71524d7b49c</id>
<content type='text'>
This patch adds support for zstd [0] compressed snapshots (*.tar.zst).
We enable multiple working threads (-T0), but keep default compression
level. The latter can be influenced by environment variable.

[0] https://www.zstd.net/

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>tests: add tests for xz compressed snapshots</title>
<updated>2020-03-13T01:56:39Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2020-02-26T08:19:00Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=cc230bf04456cc0ca82c6251b1624425eb7a7153'/>
<id>urn:sha1:cc230bf04456cc0ca82c6251b1624425eb7a7153</id>
<content type='text'>
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>ui-snapshot: add support for lzip compression</title>
<updated>2020-02-26T01:57:40Z</updated>
<author>
<name>Hanspeter Portner</name>
<email>dev@open-music-kontrollers.ch</email>
</author>
<published>2019-08-16T21:40:19Z</published>
<link rel='alternate' type='text/html' href='https://git.untode.su/cgit/commit/?id=06671f4b2167951c6b46401b0f5ac8af4d48d50a'/>
<id>urn:sha1:06671f4b2167951c6b46401b0f5ac8af4d48d50a</id>
<content type='text'>
This patch adds support for lzip [1] compressed snapshots (*.tar.lz)

[1] https://www.nongnu.org/lzip/

Signed-off-by: Hanspeter Portner &lt;dev@open-music-kontrollers.ch&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
</feed>
