Skip to content
This repository was archived by the owner on Nov 17, 2026. It is now read-only.

CI: keep the downloaded Joomla package between runs - #34

Merged
codeling merged 1 commit into
mainfrom
ccr-f557f83f-uk6a4f
Nov 9, 2026
Merged

codeling merged 1 commit into
mainfrom
ccr-f557f83f-uk6a4f

Conversation

@codeling

@codeling codeling commented Nov 9, 2026

Copy link
Copy Markdown
Owner

What

The integration job now sets DOWNLOAD_CACHE=~/.cache/bfstop-ci and keeps that directory with actions/cache (pinned, v6.1.0), using one key per Joomla version. Before this, every job in the matrix downloaded the same Joomla package (tens of megabytes) from GitHub again on every run.

How

The download is done by the plugin's tests/ci/install-joomla.sh, through its new tests/ci/fetch-verified.sh (codeling/bfstop#266):

  • A cached copy is used only if its SHA-256 is the expected one. Otherwise it is downloaded again and the copy is replaced.
  • A download is retried on transient errors (timeouts, 429, 5xx), and Retry-After is honoured.

This PR's CI uses the plugin branch of the same name, which has that script. If the plugin's main doesn't have the script yet, the variable is ignored and the cache stays empty: actions/cache only warns that there is nothing to save, and the job doesn't fail. Merging codeling/bfstop#266 first avoids that.

Testing

tests/lint/check-workflows.php passes (9 references, 0 errors) and the workflow parses as YAML. The plugin PR describes how the cache and retry behaviour was checked locally.


Generated by Claude Code

The plugin's tests/ci/install-joomla.sh takes the Joomla package from
DOWNLOAD_CACHE if one there has the expected SHA-256 (else downloads it
and keeps it there); actions/cache keeps that directory per Joomla
version, so the jobs needn't fetch the same tens of megabytes from
GitHub every run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFJFMPv7CSqgJJ93QJvYfL
@codeling
codeling merged commit 149a618 into main Nov 9, 2026
15 checks passed
@codeling
codeling deleted the ccr-f557f83f-uk6a4f branch November 9, 2026 19:57
codeling added a commit to codeling/bfstop that referenced this pull request Nov 17, 2026
CI: keep the downloaded Joomla package between runs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants