afs commented on issue #1306:
URL: https://github.com/apache/jena/issues/1306#issuecomment-1304535821

   Hi @kinow,
   
   I'm having problems in the maven build with jena-fuseki-ui. 
   But it works on Jenkins!
   
   I'm assuming it is a configuration problem on my side.
   
   I did a fairly clean Ubuntu install on this machine but local setting for my 
user account were copied over from the old machine.
   
   #### Steps
   
   A clean git-clone of Jena.
   
   ```
   cd jena-fuseki-ui
   ## chrome, clear the cache.
   
   ## Sometimes succeeds
   mvn clean verify
   
   ## Always fails after a success.
   mvn clean verify
   ```
   
   #### Test failure
   
   `AssertionError: Timed out retrying after 7500ms: Expected to find element: 
``table.jena-table > thead > tr > th``, but never found it.`
   
   
![screenshot_datasets](https://user-images.githubusercontent.com/101362/200113963-26de92a5-b8f5-4646-8885-dd9bbcd87d68.png)
   
   #### Setup
   
   cypress is installed (`npm install cypress`) globally. 
   
   `npm install cypress --save-dev` in jena-fuseki-ui didn't work.
   
   It is different to before - there is only one cypress failure in datasets.
   
   #### Attached information
   
   Attached: [Full log of `mvn clean 
verify`](https://github.com/apache/jena/files/9943502/jena-fuseki-ui_build.log)
   Attached: screen shot 
[screenshot_datasets](https://user-images.githubusercontent.com/101362/200113963-26de92a5-b8f5-4646-8885-dd9bbcd87d68.png)
   Attached: [failed cypress "save-dev" 
install](https://github.com/apache/jena/files/9943508/npm-cypress-install.txt)
   
   Extract of the maven output:
   ```
   [INFO] [TESTS]   8 passing (15s)
   [INFO] [TESTS]   1 failing
   [INFO] [TESTS] 
   [INFO] [TESTS]   1) datasets
   [INFO] [TESTS]        After creating new datasets
   [INFO] [TESTS]          Edits the graph:
   [INFO] [TESTS]      AssertionError: Timed out retrying after 7500ms: 
Expected to find element: `table.jena-table > thead > tr > th`, but never found 
it.
   [INFO] [TESTS]       at Context.eval 
(webpack://apache-jena-fuseki/./tests/e2e/specs/datasets.cy.js:291:9)
   
   [INFO] [TESTS]   (Screenshots)
   [INFO] [TESTS] 
   [INFO] [TESTS]   -  tests/e2e/screenshots/datasets.cy.js/datasets -- After 
creating new datasets --      (1280x720)
   [INFO] [TESTS]      Edits the graph (failed).png                             
                                      
   
   [INFO] [TESTS]  ERROR  Error: Command failed: 
/home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/cypress/bin/cypress
 run --config baseUrl=http://localhost:8080 --headless
   [INFO] [TESTS] Error: Command failed: 
/home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/cypress/bin/cypress
 run --config baseUrl=http://localhost:8080 --headless
   [INFO] [TESTS]     at makeError 
(/home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/execa/index.js:174:9)
   [INFO] [TESTS]     at 
/home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/execa/index.js:278:16
   [INFO] [TESTS]     at processTicksAndRejections 
(node:internal/process/task_queues:96:5)
   [INFO] [TESTS] vue-cli-service test:e2e --headless exited with code 1
   [INFO] --> Sending SIGTERM to other processes..
   [INFO] [SERVER] yarn run serve:fuseki exited with code SIGTERM
   [INFO] error Command failed with exit code 1.
   [INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation 
about this command.
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  44.360 s
   [INFO] Finished at: 2022-11-05T09:33:42Z
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
com.github.eirslett:frontend-maven-plugin:1.12.1:yarn (yarn run test:e2e) on 
project jena-fuseki-ui: Failed to run task: 'yarn run test:e2e -- --headless 
--browser chrome' failed. org.apache.commons.exec.ExecuteException: Process 
exited with an error: 1 (Exit value: 1) -> [Help 1]
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to