Skip to content

Caching and artifacts ​

Encyclopedia home · Search machine-readable catalog

The broken snippets are deliberate negative examples. Use only in an isolated fixture repository or lab.

F055 ​

Artifact name differs in consumer

Symptom. unable to find artifact.

Root cause. Producer publishes artifact wheel.

Broken example

yaml
with: {name: python-package}

Corrected example

yaml
with: {name: wheel}

Verification. Check a single canonical name and input path.

Correction validation syntax-validated.

F056 ​

Upload path points to wrong directory

Symptom. no files were found.

Root cause. Build tool outputs files under dist.

Broken example

yaml
with: {path: package/*.whl}

Corrected example

yaml
with: {path: "dist/*.whl", if-no-files-found: error}

Verification. Inspect archive contents and fail on empty patterns.

Correction validation syntax-validated.

F057 ​

Matrix jobs upload identical artifact names

Symptom. conflict 409 during upload.

Root cause. Artifact names collide across parallel jobs.

Broken example

yaml
with: {name: junit, path: report.xml}

Corrected example

yaml
with: {name: "junit-${{ matrix.python }}", path: report.xml}

Verification. Verify one artifact per runtime.

Correction validation syntax-validated.

F058 ​

Stale dependency cache survives lockfile changes

Symptom. dependency state drifts between runs.

Root cause. Cache key omitted dependency fingerprint.

Broken example

yaml
key: python-cache

Corrected example

yaml
key: "pip-${{ runner.os }}-${{ hashFiles('requirements.txt') }}"

Verification. Modify lock input and confirm new cache key.

Correction validation syntax-validated.

F059 ​

Cache hit mistaken for dependency install

Symptom. expected package absent from environment.

Root cause. Cache only stores downloads.

Broken example

yaml
if: steps.cache.outputs.cache-hit != 'true'
run: uv sync --locked

Corrected example

yaml
run: uv sync --locked

Verification. Test a clean checkout with warm cache.

Correction validation syntax-validated.

F060 ​

Wrong download extraction path

Symptom. file not found.

Root cause. Download action extracted artifact under received.

Broken example

bash
cat dist/SHA256SUMS

Corrected example

bash
cd received
sha256sum --check SHA256SUMS

Verification. Print download tree and verify hashes inside its directory.

Correction validation syntax-validated.

F061 ​

Artifact expired before promotion

Symptom. artifact not found during delayed approval.

Root cause. Retention is shorter than review time.

Broken example

yaml
retention-days: 1

Corrected example

yaml
retention-days: 7

Verification. Compare policy and promotion SLA. Use a registry for durable release artifacts.

Correction validation syntax-validated.

F062 ​

GitHub artifact action copied to incompatible Gitea

Symptom. artifact runtime reports unsupported service or endpoint.

Root cause. Backend protocol versions differ.

Broken example

yaml
uses: actions/upload-artifact@v4

Corrected example

yaml
uses: actions/upload-artifact@v3

Verification. Use a documented compatible action for the installed Gitea release. GitHub.com requires v4 or newer supported protocol.

Correction validation syntax-validated.