Commit Graph

20 Commits

Author SHA1 Message Date
Chris Sherwood ceabc2c72c ci: follow redirects correctly in collection URL validator
The prior --max-filesize 1 aborted on the 301 redirect page's own body
before curl could follow it to the mirror, so the validator reported HTTP
301 for every URL and failed the whole catalog (100+ URLs that are actually
valid). download.kiwix.org 301-redirects both valid and dead files to a
mirror, so the redirect must be followed to learn the real status.

Drop --max-filesize and rely on Range: bytes=0-0 (mirrors return 206 after
one byte) with the body discarded to /dev/null and --max-time as the bound.
Verified against a sample across devdocs/libretexts/stack_exchange/maps/zimit
(all 206) and a known-dead URL (404).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 13:16:54 -07:00
Chris Sherwood 330774312c ci: make collection URL validator robust to Range-ignoring mirrors
download.kiwix.org redirects to mirrors, some of which ignore the Range
header and stream the full body, so `curl --max-filesize 1` aborts with exit
63 (CURLE_FILESIZE_EXCEEDED). Under the step's default `bash -eo pipefail`,
that non-zero exit in the `HTTP_CODE=$(...)` assignment killed the whole job
on the first such URL, regardless of the URL being valid. The failure was
non-deterministic (depended which mirror the redirect picked).

Add `|| true` so the assignment can't trip `set -e`; curl still writes the
real %{http_code} (200/206) for the existing check, and a genuine 404 still
returns 404 with exit 0 and is still caught.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 13:09:23 -07:00
Jake Turner bd20ba87bd ci: ensure tags are force fetched on semantic release 2026-04-21 14:26:28 -07:00
Salman Chishti d474c142a1 ci: upgrade GitHub Actions to latest versions (#362) 2026-04-03 14:26:50 -07:00
Salman Chishti 982dceb949
ci: upgrade checkout action version (#361) 2026-03-25 14:31:53 -07:00
Jake Turner 6a1d0e83f9
ci: bump checkout action veon build-sidecar and validate-collections 2026-03-25 21:29:51 +00:00
Jake Turner edcfd937e2
ci: add build check for PRs 2026-03-25 20:41:53 +00:00
Jake Turner efe6af9b24
ci: add collection URLs validation check 2026-03-24 05:31:53 +00:00
Jake Turner b40d8190af
ci: add sidecar-updater build action 2026-03-19 23:08:13 +00:00
Jake Turner 5113cc3eed
build: disk-collector sidecar and associated workflows 2026-03-15 00:00:33 +00:00
Jake Turner e7ab2b197c build: add OCI image labels to Dockerfile 2026-03-11 14:08:09 -07:00
Jake Turner a77edcaac3 ci: tag with and without v prefix 2026-03-11 14:08:09 -07:00
Jake Turner 41eb30d84d ops: support RC versions 2026-03-03 20:51:38 -08:00
Jake Turner a3f10dd158 fix: update default branch name 2026-03-01 16:08:46 -08:00
Jake Turner fcb696587a docs: fix release action to include all commit info 2026-02-11 22:48:27 -08:00
Jake Turner 4ac261477a feat: Unified release note management 2026-02-11 12:40:39 -08:00
Jake Turner 7acfd33d5c
feat: version footer and fix CI version handlng 2025-11-18 15:51:45 -08:00
Jake Turner 7c2b0964dc feat: container controls & convienience scripts 2025-08-08 15:07:32 -07:00
Jake Turner d0b451e969 build: update dockerfile location 2025-07-11 13:30:08 -07:00
Jake Turner 97434a6f5f build: github actions 2025-07-11 11:18:54 -07:00