learningequality / learningequality/studio

Inconsistently failing `test_fetch_or_enqueue_task` CI

Open
#3,916 3 comments 0 reactions 1 assignee View on GitHub

@bjester is already working on this.

Since Jan 24, 2023.

DEV: backend DEV: dev-ops P0 - critical
Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

Observed behavior

We've seen the following test failure in our Github CI builds inconsistently

=================================== FAILURES ===================================
_________________ AsyncTaskTestCase.test_fetch_or_enqueue_task _________________

self = <contentcuration.tests.test_asynctask.AsyncTaskTestCase testMethod=test_fetch_or_enqueue_task>

    def test_fetch_or_enqueue_task(self):
        expected_task = test_task.enqueue(self.user, is_test=True)
        async_result = test_task.fetch_or_enqueue(self.user, is_test=True)
>       self.assertEqual(expected_task.task_id, async_result.task_id)
E       AssertionError: 'dc51c290f1bc44f9b7ae19ad123c2c9f' != '49eae93f804f49a19fa363772149be43'
E       - dc51c290f1bc44f9b7ae19ad123c2c9f
E       + 49eae93f804f49a19fa363772149be43

contentcuration/contentcuration/tests/test_asynctask.py:210: AssertionError

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.