77 Commits
Author SHA1 Message Date
gitea-actions daf025598f chore(release): 0.2.2
Tests / build-dev (push) Failing after 7m47s
Tests / build-prod (push) Skipped
2026-10-23 21:31:47 +00:00
haylan 8612994b84 Update CHANGELOG.md
Tests / build-dev (push) Failing after 8m19s
Tests / build-prod (push) Skipped
2026-10-23 21:30:59 +00:00
gitea-actions 064585b163 chore(release): 0.2.2
Tests / build-dev (push) Failing after 4m13s
Tests / build-prod (push) Skipped
2026-10-23 21:29:18 +00:00
haylan 5d3036aa3f Update CHANGELOG.md
Tests / build-dev (push) Failing after 3m46s
Tests / build-prod (push) Skipped
2026-10-23 21:28:40 +00:00
haylan e03f1a573e Merge pull request 'chore(deps): update dependency phpstan/phpstan to v2.3.1' (#37) from renovate/phpstan-packages into main
Tests / build-dev (push) Failing after 6m44s
Tests / build-prod (push) Skipped
Reviewed-on: #37
2026-10-23 21:27:30 +00:00
haylan 8be9658afa Merge branch 'main' into renovate/phpstan-packages
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Failing after 6m46s
Tests / build-prod (pull_request) Skipped
2026-10-23 21:27:29 +00:00
haylan 24b88605a9 Merge pull request 'fix(ci): push release commit with RELEASE_TOKEN' (#42) from fix/release-token into main
Tests / build-dev (push) Successful in 5m9s
Tests / build-prod (push) Successful in 7m48s
Reviewed-on: #42
2026-10-23 21:27:04 +00:00
haylan ae6eb8616b Merge branch 'main' into renovate/phpstan-packages
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Failing after 5m25s
Tests / build-prod (pull_request) Skipped
2026-10-23 21:14:17 +00:00
haylan b278c2ddb6 Merge branch 'main' into fix/release-token
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 5m25s
Tests / build-prod (pull_request) Successful in 7m39s
2026-10-23 21:13:50 +00:00
haylan 747c770882 Merge pull request 'chore(deps): update symfony to v7.4.21' (#38) from renovate/symfony into main
Tests / build-dev (push) Successful in 5m24s
Tests / build-prod (push) Successful in 7m46s
Reviewed-on: #38
2026-10-23 21:13:42 +00:00
renovate Bot 286eb4d8c0 chore(deps): update dependency phpstan/phpstan to v2.3.1
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Failing after 5m34s
Tests / build-prod (pull_request) Skipped
2026-10-23 21:02:47 +00:00
haylanandClaude Bot ba3d5a2bd6 fix(ci): push release commit with RELEASE_TOKEN
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 5m29s
Tests / build-prod (pull_request) Successful in 8m20s
The built-in GITHUB_TOKEN is rejected by branch protection on main.
Use the Gitea bot's RELEASE_TOKEN, which may bypass it.

Closes #41

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 23:01:34 +02:00
haylan 68993e8f9f Merge branch 'main' into renovate/symfony
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 3m54s
Tests / build-prod (pull_request) Successful in 10m36s
2026-10-23 20:58:02 +00:00
gitea-actions acf292c48a chore(release): 0.2.2 2026-10-22 22:39:20 +00:00
haylan ac7991db30 Merge pull request 'fix: Renovate monolog-bundle rule (#39) and PHP 8.4 security base image' (#40) from fix/renovate-monolog-bundle into main
Tests / build-dev (push) Successful in 7m55s
Tests / build-prod (push) Successful in 8m41s
2026-10-22 22:07:17 +00:00
haylan bb23ae8819 chore(deps): fixed changelog text
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 7m47s
Tests / build-prod (pull_request) Successful in 8m51s
2026-10-23 00:06:17 +02:00
haylanandClaude Bot 0b10cd6a04 fix(docker): always pull the latest PHP 8.4 base image on release builds
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 10m39s
Tests / build-prod (pull_request) Successful in 10m17s
Picks up PHP 8.4.27 for CVE-2026-109618 and CVE-2026-109619 (critical RCE)
via the floating 1-php8.4-alpine tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:59:23 +02:00
haylanandClaude Bot 0707e913bd fix(renovate): exclude symfony/monolog-bundle from the ~7.4 Symfony rule
monolog-bundle is versioned independently (4.x) and has no 7.4 releases,
so the allowedVersions constraint blocked all its updates.

Closes #39

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:59:23 +02:00
renovate Bot 6cb28df046 chore(deps): update symfony to v7.4.21
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 5m4s
Tests / build-prod (pull_request) Successful in 4m39s
2026-10-14 08:26:24 +00:00
haylan 33314bd763 Merge pull request 'Update CHANGELOG.md' (#36) from haylan-patch-1 into main
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Reviewed-on: #36
2026-10-02 11:10:25 +00:00
haylan 04fbbad60f Update CHANGELOG.md
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 1m22s
Tests / build-prod (pull_request) Successful in 1m22s
2026-10-02 11:07:32 +00:00
haylan ee94cd3856 Merge pull request 'chore(release): 0.2.2 — keep all Symfony components on 7.4' (#35) from chore/update-changelog into main
Tests / build-dev (push) Successful in 1m40s
Tests / build-prod (push) Successful in 1m19s
Reviewed-on: #35
2026-10-02 11:04:24 +00:00
haylanandClaude Bot a55647efa4 chore(release): 0.2.2 — keep all Symfony components on 7.4
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m44s
Tests / build-prod (pull_request) Successful in 2m55s
- Add symfony/flex so extra.symfony.require "7.4.*" is enforced for
  transitive components (dependency-injection had drifted to 8.0.15)
- Group Symfony packages in Renovate and restrict them to ~7.4
- Copy symfony.lock in Docker builds so Flex doesn't re-apply recipes
- Add missing 0.2.1 changelog section and cut 0.2.2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 12:58:26 +02:00
haylan e081da19dd Merge pull request 'chore(deps): update symfony packages to v7.4.20' (#33) from renovate/symfony into main
Tests / build-dev (push) Successful in 6m6s
Tests / build-prod (push) Successful in 8m38s
Reviewed-on: #33
2026-10-02 10:29:36 +00:00
haylan f4490c2401 Merge pull request 'chore(deps): update dependency phpstan/phpstan to v2.2.16' (#32) from renovate/phpstan-packages into main
Tests / build-dev (push) Successful in 6m15s
Tests / build-prod (push) Failing after 8m43s
Reviewed-on: #32
2026-10-02 10:29:23 +00:00
haylan cae5049cfd Merge pull request 'chore(deps): update dependency monolog/monolog to v3.12.1' (#34) from renovate/monolog-monolog-3.x-lockfile into main
Tests / build-dev (push) Successful in 6m19s
Tests / build-prod (push) Successful in 5m17s
Reviewed-on: #34
2026-10-02 10:29:04 +00:00
renovate Bot 3610232589 chore(deps): update dependency monolog/monolog to v3.12.1
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m53s
Tests / build-prod (pull_request) Successful in 3m16s
2026-09-29 20:02:53 +00:00
renovate Bot 9e8add655f chore(deps): update symfony packages to v7.4.20
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 5m13s
Tests / build-prod (pull_request) Successful in 5m11s
2026-09-29 16:03:15 +00:00
renovate Bot 25a9eea52f chore(deps): update dependency phpstan/phpstan to v2.2.16
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 4m24s
Tests / build-prod (pull_request) Successful in 4m29s
2026-09-25 10:04:14 +00:00
haylan f4710db3b1 Merge pull request 'chore(deps): update dependency phpstan/phpstan to v2.2.14' (#30) from renovate/phpstan-packages into main
Tests / build-dev (push) Successful in 4m8s
Tests / build-prod (push) Successful in 4m33s
Reviewed-on: #30
2026-09-19 17:58:30 +00:00
renovate Bot fdfdd6d227 chore(deps): update dependency phpstan/phpstan to v2.2.14
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m0s
Tests / build-prod (pull_request) Successful in 2m49s
2026-09-15 18:02:03 +00:00
haylan 2ac230f11c Merge pull request 'chore(deps): update symfony packages to v7.4.19' (#31) from renovate/symfony into main
Tests / build-dev (push) Successful in 1m31s
Tests / build-prod (push) Successful in 1m13s
Reviewed-on: #31
2026-09-15 16:57:54 +00:00
renovate Bot 7255caed34 chore(deps): update symfony packages to v7.4.19
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 3m48s
Tests / build-prod (pull_request) Successful in 2m52s
2026-09-15 08:12:56 +00:00
haylan e8c47d3cc7 Merge pull request 'chore(deps): update dependency monolog/monolog to v3.12.0' (#29) from renovate/monolog-monolog-3.x-lockfile into main
Tests / build-dev (push) Successful in 1m21s
Tests / build-prod (push) Successful in 1m8s
Reviewed-on: #29
2026-09-09 22:19:00 +00:00
haylan 547bced88f Merge branch 'main' into renovate/monolog-monolog-3.x-lockfile
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 3m51s
Tests / build-prod (pull_request) Successful in 7m9s
2026-09-09 22:07:43 +00:00
haylan 299e9109df Merge pull request 'chore(deps): update dependency phpstan/phpstan to v2.2.13' (#28) from renovate/phpstan-packages into main
Tests / build-dev (push) Successful in 3m58s
Tests / build-prod (push) Successful in 7m9s
Reviewed-on: #28
2026-09-09 22:07:32 +00:00
renovate Bot 00e32aa81d chore(deps): update dependency monolog/monolog to v3.12.0
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m49s
Tests / build-prod (pull_request) Successful in 3m24s
2026-09-09 10:03:41 +00:00
renovate Bot b20e804a84 chore(deps): update dependency phpstan/phpstan to v2.2.13
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m23s
Tests / build-prod (pull_request) Successful in 2m35s
2026-09-03 22:03:32 +00:00
haylan e918ec5072 Merge pull request 'chore(deps): update symfony packages to v7.4.18' (#27) from renovate/symfony into main
Tests / build-dev (push) Successful in 4m58s
Tests / build-prod (push) Successful in 3m5s
Reviewed-on: #27
2026-09-01 15:47:14 +00:00
renovate Bot 742a4bb112 chore(deps): update symfony packages to v7.4.18
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 3m18s
Tests / build-prod (pull_request) Successful in 5m53s
2026-08-31 20:06:31 +00:00
haylan ad139d3eb5 Merge pull request 'chore(deps): update dependency phpstan/phpstan to v2.2.11' (#26) from renovate/phpstan-packages into main
Tests / build-dev (push) Successful in 1m30s
Tests / build-prod (push) Successful in 1m11s
Reviewed-on: #26
2026-08-31 19:55:14 +00:00
renovate Bot 4af66f188f chore(deps): update dependency phpstan/phpstan to v2.2.11
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m25s
Tests / build-prod (pull_request) Successful in 3m2s
2026-08-31 12:02:37 +00:00
haylan 466de04c40 Merge pull request 'chore(deps): update symfony packages to v7.4.17' (#25) from renovate/symfony into main
Tests / build-dev (push) Successful in 1m23s
Tests / build-prod (push) Successful in 1m12s
Reviewed-on: #25
2026-08-23 20:34:31 +00:00
renovate Bot b0f042cc93 chore(deps): update symfony packages to v7.4.17
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m20s
Tests / build-prod (pull_request) Successful in 3m41s
2026-08-23 20:01:48 +00:00
haylan 1a6e50e70f Merge pull request 'chore(deps): update dependency phpstan/phpstan to v2.2.9' (#24) from renovate/phpstan-packages into main
Tests / build-dev (push) Successful in 2m1s
Tests / build-prod (push) Successful in 3m36s
Reviewed-on: #24
2026-08-23 19:50:15 +00:00
renovate Bot e6c54080a7 chore(deps): update dependency phpstan/phpstan to v2.2.9
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m34s
Tests / build-prod (pull_request) Successful in 3m7s
2026-08-22 08:06:43 +00:00
haylan 6dcc3d8114 Merge pull request 'chore(deps): update dependency phpstan/phpstan to v2.2.8' (#23) from renovate/phpstan-packages into main
Tests / build-dev (push) Successful in 1m43s
Tests / build-prod (push) Successful in 1m17s
Reviewed-on: #23
2026-08-20 15:51:54 +00:00
renovate Bot f25e5c45c9 chore(deps): update dependency phpstan/phpstan to v2.2.8
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 3m24s
Tests / build-prod (pull_request) Successful in 3m48s
2026-08-20 06:03:28 +00:00
haylan ab481bfc10 Merge pull request 'chore(deps): update symfony packages' (#19) from renovate/symfony into main
Tests / build-dev (push) Successful in 3m32s
Tests / build-prod (push) Successful in 3m57s
Reviewed-on: #19
2026-08-20 04:12:09 +00:00
renovate Bot e118844864 chore(deps): update symfony packages
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 7m46s
Tests / build-prod (pull_request) Successful in 3m56s
2026-08-07 18:06:33 +00:00
haylan 5cd8f5ce19 Merge pull request 'chore(deps): update phpstan packages' (#18) from renovate/phpstan-packages into main
Tests / build-dev (push) Successful in 1m27s
Tests / build-prod (push) Successful in 1m7s
Reviewed-on: #18
2026-07-31 16:25:10 +00:00
renovate Bot 96dc1b7d09 chore(deps): update phpstan packages
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 1m43s
Tests / build-prod (pull_request) Successful in 3m1s
2026-07-31 14:02:44 +00:00
haylan cfde2ed798 Merge pull request 'feat(release): add workflow for creating release tags and update CHANGELOG.md' (#22) from patch-2-gitea-registry into main
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Reviewed-on: #22
2026-07-31 12:58:05 +00:00
haylan a24bace57a Merge branch 'main' into patch-2-gitea-registry
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m14s
Tests / build-prod (pull_request) Successful in 1m59s
2026-07-31 12:53:38 +00:00
haylan 4d479f0166 feat(release): add workflow for creating release tags and update CHANGELOG.md
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m14s
Tests / build-prod (pull_request) Successful in 1m59s
2026-07-31 14:52:35 +02:00
haylan b3fa891b89 Merge pull request 'fix(ci): remove local image build step for Trivy scanning' (#21) from patch-2-gitea-registry into main
Tests / build-dev (push) Successful in 1m15s
Tests / build-prod (push) Successful in 1m10s
Reviewed-on: #21
2026-07-31 12:37:47 +00:00
haylan 98bbb7017f fix(ci): remove local image build step for Trivy scanning
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 1m16s
Tests / build-prod (pull_request) Successful in 1m8s
2026-07-31 14:34:43 +02:00
haylan 3b1e78ebf5 Merge pull request 'feat(ci): add GitHub Actions workflow for testing and Docker builds' (#20) from patch-2-gitea-registry into main
Tests / build-dev (push) Successful in 1m11s
Tests / build-prod (push) Successful in 1m7s
Reviewed-on: #20
2026-07-31 12:22:23 +00:00
haylan a8f5680e6e fix(ci): update dev image build process and run tests in the same job
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 1m14s
Tests / build-prod (pull_request) Successful in 3m20s
2026-07-31 14:17:39 +02:00
haylan 658892a639 fix(ci): remove redundant DEV_IMAGE variable and use REGISTRY directly for image tags 2026-07-31 14:07:07 +02:00
haylan 06fc829ff1 fix(ci): update dev image build process and simplify test execution
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / test (push) Skipped
Tests / build-dev (pull_request) Successful in 48s
Tests / test (pull_request) Failing after 1s
Tests / build-prod (pull_request) Successful in 3m38s
2026-07-31 14:02:51 +02:00
haylan 30a2439914 feat(ci): enhance debugging in test workflow with workspace information
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / test (push) Skipped
Tests / build-dev (pull_request) Successful in 1m10s
Tests / test (pull_request) Failing after 29s
Tests / build-prod (pull_request) Successful in 3m23s
2026-07-31 13:46:34 +02:00
haylan 222c8aaa85 fix(ci): correct indentation for loading dev image in test workflow
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / test (push) Skipped
Tests / build-dev (pull_request) Successful in 2m56s
Tests / test (pull_request) Failing after 52s
Tests / build-prod (pull_request) Successful in 3m38s
2026-07-31 10:54:50 +02:00
haylan 47d9a62db7 refactor(ci): streamline test workflow by consolidating test commands and removing unnecessary comments 2026-07-31 08:36:29 +02:00
haylan 0b1fed2f93 fix(ci): add volume mounts for PHPUnit and PHPStan runs in test workflow
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / test (push) Skipped
Tests / build-dev (pull_request) Successful in 3m1s
Tests / test (pull_request) Failing after 44s
Tests / build-prod (pull_request) Successful in 3m45s
2026-07-30 07:04:53 +02:00
haylan f3491ef4a6 fix(ci): downgrade actions/upload-artifact and actions/download-artifact to v3 for compatibility
Tests / build-dev (pull_request) Successful in 1m14s
Tests / test (pull_request) Failing after 38s
Tests / build-prod (pull_request) Successful in 4m2s
2026-07-17 12:41:35 +02:00
haylan d6a4f7c41f feat(ci): update Gitea workflow to include registry login and cache handling adjustments
Tests / build-dev (pull_request) Failing after 2m40s
Tests / build-prod (pull_request) Has been skipped
Tests / test (pull_request) Has been skipped
2026-07-17 12:37:12 +02:00
haylan 211edc4538 refactor(ci): reorganize test workflow to streamline Docker image handling
Tests / build-dev (pull_request) Failing after 3m28s
Tests / build-prod (pull_request) Has been skipped
Tests / test (pull_request) Has been skipped
2026-07-17 12:27:41 +02:00
haylan 14b325b3bf refactor(ci): migrate PHP setup to Docker for testing workflow
Tests / test (pull_request) Has been cancelled
Tests / docker-build (pull_request) Has been cancelled
2026-07-17 12:19:39 +02:00
haylan d15e25abf3 Merge branch 'main' into patch-2-gitea-registry
Tests / test (pull_request) Has been cancelled
Tests / docker-build (pull_request) Has been cancelled
2026-07-17 10:09:04 +00:00
haylan 53186e9a35 feat(ci): add GitHub Actions workflow for testing and Docker builds
Tests / test (pull_request) Has been cancelled
Tests / docker-build (pull_request) Has been cancelled
2026-07-17 12:07:31 +02:00
haylan 7688fd77c9 Merge pull request 'chore(docker): remove redundant composer dump-env command in build stage' (#16) from patch-2-gitea-registry into main
Reviewed-on: #16
2026-07-13 10:23:14 +00:00
haylan 6e79337a60 chore(docker): remove redundant composer dump-env command in build stage 2026-07-13 12:19:06 +02:00
haylan 68424aa28b Merge pull request 'chore(ci/cd): replaced registry url.' (#15) from patch-2-gitea-registry into main
Reviewed-on: #15
2026-07-13 10:11:00 +00:00
haylan fdc7fa700d chore(ci/cd): replaced registry url. 2026-07-13 12:10:38 +02:00
haylan fb8f25d5ff Merge pull request 'Delete TODO.md' (#14) from haylan-patch-1 into main
Reviewed-on: #14
2026-07-12 21:53:01 +00:00
haylan 34e558d31c Delete TODO.md 2026-07-12 21:52:51 +00:00
12 changed files with 580 additions and 490 deletions

No files matched your search

+4 -17
View File
@@ -19,6 +19,9 @@ on:
required: true
type: string
env:
REGISTRY: git.arthurerlich.de
jobs:
build-push:
runs-on: ubuntu-latest
@@ -40,12 +43,6 @@ jobs:
fi
git checkout "refs/tags/${{ inputs.tag }}"
# Strip the protocol from the server URL to get the registry hostname.
# e.g. https://gitea.example.com → gitea.example.com
- name: Derive registry hostname
run: |
echo "REGISTRY=$(echo '${{ gitea.server_url }}' | sed 's|https://||;s|http://||')" >> $GITHUB_ENV
# Generates OCI-compliant tags and labels from the provided release tag.
# 1.2.3 → image tags: 1.2.3 / 1.2 / 1
- name: Extract Docker metadata
@@ -73,17 +70,6 @@ jobs:
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
# Build a single-arch image locally so Trivy can inspect it before the real push.
- name: Build local image for scanning
uses: docker/build-push-action@v5
with:
context: .
target: final
platforms: linux/amd64
load: true
tags: scan-target:${{ inputs.tag }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ gitea.repository }}:buildcache
- name: Build and push
uses: docker/build-push-action@v5
with:
@@ -91,6 +77,7 @@ jobs:
target: final
platforms: linux/amd64,linux/arm64
push: true
pull: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# Registry-based layer cache — survives between runs without a separate cache store.
+62
View File
@@ -0,0 +1,62 @@
# Cuts a release: moves CHANGELOG.md's [Unreleased] section under a new
# version heading, commits it to main, then creates and pushes the version tag.
# Trigger manually via workflow_dispatch, entering the semver to release.
# The pushed tag can then be built with docker-publish.yml.
name: Create Release Tag
on:
workflow_dispatch:
inputs:
version:
description: "Version to release (semver, e.g. 1.2.3)"
required: true
type: string
jobs:
tag:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Validate version and Unreleased section
run: |
if ! [[ "${{ inputs.version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: '${{ inputs.version }}' is not a valid semver (e.g. 1.2.3)."
exit 1
fi
if git rev-parse "refs/tags/${{ inputs.version }}" >/dev/null 2>&1; then
echo "Error: tag '${{ inputs.version }}' already exists."
exit 1
fi
awk '/^## \[Unreleased\]/{f=1;next}/^## \[/{f=0}f' CHANGELOG.md > /tmp/unreleased.md
if ! grep -q '[^[:space:]]' /tmp/unreleased.md; then
echo "Error: CHANGELOG.md's [Unreleased] section is empty — nothing to release."
exit 1
fi
- name: Move Unreleased entries under the new version heading
run: |
today=$(date +%Y-%m-%d)
awk -v ver="${{ inputs.version }}" -v date="$today" '
/^## \[Unreleased\]/ { print; print ""; print "## [" ver "] - " date; next }
{ print }
' CHANGELOG.md > /tmp/CHANGELOG.md
mv /tmp/CHANGELOG.md CHANGELOG.md
- name: Commit and tag
run: |
git config user.name "gitea-actions"
git config user.email "actions@noreply.git.arthurerlich.de"
git add CHANGELOG.md
git commit -m "chore(release): ${{ inputs.version }}"
git tag "${{ inputs.version }}"
git push origin HEAD:main
git push origin "${{ inputs.version }}"
+78
View File
@@ -0,0 +1,78 @@
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
REGISTRY: git.arthurerlich.de
jobs:
build-dev:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build dev image (PHP 8.4 + composer deps)
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.dev
target: dev
load: true
tags: graph-dev:ci
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ gitea.repository }}:buildcache-dev
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ gitea.repository }}:buildcache-dev,mode=max
- name: Run tests in dev image
run: |
cid=$(docker create graph-dev:ci sh -c "
composer install --no-interaction &&
vendor/bin/phpunit --testdox &&
composer phpstan
")
docker cp . "$cid":/app
rc=0
docker start -a "$cid" || rc=$?
docker rm "$cid" > /dev/null
exit $rc
build-prod:
needs: build-dev
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build prod image (final target)
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
target: final
push: false
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ gitea.repository }}:buildcache-prod
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ gitea.repository }}:buildcache-prod,mode=max
+35 -1
View File
@@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.2.2] - 2026-10-23
### Changed
- Added `symfony/flex` so `extra.symfony.require: "7.4.*"` is enforced — every Symfony component, including transitive ones, now stays on 7.4 LTS
- Renovate groups all Symfony components into a single PR and restricts them to `~7.4`
- Dependency updates:
- Symfony components 7.4.x → latest 7.4 patch (`cache`, `console`, `framework-bundle`, `http-client`, `http-kernel`, `yaml`, … → 7.4.20)
- `symfony/dependency-injection` back to 7.4.20 (a transitive update had pulled in 8.0.15)
- `symfony/monolog-bundle` 4.0.2 → 4.1.0
- `monolog/monolog` 3.10.0 → 3.12.1
- `phpstan/phpstan` 2.2.5 → 2.2.16
- Docker builds copy `symfony.lock` so Flex doesn't re-apply recipes during `composer install`
### Fixed
- Renovate no longer pins `symfony/monolog-bundle` to `~7.4` — it is versioned independently (4.x) and was blocked from updates (#39)
### Security
- Release images are built against the latest PHP 8.4.27 for CVE-2026-109618 and CVE-2026-109619 (critical RCE)
## [0.2.1] - 2026-07-31
### Added
- Gitea Actions `test.yml` workflow — builds dev and prod images and runs PHPUnit and PHPStan on pushes and PRs to `main`
### Fixed
- Removed a leftover `composer dump-env prod` call in the prod Docker build stage — the command doesn't exist in this project's Composer setup and broke every image build
## [0.2.0] - 2026-07-12
### Added
@@ -79,7 +111,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Docker multi-stage build (`base → deps → build → final`)
- Basic `/health` endpoint
[Unreleased]: https://github.com/ArthurErlich/git-contribution-graph/compare/0.2.0...HEAD
[Unreleased]: https://github.com/ArthurErlich/git-contribution-graph/compare/0.2.2...HEAD
[0.2.2]: https://github.com/ArthurErlich/git-contribution-graph/compare/0.2.1...0.2.2
[0.2.1]: https://github.com/ArthurErlich/git-contribution-graph/compare/0.2.0...0.2.1
[0.2.0]: https://github.com/ArthurErlich/git-contribution-graph/compare/0.1.0...0.2.0
[0.1.0]: https://github.com/ArthurErlich/git-contribution-graph/compare/0.0.1...0.1.0
[0.0.1]: https://github.com/ArthurErlich/git-contribution-graph/releases/tag/0.0.1
+17
View File
@@ -138,12 +138,29 @@ Workflow files live in [.gitea/workflows/](.gitea/workflows/). This project uses
- Secrets are set under Repository → Settings → Secrets → Actions
- The registry hostname must be derived from `gitea.server_url` (strip the protocol prefix)
- Triggers use standard `on:` syntax; `tags: '*.*.*'` matches semver pushes without a `v` prefix
- Do not use `cache-from/cache-to: type=gha` — on this instance's act_runner (v2.0.0), the internal GitHub Actions-cache-compatible proxy is not reachable from job containers (`dial tcp <ip>:<port>: i/o timeout`), a known act_runner docker-executor networking limitation, not a workflow bug. Use `type=registry` instead (push cache blobs to `${{ env.REGISTRY }}/<repo>:buildcache*` — see both `test.yml` and `docker-publish.yml`); it requires a registry login step even for jobs that don't push the final image.
**Current workflows:**
| File | Trigger | Purpose |
| -------------------- | ---------------- | --------------------------------------------------------- |
| `docker-publish.yml` | Push tag `*.*.*` | Build & push multi-arch image to Gitea container registry |
| `test.yml` | Push/PR to `main`| Build dev+prod images, run PHPUnit and PHPStan |
### Release testing with `act`
Before tagging a release (anything that would trigger `docker-publish.yml`), run `test.yml` locally with [`act`](https://github.com/nektos/act) to catch pipeline failures before pushing. `test.yml` uses plain GitHub Actions syntax (no `gitea.*` contexts), so it runs under `act` unmodified.
```bash
act -j test \
-P ubuntu-latest=catthehacker/ubuntu:act-latest \
--artifact-server-path /tmp/act-artifacts
```
- `-P ubuntu-latest=catthehacker/ubuntu:act-latest` — default act runner image lacks a Docker CLI, which the `test` job needs for its nested `docker run` steps
- `--artifact-server-path` — required for the `upload-artifact`/`download-artifact` steps to work; without it they silently no-op
**If `act` is not installed:** warn the user it's missing and how to install it (`sudo pacman -S act`, or see the repo above) — do not install it yourself or force the check. `docker-publish.yml` is out of scope for `act` (it needs real `gitea.*` context and a live registry secret); don't try to run it locally.
## Docker
+2 -3
View File
@@ -17,7 +17,7 @@ WORKDIR /app
# ── deps stage (prod vendor) ───────────────────────────────────────────────────
FROM base AS deps
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY composer.json composer.lock* ./
COPY composer.json composer.lock* symfony.lock ./
RUN composer install \
--no-dev \
--no-scripts \
@@ -30,8 +30,7 @@ FROM deps AS build
COPY . .
RUN composer dump-autoload --classmap-authoritative --no-dev --no-interaction && \
mkdir -p var/cache var/log && \
APP_ENV=prod APP_SECRET=placeholder php bin/console cache:warmup --no-debug && \
composer dump-env prod
APP_ENV=prod APP_SECRET=placeholder php bin/console cache:warmup --no-debug
# ── final (prod) stage — no composer binary ────────────────────────────────────
FROM base AS final
+1 -1
View File
@@ -22,7 +22,7 @@ WORKDIR /app
COPY docker/php/xdebug.ini /usr/local/etc/php/conf.d/docker-xdebug.ini
COPY docker/php/conf.d/20-app.dev.ini $PHP_INI_DIR/app.conf.d/
COPY docker/frankenphp/Caddyfile.dev /etc/caddy/Caddyfile
COPY composer.json composer.lock* ./
COPY composer.json composer.lock* symfony.lock ./
RUN composer install --no-scripts --no-interaction --prefer-dist
EXPOSE 8080
-267
View File
@@ -1,267 +0,0 @@
# TODO: persist contribution history in SQLite + audit cleanup
Backend-only work. Follow Red → Green → Refactor per `CLAUDE.md` for every
step that adds behavior (store, retention, provider `$since` handling).
Order matters — later steps assume earlier ones are done.
## 1. Audit cleanup
- [x] **Remove `eightpoints/guzzle-bundle` + `idci/graphql-client-bundle`.**
They exist only to build one near-static GitHub GraphQL query string
(`GitHubProvider.php:59-74`); the bundle's own HTTP transport is already
bypassed (comment at `GitHubProvider.php:76-77`).
- [x] Replace
`$graphqlClient->buildQuery(...)->getGraphQLQuery()` with a plain
`sprintf`/heredoc query string. Delete the two packages from
`composer.json`, `config/bundles.php`, and delete
`config/packages/eight_points_guzzle.yaml` +
`config/packages/idci_graphql_client.yaml`. Run `composer update` and
commit the regenerated `composer.lock`.
- [x] **Dedupe `baseUrl` normalization.** `GitLabProvider.php` (lines 41, 53) and `GiteaProvider.php` (lines 42, 54) each call
`rtrim($this->baseUrl..., '/')` twice — once in `ping()`, once in
`fetch()`. Compute it once as a `private readonly string $baseUrl` in
the constructor instead.
## 2. Fix stale `config/services.yaml` (found during exploration, blocks step 1 & 4)
- [x] `services.yaml` still binds `$username`/`$token`/`$baseUrl` to the
pre-refactor FQCNs (`App\Service\GitHubProvider` etc.) and
`_instanceof: App\Service\ProviderInterface`, left over from the
`Service/` → `Provider/`+`Renderer/` namespace reorg. Update all of
these to `App\Service\Provider\...`. Currently these bindings silently
no-op, and scalar constructor args can't autowire without them — any
edit to these constructors (steps 1, 4) needs this fixed first, or the
container fails to compile.
## 3. `ContributionStore` (SQLite via native PDO)
> Docs: [PDO](https://www.php.net/manual/en/book.pdo.php) ·
> [PDO_SQLITE driver](https://www.php.net/manual/en/ref.pdo-sqlite.php) ·
> [PDO::prepare / prepared statements](https://www.php.net/manual/en/pdo.prepare.php) ·
> [SQLite `INSERT ... ON CONFLICT` upsert](https://www.sqlite.org/lang_upsert.html) ·
> [SQLite `STRICT` tables](https://www.sqlite.org/stricttables.html) ·
> [SQLite `WITHOUT ROWID` tables](https://www.sqlite.org/withoutrowid.html) ·
> [SQLite datatypes (why `date` is `INTEGER`/unixtime, not `TEXT`)](https://www.sqlite.org/datatype3.html)
- [x] New `src/Service/ContributionStore.php`. PDO SQLite, DB file at
`%kernel.project_dir%/var/data/contributions.db` (configurable
constructor arg), table created lazily. **Schema note:** `date` is
stored as a Unix timestamp (`INTEGER`), not `TEXT` — matches the
current implementation:
```sql
CREATE TABLE IF NOT EXISTS contributions (
provider TEXT NOT NULL,
date INTEGER NOT NULL,
count INTEGER NOT NULL CHECK (count >= 0),
PRIMARY KEY (provider, date)
) WITHOUT ROWID, STRICT;
```
- [x] `add(string $provider, int $unixtime, int $count): void` — plain
insert (done, needs test coverage — see below).
- [x] Fix `add()`: currently a plain `INSERT`, so re-adding an existing
`(provider, date)` throws a unique-constraint violation instead of
upserting. Switch to
`INSERT ... ON CONFLICT(provider, date) DO UPDATE SET count = excluded.count`
(see SQLite upsert doc above), or keep `add()` insert-only and add a
separate `merge()` for the upsert case used by step 5.
- [x] `remove(string $provider, int $unixtime): void` — started, has a
bug: `DELETE contributions WHERE ...` is invalid SQL, missing the
`FROM` keyword (must be `DELETE FROM contributions WHERE ...`); also
drop the `LIKE` on `provider` (exact match, use `=`) since it's an
unindexed wildcard scan for what should be an exact key lookup.
- [x] **`Contribution` entity.** Small immutable value object
(`src/Entity/Contribution.php`) wrapping one row: `provider` (string),
`date` (unix timestamp int, or `\DateTimeImmutable` — pick one and
use it consistently everywhere, including `add()`/`all()`), `count`
(int). Gives `ContributionStore::all()` and the aggregator something
typed to pass around instead of raw arrays/tuples.
- [x] **`ContributionCollection`.** Typed collection
(`src/Entity/ContributionCollection.php`) wrapping
`array<Contribution>` — implement `IteratorAggregate` + `Countable`
at minimum ([`IteratorAggregate`](https://www.php.net/manual/en/class.iteratoraggregate.php),
[`Countable`](https://www.php.net/manual/en/class.countable.php)) so
it can be `foreach`'d and `count()`'d like a normal array. This is
what `ContributionStore::all()` should return instead of a bare
`date => count` array.
- [x] `latestDate(string $provider): ?int` — `SELECT MAX(date) WHERE provider = ?`
(returns a unix timestamp, not a string, per the schema above).
- [x] `merge(string $provider, array $dateCounts): void` — upsert via
`INSERT ... ON CONFLICT(provider, date) DO UPDATE SET count = excluded.count`;
`$dateCounts` keyed by unix timestamp.
- [x] `all(string $provider, ?int $sinceDays = null): ContributionCollection` —
fetch all rows for a provider, or since a given range. `null` returns
full history (no arbitrary cutoff), a value filters to rows where
`date >= (now - sinceDays * 86400)`. **Bug:** current stub in
`ContributionStore.php:58` has invalid PHP (`$provider == null` instead
of `?string $provider = null` — this won't parse) and returns `void`
instead of `ContributionCollection`; fix the signature when implementing.
- [x] `prune(): void` — `DELETE FROM contributions WHERE date < ?` using
the configured retention window (a unix timestamp cutoff); no-ops if
retention is unset/0.
- [x] Constructor takes `?int $retentionDays` bound from new env var
`CONTRIBUTIONS_RETENTION_DAYS` (empty/default = keep forever). _(constructor
param wired; the env binding itself is step 6's job.)_
- [x] Tests: `tests/Unit/Service/ContributionStoreTest.php` — store &
retrieve, upsert overwrites existing date, `sinceDays` filtering,
`prune()` no-ops when retention unset, `prune()` deletes rows older
than the window when set.
- [x] Tests: `tests/Unit/Entity/ContributionTest.php` and
`ContributionCollectionTest.php` — construction, iteration, `count()`.
## 4. Wire `$since`/`$until` through providers
Root cause of the live `MaxExecutionTimeError` crash: every cache-miss
request re-fetches the full ~365-day history from every host, and
GitLab's pagination is unbounded and sequential. Bounding the fetch
window (step 5's 3-day trailing overlap) is what actually fixes it — a
PHP `max_execution_time` fatal can't be caught by `try/catch` at all, so
"catch it better" was never on the table.
- [x] `ProviderInterface::startFetch()` → `startFetch(?\DateTimeImmutable $since = null, ?\DateTimeImmutable $until = null): mixed`
(interface already split into `startFetch`/`resolveFetch` for
concurrency — this doc previously said `fetch()`, which predates that
split).
- [x] `GitHubProvider::startFetch()` — already builds explicit `from`/`to`
GraphQL args (`GitHubProvider.php:51-58`); swap the hardcoded
`-365 days`/`now` for `$since ?? -365 days` / `$until ?? now`.
- [x] `GitLabProvider::startFetch()` — add a `before` query param alongside
the existing `after` (`GitLabProvider.php:77-84`), fed by `$until`;
`$since` already flows into `after` (this is what actually shrinks the
pagination loop).
- [x] `GiteaProvider::resolveFetch()` — heatmap endpoint has no query
params (always returns full history); add an `$until` upper-bound
filter alongside the existing `$cutoff` lower bound.
- [x] Update `GitHubProviderTest.php`, `GitLabProviderTest.php`,
`GiteaProviderTest.php` — add cases asserting a passed `$since`/`$until`
narrows the request window/query params.
## 5. Wire `ContributionStore` into `ContributionAggregator`
- [x] Fix `ContributionStore` wiring in `config/services.yaml` first —
it's currently dead code (nothing calls it). The constructor default
`$dbPath` string (`%kernel.project_dir%/var/data/contributions.db`) is
a plain PHP default, not a resolved container parameter; bind it
explicitly (same pattern as the provider bindings):
```yaml
App\Service\ContributionStore:
arguments:
$dbPath: "%kernel.project_dir%/var/data/contributions.db"
$retentionDays: "%env(int:CONTRIBUTIONS_RETENTION_DAYS)%"
```
Add `env(CONTRIBUTIONS_RETENTION_DAYS): ''` to `parameters:` (empty →
casts to `0` → `prune()`'s existing `retentionDays === 0` check already
treats that as "keep forever"). Document the var in `.env`.
- [x] Inject `ContributionStore` into `ContributionAggregator`.
- [x] Per configured provider: `$latest = $store->latestDate($name)` →
`$since = $latest !== null ? (new \DateTimeImmutable('@' . $latest))->modify('-3 days') : null`
(3-day overlap for late corrections — old stored days are immutable and
never re-fetched, only this trailing window + anything new hits the
network), else `null` (first run, provider's own default lookback).
`$until = null` (always "up to now" on the normal request path).
- [x] `startFetch($since, $until)` / `resolveFetch()` as today,
`$store->merge($name, $fresh)` on success, then read back
`$store->all($name, sinceDays: 371)` for the render window
(53 weeks × 7 days) — a `ContributionCollection` — and merge its
contributions into the returned array (the store becomes the source
of truth for what gets rendered, not the fresh fetch alone).
- [x] Call `$store->prune()` once per `aggregate()` call, after all
providers have merged.
- [x] Keep the existing try/catch-and-log-per-provider behavior — a
provider failure leaves its DB history stale, doesn't break the render.
- [x] Update `ContributionAggregatorTest.php` with store-interaction
(`latestDate` consulted, `merge` called, `all()` feeds the result,
`prune()` runs once) and a case confirming a provider failure leaves
other providers' stored data intact.
## 6. Docker / env
- [x] `docker-compose.yml` — add a `data` named volume mounted at
`/app/var/data` (same pattern as `cache`/`logs`), and pass through
`CONTRIBUTIONS_RETENTION_DAYS: "${CONTRIBUTIONS_RETENTION_DAYS:-}"`.
- [x] `Dockerfile` — add `var/data` to the `mkdir -p` in the `final` stage
alongside `var/cache/prod/pools var/log`, owned by `app`.
- [x] `.env` — document `CONTRIBUTIONS_RETENTION_DAYS` (empty by default),
same style as the existing `ALLOWED_HOSTS` comment.
## 9. `graph:contributions:refetch` console command
Manual escape hatch for forcing a full or ranged re-fetch (e.g. after
adding a new host, or if the store needs rebuilding) — bypasses step 5's
incremental `latestDate()` window entirely for the providers/range given.
- [x] `src/Command/RefetchContributionsCommand.php`, `#[AsCommand]` +
constructor-promoted readonly properties (matches this codebase's
attribute-first style), using `SymfonyStyle`
([console styling guide](https://symfony.com/doc/current/console/style.html)).
Inject `iterable $providers` (`#[AutowireIterator('app.provider')]`,
same as `ContributionAggregator`) and `ContributionStore`.
- [x] Options: `--provider=github,gitlab` (repeatable/comma-split,
restricts to named provider(s), default = all configured; unknown name
→ `$io->error()` + `Command::FAILURE`), `--from=YYYY-MM-DD` (default
today − 365 days), `--to=YYYY-MM-DD` (default today), `--all` (shorthand
for `--from` far enough back — e.g. 2005-01-01 — to mean "existing full
history"; combinable with `--provider`).
- [x] **Batch by range**: split `[from, to]` into ≤365-day chunks
(GitHub's GraphQL `contributionsCollection` rejects windows over a
year; chunking also caps GitLab's pagination per call, so a big
`--all` re-fetch can't reintroduce the original runaway-pagination
timeout). Iterate chunks oldest-first.
- [x] Per provider, per chunk: `$io->section(...)`, `startFetch($chunkFrom, $chunkTo)`
/ `resolveFetch()`, `$store->merge($name, $result)` immediately (don't
accumulate all chunks in memory), `ProgressBar` across chunks.
- [x] Catch per-provider/per-chunk `\Throwable` → `$io->warning(...)`,
continue with remaining chunks/providers (same graceful-degradation
philosophy as `ContributionAggregator`).
- [x] Finish with `$io->table(...)` summary (provider, days written,
chunks fetched, any errors) and `$io->success()`/`$io->error()`; exit
`Command::SUCCESS` if at least one provider fully succeeded, else
`Command::FAILURE`.
- [x] Tests: `tests/Unit/Command/RefetchContributionsCommandTest.php`
using `CommandTester` with fake `ProviderInterface` stubs and a
`:memory:` `ContributionStore` — assert chunking count for a >365-day
range, store ends up populated, unknown `--provider` name fails
cleanly, a provider throwing doesn't abort the others.
## 10. PHPStan
- [x] `composer require --dev phpstan/phpstan` (plain PHPStan — no
Symfony extension needed for this app's size).
- [x] Add `phpstan.neon`: `paths: [src, tests]`, `level: 8`.
- [x] Add composer script `"phpstan": "phpstan analyse"`.
- [x] Update README.md docs with new command and php stan static lintin.
- [x] Document in PHP-Stan-Errors.md whatever level-8 flags on first run.
## 11. `CLAUDE.md` update
- [x] Architecture section: add the `ContributionStore` (SQLite) tier
between providers and the renderer; note the two-tier cache (1h SVG
cache → SQLite raw-data store → provider APIs).
- [x] Environment variables table: add `CONTRIBUTIONS_RETENTION_DAYS`.
- [x] Document `app:contributions:refetch` (options, batching behavior).
- [x] Development section: add `composer phpstan` next to the existing
`vendor/bin/phpunit` commands.
- [x] Remove any remaining mentions of the two deleted bundles. (none found —
already clean)
## Verification
- `vendor/bin/phpunit --testdox` green after every step.
- `composer phpstan` clean at level 8.
- `composer install` succeeds with no dangling references to the removed bundles.
- `docker compose up -d --build`; clear the FS cache
(`docker compose exec graph rm -rf var/cache/*`); hit
`/graph.svg?theme=dark` twice; check `docker compose logs -f graph` shows
a narrower `since` window on the second fetch.
- Set `CONTRIBUTIONS_RETENTION_DAYS=30`; confirm rows older than 30 days
are gone after the next refresh
(`sqlite3 var/data/contributions.db "SELECT date FROM contributions ORDER BY date LIMIT 1"`).
- `curl localhost:8080/health` still reports all configured providers healthy.
- `docker compose exec graph bin/console app:contributions:refetch --all`
populates `var/data/contributions.db` from empty; re-run with no flags
and confirm logs show only the trailing-window re-fetch.
- `docker compose exec graph bin/console app:contributions:refetch --provider=github --from=2020-01-01 --to=2023-01-01`
exercises multi-chunk batching.
- Confirm the original crash scenario is gone: an account with heavy
GitLab history no longer triggers `MaxExecutionTimeError` on a cold
cache (bounded by the 3-day trailing window, not full history).
+2
View File
@@ -8,6 +8,7 @@
"monolog/monolog": "^3.10",
"symfony/cache": "7.4.*",
"symfony/console": "7.4.*",
"symfony/flex": "^2",
"symfony/framework-bundle": "7.4.*",
"symfony/http-client": "7.4.*",
"symfony/monolog-bundle": "^4.0",
@@ -33,6 +34,7 @@
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"symfony/flex": true,
"symfony/runtime": true
}
},
Generated
+272 -198
View File
File diff suppressed because it is too large. Load diff
+8 -3
View File
@@ -9,10 +9,15 @@
},
"packageRules": [
{
"allowedVersions": "^7.0",
"description": "Keep Symfony on 7.x LTS until EOL",
"groupName": "symfony",
"allowedVersions": "~7.4",
"description": "Keep all Symfony components on 7.4 LTS and update them together (symfony/flex enforces extra.symfony.require for transitive ones)",
"matchPackageNames": [
"/^symfony//"
"/^symfony//",
"!symfony/flex",
"!symfony/monolog-bundle",
"!/^symfony/polyfill-/",
"!/-contracts$/"
]
},
{
+99
View File
@@ -0,0 +1,99 @@
{
"phpstan/phpstan": {
"version": "2.2.16"
},
"phpunit/phpunit": {
"version": "11.5",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "11.1",
"ref": "ca0bc067abfb40a8de1b2561b96cbfc2b833c314"
},
"files": [
".env.test",
"phpunit.xml.dist",
"tests/bootstrap.php",
"bin/phpunit"
]
},
"symfony/console": {
"version": "7.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "5.3",
"ref": "1781ff40d8a17d87cf53f8d4cf0c8346ed2bb461"
},
"files": [
"bin/console"
]
},
"symfony/flex": {
"version": "2.11",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "2.4",
"ref": "52e9754527a15e2b79d9a610f98185a1fe46622a"
},
"files": [
".env",
".env.dev"
]
},
"symfony/framework-bundle": {
"version": "7.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "7.4",
"ref": "5ea2ed9cd29ca8fc2cb9bca9cb7b7e0a8d2be1dc"
},
"files": [
"config/packages/cache.yaml",
"config/packages/framework.yaml",
"config/preload.php",
"config/routes/framework.yaml",
"config/services.yaml",
"public/index.php",
"src/Controller/.gitignore",
"src/Kernel.php",
".editorconfig"
]
},
"symfony/monolog-bundle": {
"version": "4.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "3.7",
"ref": "feb8fd9520b5694c7d0d2ba17fd4b4d33f9dd9cf"
},
"files": [
"config/packages/monolog.yaml"
]
},
"symfony/phpunit-bridge": {
"version": "7.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "7.3",
"ref": "56f87409c45ff6654b0bf07c5cc359aebf6016ab"
}
},
"symfony/routing": {
"version": "7.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "7.4",
"ref": "bc94c4fd86f393f3ab3947c18b830ea343e51ded"
},
"files": [
"config/packages/routing.yaml",
"config/routes.yaml"
]
}
}