Ensure all `files_external` tests are accounted for in CI

Offen
#66,769 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, php
Bereich
ci-cd, testing

Rechercherichtung

Start by inspecting the generic PHPUnit suite, the CI jobs that select files_external tests, and the overlapping autotest.sh and autotest-external.sh scripts. Inventory discovery and skips for the five named test classes, then determine which service-independent tests run generically and how backend-dependent tests are accounted for. Done means CI selection is clear, tests cannot be silently omitted, and the test README is updated.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

CI feature: external storage technical debt tests

Problem

The files_external test layout makes CI coverage difficult to determine and also appears to have lead to some test classes not running. While working on #66768, including add new test coverage for files_external, I noticed no checked-in CI selector appears to run these classes:

  • Mocked tests: Amazons3CopyTest, SFTPReadStreamTest, SFTPWriteStreamTest
  • Backend-dependent tests: OwncloudTest, SwiftTest

The generic PHPUnit suite excludes tests/Storage/, while backend jobs select specific files or groups. Service-independent tests are split between the two locations.

Follow-up ideas:

  • Inventory test discovery and CI execution, including skips.
  • Ensure service-independent tests run in the generic suite.
  • Decide how to run or explicitly account for backend-dependent tests.
  • Make backend dependencies and CI selection clear.
  • Assess the virtue of maintaining the overlapping legacy autotest.sh / autotest-external.sh scripts.
  • Add a guard against silently omitting new tests, and update the test README.
Vorherrschende Sprache
PHP
Sterne
37.6k
Forks
5.4k
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
623

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus nextcloud/server

Alle Issues in nextcloud/server

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.