End-to-end tests of the admin's daily loop on the image (A-45)
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
- 35/100
Hướng nghiên cứu
Start with admin/tests/FluentCMS.Admin.EndToEnd/EndToEndHost.cs, .github/workflows/compose.yml, and src/FluentCMS.Host/Dockerfile; read sections 6.1, 7, 9, and 10.8 of docs/planning/admin-technical-spec.md for the design. Run the end-to-end project through the proposed image mode and its retry path. Done means the acceptance checklist passes, including container cleanup, documented job behavior, and an unchanged publish run.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The exit criteria of A7 ask that the end-to-end and accessibility checks pass on the image. They have never run on it:
- The harness runs a publish, not the image.
EndToEndHostpublishes the reference host with no build and runsdotnet FluentCMS.Host.dllas a child process, in Production on SQLite with the Blog sample, and runs the host's commands withdotnet exec(admin/tests/FluentCMS.Admin.EndToEnd/EndToEndHost.cs, lines 15 to 19, 259 and 325). - The image meets no browser. The
Composeworkflow builds the image and checks it withcurl: the admin page with its base and its policy,config.json, one file of the framework, and the code flow of the admin's client (.github/workflows/compose.yml, step "Smoke test"). No page of the admin is drawn. - What only the image has. The list of
COPYlines ofsrc/FluentCMS.Host/Dockerfile, to which A-51 had to add one for its new project; the publish for the target architecture; the chiseled base image with no shell and a user that is not root; and SQLite in the/datavolume. A file the image lacks, or one the user of the image cannot read, would be found by the first person who opens/adminof a release.
Proposal
- A second way to run the host.
FLUENTCMS_E2E_IMAGEnames an image, and the harness then runs the host as a container of it through thedockercommand: the settings ofConfigure()as environment variables, the run's certificates andlanding.schema.jsonmounted read-only,/dataas a volume of the run, and the https port published on the loopback address. The commands (migrate,user create,apikey create) run as one-off containers on the same volume, asdocs/docker.mdshows an operator. Unset, the harness publishes and runs as today. The two ways sit behind one type that starts the host, runs a command, gives the logs and stops it. - No proxy. Kestrel in the container answers https with the run's certificate, as the child process does, so no second container is needed.
- A job.
End-to-end on the image (admin)builds the image once and runs the whole end-to-end project against it throughrun-with-retry.ps1, whose second run takes the same image. It runs where theComposeworkflow runs: on pushes tomainand to feature branches, and on manual runs, not on issue pull requests. A manual run takes the name of a published image, asComposedoes, so that a release can be checked after it is pushed. - The publish run stays in
End-to-end (admin)on every full run: it needs no image build, and it is what a developer runs. - Without Docker the image run is skipped with a message, as the media storage tests are; in CI a skip fails the job.
- What rides along. The axe-core sweep (A-42) and the keyboard loop (A-54) are classes of the same project and run on the image with no further work. The right-to-left run needs the pseudo-cultures of A-53, which a release image does not hold, so it stays on the publish.
Acceptance
- With
FLUENTCMS_E2E_IMAGEset, every end-to-end case passes against a container of the image, with the editor made by the image's own command - The job runs on a push to
mainand to a feature branch and on a manual run, and with the name of a published image it runs that image without building - A case that fails is run once more against the same image, and a flaky case is named as today
- An image built without one admin project's
COPYline, or without the admin's files, fails the job - The containers, the volume and the certificates of a run are removed at its end, also when the run is cancelled
- Without Docker the image run is skipped with the reason, and the publish run is unchanged
- Section 7 and
CONTRIBUTING.mddescribe the job, and the pull request states its time
Design: docs/planning/admin-technical-spec.md, sections 6.1, 7, 9 and 10.8 (A-45). Rows 3.19, 10.2. A-56, which takes Firefox and WebKit of the row in 10.8, needs it. Size: M.
- Ngôn ngữ chính
- C#
- Star
- 567
- Fork
- 107
- Merge trung bình
- 1 giờ 19 phút
- Pull request đã merge (30 ngày)
- 353
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluentcms/FluentCMS
-
area:localization plugin type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:testing type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:api area:publishing type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
fluentcms/FluentCMS#3473 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage plugin type:bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fluentcms/FluentCMS
Issue tương tự
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeCó thể đã có người làm @Goldziher đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsĐang mởbug sev-5 vm
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
area:jobads-cv bug FE mvp P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
klasolsson81/jobbliggaren#2271 ·
Maintainer thường phản hồi trong vòng 1 ngày