[CI]: test-scripts skips two test files, and one of them fails

Đang mở Phù hợp với người mới
#977 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python
Lĩnh vực
ci-cd, testing

Hướng nghiên cứu

Bắt đầu với .github/workflows/test-parser.yml và thư mục .github/scripts/tests. Cập nhật test_subject_uppercase trong test_lintcommit.py để phù hợp với thay đổi quy tắc được mô tả trong issue, sau đó chạy python -m pytest .github/scripts/tests. Công việc hoàn tất khi job test-scripts chạy toàn bộ thư mục và lệnh đó thành công.

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

Mô tả

needs-triage

Found while working on Python #971: add PR status labels and bump issue triage.

Problem

The test-scripts job in test-parser.yml runs a fixed list of test files, so a new file under .github/scripts/tests runs in CI only after someone adds it to the list. No other job runs these files, because the pytest testpaths setting lists only packages/*/tests directories.

Two files are not on the list, so CI does not run them:

Change
  • Change test_subject_uppercase to expect no error, since uppercase subjects are allowed on purpose.
  • Run the whole .github/scripts/tests directory in test-scripts instead of the list, so a new test file runs without a list edit.
Acceptance criteria
  • test-scripts runs every test file under .github/scripts/tests.
  • python -m pytest .github/scripts/tests passes on main.
Ngôn ngữ chính
Python
Star
59
Fork
32
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
76

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

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 aws/aws-durable-execution-sdk-python

Tất cả issue của aws/aws-durable-execution-sdk-python

Issue tương tự

Thêm issue về Python

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.