Flaky Tests
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa
Research direction
Start by reviewing the five workflow runs linked in the issue and the four skipped tests in course_discovery/apps/api/v1/tests/test_views/test_courses.py, course_discovery/apps/api/tests/test_mixins.py, and course_discovery/apps/api/v1/tests/test_views/test_course_runs.py. Reproduce the differing outcomes, investigate the causes of the flakiness, and consider the work done when these tests pass consistently and no longer need to be skipped.
Written by the indexing model from the issue text.
Description
The following tests are flaky and pass/fail in different runs.
You can see five different runs here: https://github.com/openedx/course-discovery/actions/runs/10726222327/job/29787028355?pr=4429
The tests named below passed in some runs and failed in other runs and so have been marked as skipped until they can be fixed.
- course_discovery/apps/api/v1/tests/test_views/test_courses.py::CourseViewSetTests::test_list_key_filter
- course_discovery/apps/api/v1/tests/test_views/test_courses.py::CourseViewSetTests::test_list_query
- course_discovery/apps/api/tests/test_mixins.py::TestAnonymousUserThrottleMixin::test_throttle_limit__authentication_classes
- course_discovery/apps/api/v1/tests/test_views/test_course_runs.py::CourseRunViewSetTests::test_list_query_include_restricted_2__False__3_
- Dominant language
- Python
- Stars
- 59
- Forks
- 195
- Avg merge
- 5h 56m
- Merged PRs (30d)
- 4
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openedx/course-discovery
-
depr help wanted
Difficulty 4/5 3-5 days Newbie friendliness 42/100
openedx/course-discovery#4650 ·
-
depr
Difficulty 5/5 Over a week Newbie friendliness 20/100
openedx/course-discovery#4449 · 25 comments · 13 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
openedx/course-discovery#4430 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
openedx/course-discovery#4110 ·
-
Dependency DashboardOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
openedx/course-discovery#3648 ·
All issues in openedx/course-discovery
Similar issues
-
CI flake: test-windows times out spawning Node in tests/test_antigravity_node_hooks.py (develop red)Openarea/ci P2
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
benchmark
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
mozilla-ai/cq#601 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day