oppia: [Flake]: Error: The following Angular modules are extra in the golden file at the path core/tests/test-modules-mappings/acceptance/topic-manager/edit-and-preview-a-subtopic.txt:

CI Test Type

Acceptance

Stacktrace

Error: The following Angular modules are extra in the golden file at the path core/tests/test-modules-mappings/acceptance/topic-manager/edit-and-preview-a-subtopic.txt:
core/templates/pages/skill-editor-page/skill-editor-page.import.ts
Please remove them from the golden file or copy and paste the uploaded github artifact into the golden file location. If the test was run locally, the golden file has been updated with the collected modules automatically.
    at Function.compareCollectedModulesWithGoldenFile (/home/runner/work/oppia/oppia/core/tests/test-dependencies/test-to-modules-matcher.ts:238:13)
    at UserContext.<anonymous> (/home/runner/work/oppia/oppia/core/tests/puppeteer-acceptance-tests/specs/helpers/reporter.ts:277:26)
    at <Jasmine>
    at processImmediate (node:internal/timers:464:21)

Additional Information

It mentions that a specific angular module is extra in the golden file, but actually the test would start failing deterministically without that module as the module is indeed used in the test.

Occurrences

https://github.com/oppia/oppia/actions/runs/9910480339/job/27382261044

Debugging document link

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (21 by maintainers)

Commits related to this issue

Most upvoted comments

@Akhilesh-max Ok thanks, looks good to me, think this is a good solution until we find a better way to capture URLs that are opened but not completely loaded.

Sorry will try to look at this today, was out most of the day yesterday.