Draai de patch-toepassing (Applied:) op een echte APK bij patch-wijzigingen, niet alleen dagelijks #79

Closed
opened 2026-10-14 13:46:02 +02:00 by midas · 1 comment
Owner

Severity: medium · Categorie: tests · Effort: M

Probleem

Stap 2 van de Definition of done is dat de patch op de echte APK Applied: geeft. Die stap wordt bij een wijziging nergens afgedwongen. De enige geautomatiseerde fingerprint-check is scripts/check-patches.sh, en die draait alleen in de dagelijkse app-update-check.yml, tegen de nieuwste upstream-versie. Een push of PR naar dev die een fingerprint of patch wijzigt, krijgt alleen compile en JVM-tests mee en wordt daarna gereleased.

Waar

Bewijs

X-tdl-1 (AGENTS.md)

ci.yml steps: 'Unit tests (extension)' and 'Build patches' only. AGENTS.md: '2. patch-install.ps1 -NoInstall on the real APK prints Applied: <patch name>. A successful build proves nothing about fingerprints'

Impact

Een fingerprint die niet meer matcht, of een patch die bij het toepassen faalt, komt in een (pre-)release terecht. Gebruikers merken het pas in Manager. AGENTS.md zegt zelf: "A successful build proves nothing about fingerprints".

Voorstel

Draai in ci.yml (minstens bij wijzigingen onder patches/ of extensions/) check-patches.sh tegen de laatst geteste APK per package. Die APK's staan niet in git, dus haal ze op of cache ze op de runner op basis van de geteste versie in Compatibility.targets. Laat de job falen als een patch geen Applied: geeft. Gaat dat voor alle apps te ver, begin dan met één APK per platform (Edition, Kubus, Videoland).

Acceptatiecriteria

  • Een PR die een fingerprint breekt, faalt in CI vóór de merge.
  • De CI-log toont per patch Applied: of de fout.
  • AGENTS.md beschrijft welke APK-versies CI gebruikt.

Code review @ 33e02db (2026-10-14) · findings: X-tdl-1

**Severity:** medium · **Categorie:** tests · **Effort:** M ## Probleem Stap 2 van de Definition of done is dat de patch op de echte APK `Applied:` geeft. Die stap wordt bij een wijziging nergens afgedwongen. De enige geautomatiseerde fingerprint-check is `scripts/check-patches.sh`, en die draait alleen in de dagelijkse `app-update-check.yml`, tegen de nieuwste upstream-versie. Een push of PR naar `dev` die een fingerprint of patch wijzigt, krijgt alleen compile en JVM-tests mee en wordt daarna gereleased. ## Waar - [`AGENTS.md#L122-129`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/AGENTS.md#L122-L129) - [`.forgejo/workflows/ci.yml#L36-45`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/.forgejo/workflows/ci.yml#L36-L45) - [`scripts/check-patches.sh#L141-160`](https://git.midasvo.nl/midas/midas-patches/src/commit/33e02db957a78f2d5443326cdd107a612e7c21a7/scripts/check-patches.sh#L141-L160) ## Bewijs _X-tdl-1 (AGENTS.md)_ ```markdown ci.yml steps: 'Unit tests (extension)' and 'Build patches' only. AGENTS.md: '2. patch-install.ps1 -NoInstall on the real APK prints Applied: <patch name>. A successful build proves nothing about fingerprints' ``` ## Impact Een fingerprint die niet meer matcht, of een patch die bij het toepassen faalt, komt in een (pre-)release terecht. Gebruikers merken het pas in Manager. AGENTS.md zegt zelf: "A successful build proves nothing about fingerprints". ## Voorstel Draai in `ci.yml` (minstens bij wijzigingen onder `patches/` of `extensions/`) `check-patches.sh` tegen de laatst geteste APK per package. Die APK's staan niet in git, dus haal ze op of cache ze op de runner op basis van de geteste versie in `Compatibility.targets`. Laat de job falen als een patch geen `Applied:` geeft. Gaat dat voor alle apps te ver, begin dan met één APK per platform (Edition, Kubus, Videoland). ## Acceptatiecriteria - [ ] Een PR die een fingerprint breekt, faalt in CI vóór de merge. - [ ] De CI-log toont per patch `Applied:` of de fout. - [ ] AGENTS.md beschrijft welke APK-versies CI gebruikt. _Code review @ 33e02db (2026-10-14) · findings: X-tdl-1_
midas closed this issue 2026-10-18 07:44:07 +02:00
Author
Owner

Gedaan in PR #126 en #128: CI controleert de patches nu tegen geteste APK's uit de private store midas-apks. Bij PR's gebeurt dat voor Volkskrant, Tubantia en Videoland, bij pushes voor alle apps. De store is gevuld met 11 versies. Nog te uploaden: Videoland TV 1.116.3 (handmatig), plus 1.115.2 en PZC 9.21.1 (niet meer op APKPure).

Gedaan in PR #126 en #128: CI controleert de patches nu tegen geteste APK's uit de private store `midas-apks`. Bij PR's gebeurt dat voor Volkskrant, Tubantia en Videoland, bij pushes voor alle apps. De store is gevuld met 11 versies. Nog te uploaden: Videoland TV 1.116.3 (handmatig), plus 1.115.2 en PZC 9.21.1 (niet meer op APKPure).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#79
No description provided.