You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by "afs (via GitHub)" <gi...@apache.org> on 2023/01/29 15:14:17 UTC

[GitHub] [jena] afs commented on pull request #1734: Add start-server-and-test, remove concurrently, and simplify packages…

afs commented on PR #1734:
URL: https://github.com/apache/jena/pull/1734#issuecomment-1407690325

   Sounds good.
   
   I cleared out `node_modules`, comments out `testFailureIgnore` in the POM, and ran `yarn install` the `mvn clean test`.
   
   I get this error 
   ```
   [INFO] Running 'yarn run test:e2e -- --headless --browser chrome' in /home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui
   [INFO] yarn run v1.22.17
   [INFO] warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
   [INFO] $ cross-env FUSEKI_PORT="${FUSEKI_PORT:=3030}" PORT="${PORT:=8080}" start-server-and-test 'yarn serve:offline' http://localhost:${FUSEKI_PORT}/ping 'yarn cypress' --headless --browser chrome
   [INFO] /home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/lazy-ass/index.js:117
   [INFO]       throw err;
   [INFO]       ^
   [INFO] 
   [INFO] Error: expected <NPM script name that starts server> <url or port> <NPM script name that runs tests>
   [INFO] example: start-test start 8080 test
   [INFO] see https://github.com/bahmutov/start-server-and-test#use
   ```
   
   <details>
   <summary>frontend-maven-plugin:1.12.1:yarn (yarn run test:e2e) @ jena-fuseki-ui</summary>
   
   ```
   [INFO] --- frontend-maven-plugin:1.12.1:yarn (yarn run test:e2e) @ jena-fuseki-ui ---
   [INFO] Running 'yarn run test:e2e -- --headless --browser chrome' in /home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui
   [INFO] yarn run v1.22.17
   [INFO] warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
   [INFO] $ cross-env FUSEKI_PORT="${FUSEKI_PORT:=3030}" PORT="${PORT:=8080}" start-server-and-test 'yarn serve:offline' http://localhost:${FUSEKI_PORT}/ping 'yarn cypress' --headless --browser chrome
   [INFO] /home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/lazy-ass/index.js:117
   [INFO]       throw err;
   [INFO]       ^
   [INFO] 
   [INFO] Error: expected <NPM script name that starts server> <url or port> <NPM script name that runs tests>
   [INFO] example: start-test start 8080 test
   [INFO] see https://github.com/bahmutov/start-server-and-test#use
   [INFO] 
   [INFO]     at lazyAssLogic (/home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/lazy-ass/index.js:110:14)
   [INFO]     at lazyAss (/home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/lazy-ass/index.js:115:28)
   [INFO]     at Object.getArguments (/home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/start-server-and-test/src/utils.js:118:5)
   [INFO]     at Object.<anonymous> (/home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/start-server-and-test/src/bin/start.js:13:22)
   [INFO]     at Module._compile (node:internal/modules/cjs/loader:1101:14)
   [INFO]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
   [INFO]     at Module.load (node:internal/modules/cjs/loader:981:32)
   [INFO]     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
   [INFO]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
   [INFO]     at node:internal/main/run_main_module:17:47
   [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:  12.353 s
   [INFO] Finished at: 2023-01-29T15:01:43Z
   [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]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
   ```
   
   <details>
   
   If change the "throw" line to `throw new Error("foo");` I get (two different ports metioned):
   
   ```
   [INFO] $ vite
   [INFO] 
   [INFO]   VITE v4.0.4  ready in 238 ms
   [INFO] 
   [INFO]   ➜  Local:   http://localhost:49113/
   [INFO]   ➜  Network: use --host to expose
   [INFO] Cypress could not verify that this server is running:
   [INFO] 
   [INFO]   > http://localhost:44745
   [INFO] 
   [INFO] We are verifying this server because it has been configured as your baseUrl.
   [INFO] 
   [INFO] Cypress automatically waits until your server is accessible before running tests.
   [INFO] 
   [INFO] We will try connecting to it 3 more times...
   [INFO] We will try connecting to it 2 more times...
   [INFO] We will try connecting to it 1 more time...
   [INFO] 
   [INFO] Cypress failed to verify that your server is running.
   ```


-- 
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: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org