Flaky Tests

Open
#4,431 0 comments 0 reactions 0 assignees View on GitHub

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

flaky-test

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openedx/course-discovery

All issues in openedx/course-discovery

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.