Trace existing mutex and semaphore tests to KRN-SYNC-012, -013, -023, -025, -026, -028
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
- 55/100
Hướng nghiên cứu
Read the Statement and Verification lines for the six requirements in docs/requirements/KRN-SYNC.md, then inspect tests/conformance/test_mutex.c and the existing semaphore cases for their EMB_TEST_REQ citations. Trace each behavior to its case and add requirement IDs only where the case verifies the statement; identify any uncovered behavior in the PR. Build and run native-gcc, collect evidence with tools/evidence/collect.py, and verify the matrix with tools/evidence/matrix.py.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
Several mutex and semaphore requirements show no executed test in the requirement matrix, although tests for those behaviours exist. The tests cite other requirement IDs. Find which existing cases check each requirement, cite it, and add a case where none does.
This is a good way to learn how the project ties requirements to tests.
The requirements
From docs/requirements/KRN-SYNC.md:
KRN-SYNC-012ceiling protocol on the same object typeKRN-SYNC-013recursive locking is an optionKRN-SYNC-023recursion and self-relockKRN-SYNC-025owner death policiesKRN-SYNC-026ceiling rulesKRN-SYNC-028semaphore semantics
For example, mutex_recursive_counts in tests/conformance/test_mutex.c checks recursion but cites only KRN-SYNC-004. mutex_owner_death_policy cites KRN-SYNC-011, not -025.
How a case cites a requirement
Inside a case, EMB_TEST_REQ("KRN-SYNC-004", ...). A run prints one CASE ... req=... line per case, and tools/evidence/matrix.py builds the matrix from them (case evidence).
Steps
-
For each requirement, read its Statement and Verification lines.
-
Find the cases that check what the statement says, and add the ID to their
EMB_TEST_REQ. Cite only what the case really checks. -
Where no case checks part of a statement, write the case, or list what is missing in the PR.
-
Build and run
native-gcc(see the README's quick start). Then collect the run's evidence and build the matrix:python3 -I tools/evidence/collect.py --build build/native-gcc --preset native-gcc --out native-gcc.json python3 -I tools/evidence/matrix.py native-gcc.json --baseline tools/evidence/baseline.json
Done when
- The PR names, for each of the six requirements, the cases that now cite it, or why none can yet.
- CI's
evidencejob passes. It will report the newly evidenced pairs.
- Ngôn ngữ chính
- C
- Star
- 1
- Fork
- 1
- Merge trung bình
- 14 giờ 21 phút
- Pull request đã merge (30 ngày)
- 125
Chuẩn bị môi trường
- Không có Dockerfile hay 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 EmbLinkOs/EmbLinkRTOS
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
EmbLinkOs/EmbLinkRTOS#111 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
EmbLinkOs/EmbLinkRTOS#116 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
EmbLinkOs/EmbLinkRTOS#114 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 83/100
EmbLinkOs/EmbLinkRTOS#113 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 34/100
EmbLinkOs/EmbLinkRTOS#112 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của EmbLinkOs/EmbLinkRTOS
Issue tương tự
-
Độ 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: test kind: bug preview-effort: small priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
libsdl-org/SDL#16684 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Issue-Bug Needs-Triage
Độ 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 2 ngày