oppia: [CI Failure]: Fix all failing E2E/Acceptance Test suites

If you want to take any sub-task, please leave a comment below. You should add how you would fix it - you can do this by showing code, or creating a draft PR.

In CI, we got a bug that allowed pushing buggy code. This broke some of the test suites (E2E/Acceptance). To fix this bug immediately, we have removed failing test suites from being required for PR to merge.

We need to fix these broken test suites.

E2E Test Suites Check https://github.com/oppia/oppia/issues/22448#issuecomment-2816070985 for error messages.

Acceptance Test Suites Check https://github.com/oppia/oppia/issues/22448#issuecomment-2816083091 for error messages

Reproduction On CI:

  • remove test suite from broken_suites dict in .github/workflows/full_stack_tests.yml

Locally:

  • run E2E/Acceptance test using python -m srcipts.run_acceptance_tests --suite=<SUITE> or python -m scripts.run_e2e_tests --suite=<SUITE>

Enabling test suites in CI Once the test suite is fixed, remove it from broken_suites dict in .github/workflows/full_stack_tests.yml

  • After all test suites are fixed, remove check_skip step in the same workflow.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 17 (15 by maintainers)

Commits related to this issue

Most upvoted comments

@ojasvi004 Can you share a debugging doc? This is mandatory if you want help.

Thanks!

@jayam04, should I create my PR after yours gets merged? Since you’ve modified editDefaultResponseFeedback(), it will conflict with my changes.

@ojasvi004 It’s fine for me, I think my PR https://github.com/oppia/oppia/pull/22543 will be merged in a day or two – only final review by dev-workflow-team is pending.

@ojasvi004 Acceptance test exploration-editor/publish-the-exploration-with-an-interaction has more issues than conflicts with QuestionSubmitter. A good thing is @KartikSuryavanshi has a fix, and already has open PR.

Just letting you know.

/cc @KartikSuryavanshi

Edit: Link to PR: https://github.com/oppia/oppia/pull/22224

@ojasvi004 I have checked, and yes some tests indeed pass when QuestionSubmitter’s methods are excluded. If you open a PR, please refractor all methods except editDefaultResponseFeedback because I have already fixed it in PR #22543 and it will create merge conflicts.

@ojasvi004 yes, you are right. I have already done a similar thing for the 4th Acceptance test that’s failing in the following PR: https://github.com/oppia/oppia/pull/22543. You are also right about QustionSubmitter and I have already filed an issue https://github.com/oppia/oppia/issues/22539.

While my approach was to duplicate functions, you approach of renaming the function is better. To test if other failing acceptance test passes you can simply remove QuestionSubmitter() from UserFactory and check if acceptance tests pass.

For E2E tests, while common, there is some other issue.