Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flake]: Topic in Skill Proficiency takes too long to appear #20326

Open
Vir-8 opened this issue May 17, 2024 · 1 comment
Open

[Flake]: Topic in Skill Proficiency takes too long to appear #20326

Vir-8 opened this issue May 17, 2024 · 1 comment
Labels
bug Label to indicate an issue is a regression CI breakage This bug breaks CI workflows.

Comments

@Vir-8
Copy link
Contributor

Vir-8 commented May 17, 2024

CI Test Type

E2E

Stacktrace

ERROR:root:Frontend error: 
Cannot read properties of undefined (reading 'length')

    at URL: http://localhost:8181/learner-dashboard
ERROR:root:Frontend error: 
Cannot read properties of undefined (reading 'length')

    at URL: http://localhost:8181/learner-dashboard
ERROR:root:Frontend error: 
Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'length')
TypeError: Cannot read properties of undefined (reading 'length')
    at $.<anonymous> (http://localhost:8181/build/webpack_bundles/40.205d3ebc3ff461065133.bundle.js:1:2113735)
    at Generator.next (<anonymous>)
    at http://localhost:8181/build/webpack_bundles/40.205d3ebc3ff461065133.bundle.js:1:2113013
    at new e (http://localhost:8181/build/webpack_bundles/vendors~lightweight_oppia_root~oppia_root.90828e3392d2d8716f63.bundle.js:1966:2940)
    at X (http://localhost:8181/build/webpack_bundles/40.205d3ebc3ff461065133.bundle.js:1:2112758)
    at $.ngOnInit (http://localhost:8181/build/webpack_bundles/40.205d3ebc3ff461065133.bundle.js:1:2113633)
    at http://localhost:8181/build/webpack_bundles/vendors~lightweight_oppia_root~oppia_root.90828e3392d2d8716f63.bundle.js:1499:6672
    at http://localhost:8181/build/webpack_bundles/vendors~lightweight_oppia_root~oppia_root.90828e3392d2d8716f63.bundle.js:1499:6715
    at _E (http://localhost:8181/build/webpack_bundles/vendors~lightweight_oppia_root~oppia_root.90828e3392d2d8716f63.bundle.js:1499:8044)
    at zE (http://localhost:8181/build/webpack_bundles/vendors~lightweight_oppia_root~oppia_root.90828e3392d2d8716f63.bundle.js:1506:4278)

    at URL: http://localhost:8181/learner-dashboard
ERROR:root:Frontend error: 
Cannot read properties of undefined (reading 'length')

    at URL: http://localhost:8181/learner-dashboard
[0-0] Error in "Learner dashboard functionality should display all the topics that are partially learnt or learnt in skill proficiency section, learnt topics in completed goals section and completed stories in completed stories section"
Error: Topic in Skill Proficiency takes too long to appear
Error: 
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:132:39)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:16:12)
    at Object.visibilityOf (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:138:12)
    at LearnerDashboardPage.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:177:19)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:20:71
    at new Promise (<anonymous>)
    ��� should display all the topics that are partially learnt or learnt in skill proficiency section, learnt topics in completed goals section and completed stories in completed stories section �� [ /core/tests/webdriverio_desktop/learnerDashboard.js ]
[0-0] FAILED in chrome - /core/tests/webdriverio_desktop/learnerDashboard.js

 "spec" Reporter:
------------------------------------------------------------------
Running: chrome (v102.0.5005.61) on LINUX
Session ID: 1529dd6331005f06fff9f1081a06c920

�� /core/tests/webdriverio_desktop/learnerDashboard.js
Learner dashboard functionality
   ��� should display learners subscriptions
   ��� should add and remove exploration to play later list
   ��� should display correct topics in edit goals, learn something new section, current goals and continue where you left off section
   ��� should display all the topics that are partially learnt or learnt in skill proficiency section, learnt topics in completed goals section and completed stories in completed stories section

3 passing (10m 30.4s)
1 failing

1) Learner dashboard functionality should display all the topics that are partially learnt or learnt in skill proficiency section, learnt topics in completed goals section and completed stories in completed stories section
Error: Topic in Skill Proficiency takes too long to appear
Error: 
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:132:39)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:16:12)
    at Object.visibilityOf (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:138:12)
    at LearnerDashboardPage.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:177:19)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:20:71
    at new Promise (<anonymous>)

Error: Topic in Skill Proficiency takes too long to appear
Error: 
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:132:39)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:16:12)
    at Object.visibilityOf (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:138:12)
    at LearnerDashboardPage.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:177:19)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:20:71
    at new Promise (<anonymous>)
Error: Topic in Skill Proficiency takes too long to appear
Error: 
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:132:39)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:16:12)
    at Object.visibilityOf (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:138:12)
    at LearnerDashboardPage.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:177:19)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:20:71
    at new Promise (<anonymous>)

error properties: Object({ matcherName: '', passed: false, expected: '', actual: '' })
Error: Topic in Skill Proficiency takes too long to appear
Error: 
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:132:39)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:16:12)
    at Object.visibilityOf (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:138:12)
    at LearnerDashboardPage.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:177:19)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/LearnerDashboardPage.js:20:71
    at new Promise (<anonymous>)


Spec Files:	 0 passed, 1 failed, 1 total (100% completed) in 00:10:36

Additional Information

Webdriver screenshot -
Learner-dashboard-functionality-should-display-all-the-topics-that-are-partially-learnt-or-learnt-in-skill-proficiency-section%2C-learnt-topics-in-completed-goals-section-and-completed-stories-in-completed-stories-section

Occurrences

13 May 2024 - https://github.com/oppia/oppia/actions/runs/9065338751/job/24907102163

Debugging document link

No response

@Vir-8 Vir-8 added triage needed bug Label to indicate an issue is a regression CI breakage This bug breaks CI workflows. labels May 17, 2024
@Ash-2k3
Copy link
Member

Ash-2k3 commented May 26, 2024

This seems to be due to timing issues. The topic in the Skill Proficiency section might be loaded asynchronously, meaning the test is trying to check its presence before it's fully loaded.

A waitFor statement here could be a potential fix if the above assumption is true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Label to indicate an issue is a regression CI breakage This bug breaks CI workflows.
Projects
Status: Todo
Development

No branches or pull requests

3 participants