<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgitext.git/tests, branch develop</title>
<subtitle>cgitext – CGI for Git extension</subtitle>
<id>https://sayag.it/cgitext.git/atom/tests?h=develop</id>
<link rel='self' href='https://sayag.it/cgitext.git/atom/tests?h=develop'/>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/'/>
<updated>2026-09-08T03:07:45Z</updated>
<entry>
<title>diff: show the default from ref in the refs panel</title>
<updated>2026-09-08T03:07:45Z</updated>
<author>
<name>Saya Andy</name>
<email>saya.andy@posteo.com</email>
</author>
<published>2026-09-08T03:07:45Z</published>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/commit/?id=60a59f650da76dd95f6c6221287b2745b7e44291'/>
<id>urn:sha1:60a59f650da76dd95f6c6221287b2745b7e44291</id>
<content type='text'>
By default a diff against a ref is shown as that ref against its
parent, but the refs panel left the from picker empty, so the
controls described a different diff than the page showed.  When
no from ref is given, preselect the to ref with one extra commit
back, which is the parent of the (stepped) to rev, and reuse the
same values in the flip link.
</content>
</entry>
<entry>
<title>diff: allow stepping back N commits from the selected refs</title>
<updated>2026-09-07T17:11:57Z</updated>
<author>
<name>Saya Andy</name>
<email>saya.andy@posteo.com</email>
</author>
<published>2026-09-07T17:11:57Z</published>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/commit/?id=3e40b846456e4efc06ece7180ef152e053114385'/>
<id>urn:sha1:3e40b846456e4efc06ece7180ef152e053114385</id>
<content type='text'>
The ref pickers can only select the exact ref that is shown.
Add an offset input next to each picker (idoff and id2off), whose
value is the number of commits to step back, so any ancestor of a
branch or tag can be compared without typing a rev into the url by
hand.  An apply button submits the values typed there, since text
inputs cannot be auto-submitted on their own; the flip link swaps
the offsets along with the refs, and the file-level links carry
them through.

By default both offsets are empty, meaning the selected refs
themselves.  An empty ref submitted from the form is likewise
treated as no ref instead of triggering a bad object name error.
</content>
</entry>
<entry>
<title>diff: add a flip link to the refs panel</title>
<updated>2026-09-07T13:26:15Z</updated>
<author>
<name>Saya Andy</name>
<email>saya.andy@posteo.com</email>
</author>
<published>2026-09-07T13:26:15Z</published>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/commit/?id=3b18a7d8c9608ed0bf13d546018f44e703c62e11'/>
<id>urn:sha1:3b18a7d8c9608ed0bf13d546018f44e703c62e11</id>
<content type='text'>
The from and to refs of a diff can only be swapped by editing the
url by hand.  Add a flip link to the refs panel that opens the same
diff with the refs swapped, carrying the current head and options.
</content>
</entry>
<entry>
<title>diff: split refs and other options into separate panels</title>
<updated>2026-09-07T07:35:13Z</updated>
<author>
<name>Saya Andy</name>
<email>saya.andy@posteo.com</email>
</author>
<published>2026-09-07T07:07:24Z</published>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/commit/?id=8f95dce3ece6eccf240ed0b994fb267bf390bf30'/>
<id>urn:sha1:8f95dce3ece6eccf240ed0b994fb267bf390bf30</id>
<content type='text'>
The diff controls panel mixed the from/to ref pickers with the
rendering options (context, space, mode). Split it into two panels,
stacked vertically: one for the refs and one for the other options,
so each groups related controls.
</content>
</entry>
<entry>
<title>diff: pick refs from web ui</title>
<updated>2026-08-15T15:17:12Z</updated>
<author>
<name>Saya Andy</name>
<email>saya.andy@posteo.com</email>
</author>
<published>2026-08-15T15:17:12Z</published>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/commit/?id=61aa4378441859ed2851db01d5d1b01ed1aa2458'/>
<id>urn:sha1:61aa4378441859ed2851db01d5d1b01ed1aa2458</id>
<content type='text'>
Beforehand the choice between two refs in diff could not be changed from
web ui (only via url query), and by default it was current and previous
commit. Now it is doable with dropdown menus.
</content>
</entry>
<entry>
<title>tests: check that a misconfigured repo.path is reported</title>
<updated>2026-07-30T05:27:47Z</updated>
<author>
<name>Saya Andy</name>
<email>saya.andy@posteo.com</email>
</author>
<published>2026-07-30T05:27:47Z</published>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/commit/?id=1614f25c38d5dd1817cf7651b2fc5e07503fc454'/>
<id>urn:sha1:1614f25c38d5dd1817cf7651b2fc5e07503fc454</id>
<content type='text'>
Check that a repo.path which does not exist or is not a repository is
reported, for the summary page, for an unknown page name and for the ci
page.

cgit used to hang on these requests rather than fail, so the helper puts a
deadline on each one: a regression should fail the test instead of wedging
the suite.

Signed-off-by: Saya Andy &lt;saya.andy@posteo.com&gt;
</content>
</entry>
<entry>
<title>ui-ci: let a ci-filter decide whether the tab is shown</title>
<updated>2026-07-30T05:27:31Z</updated>
<author>
<name>Saya Andy</name>
<email>saya.andy@posteo.com</email>
</author>
<published>2026-07-30T05:27:31Z</published>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/commit/?id=7162aef3344a4f4f2d7edd2f214d805bd744c20c'/>
<id>urn:sha1:7162aef3344a4f4f2d7edd2f214d805bd744c20c</id>
<content type='text'>
cgit cannot know whether the ref being viewed actually has a pipeline, so
the "ci" tab is offered for every ref and only reveals a missing one once
followed. Probing the ci system from cgit is not an option: the tab is
part of the page header, so it would mean a blocking request for every
page of every repository, cgit links no http client, and job pages are
usually not readable anonymously.

Add a ci filter instead, which receives the ref, whether it is a branch or
a tag, and the expanded url, and answers with its exit status. This keeps
credentials, timeouts and caching in a script, where they belong;
filters/ci-jenkins.sh demonstrates all three against Jenkins' REST API.

The verdict is memoized, so the filter runs once per request rather than
once for the tab and again for the redirect, and it governs the page as
well as the tab, so a hidden tab cannot be reached by typing the url.

Signed-off-by: Saya Andy &lt;saya.andy@posteo.com&gt;
</content>
</entry>
<entry>
<title>ui-ci: add a "ci" tab which redirects to an external ci system</title>
<updated>2026-07-30T05:26:52Z</updated>
<author>
<name>Saya Andy</name>
<email>saya.andy@posteo.com</email>
</author>
<published>2026-07-30T05:26:52Z</published>
<link rel='alternate' type='text/html' href='https://sayag.it/cgitext.git/commit/?id=b4b4f2325db71041f38902143b28bae94762b111'/>
<id>urn:sha1:b4b4f2325db71041f38902143b28bae94762b111</id>
<content type='text'>
Add a "ci" page which redirects to an external ci system for the ref
being viewed, along with a tab for it in the repository header.

The target is a url template, configurable globally or per repository,
with separate settings for branches and tags because pipelines for the
two commonly live at different locations: on a Jenkins multibranch
pipeline a branch is at job/&lt;name&gt;/job/&lt;ref&gt; while a tag is at
job/&lt;name&gt;/view/tags/job/&lt;ref&gt;. $ref, $repo and $slug are substituted,
$slug being the repository url with any ".git" suffix removed and slashes
replaced by dashes, which is the shape job names usually take.

An explicit repo.ci-url drops the branch and tag urls the repository
would otherwise inherit from the global settings, as it could never take
effect otherwise.

The expansion is written to the Location header verbatim rather than
through cgit_redirect(), which percent-encodes '?', '=' and '%' and would
corrupt any url carrying a query string. An expansion containing CR or LF
is refused so that it cannot smuggle in further headers.

Signed-off-by: Saya Andy &lt;saya.andy@posteo.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://sayag.it/cgitext.git/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://sayag.it/cgitext.git/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>
</feed>
