openedx / openedx/openedx-platform

[Flaky test] `lms/djangoapps/commerce/tests/__init__.py::DeprecatedRestApiClientTest::test_tracking_context`

Open
#35,723 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

flaky-test
Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

This test fails intermittently and has been deleted according to the Flaky Test Process in https://github.com/openedx/edx-platform/pull/35094

See docs on how to address flaky tests for why this should be fixed and how to go about it.

Failure output:

FAILED lms/djangoapps/commerce/tests/__init__.py::DeprecatedRestApiClientTest::test_tracking_context - requests.exceptions.ConnectionError: HTTPSConnectionPool(host='ecommerce.example.com', port=443): Max retries exceeded with url: /api/v2/baskets/1/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0708b91f50>: Failed to establish a new connection: [Errno -2] Name or service not known'))

(Previously filed as https://2u-internal.atlassian.net/browse/CR-6899)

Contributor guide

Open the contributing guide

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.

Research direction

Start with lms/djangoapps/commerce/tests/init.py::DeprecatedRestApiClientTest::test_tracking_context and compare the failing and passing workflow runs linked in the issue. Review the flaky-test process guidance, then make the test reliable against the reported ecommerce.example.com connection failure and verify it passes consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.