Ensure all `files_external` tests are accounted for in CI

Đang mở
#66,769 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, php
Lĩnh vực
ci-cd, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
PHP
Star
37.6k
Fork
5.4k
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
623

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/server

Tất cả issue của nextcloud/server

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.