[NPMCLI-75] Flaky testsuite: create-page aftereach hook Created: 19/Jan/17  Updated: 31/Jan/17  Resolved: 24/Jan/17

Status: Closed
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Robert Kowalski Assignee: Robert Kowalski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to NPMCLI-93 Jumpstart command does not update mag... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Basel 80
Story Points: 3

 Description   

It seems there is a flaky test.

After kicking off the testsuite again, it returned back to green.


  1) create-page "after each" hook:
     Uncaught AssertionError: expected [Error: ENOENT: no such file or directory, open '/var/lib/jenkins/workspace/build_npm-cli/test/light-modules/foo/templates/pages/myPage.yaml'] to be null
      at ReadFileContext.<anonymous> (test/testHelper.js:16:22)
      at ReadFileContext.callback (node_modules/fs-extra/node_modules/graceful-fs/graceful-fs.js:78:16)
      at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)

https://jenkins.magnolia-cms.com/job/build_npm-cli/143/console
https://jenkins.magnolia-cms.com/job/build_npm-cli/147/console



 Comments   
Comment by Robert Kowalski [ 20/Jan/17 ]

Depends on the refactoring in NPMCLI-62 as the issue is a race condition in the template writing code.

Generated at Mon Feb 12 04:46:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.