Closed afs closed 7 months ago
Oh, I think we just need to tell Cypress to run in headless mode. Let me try that.
Replicate:
Strange, main
passes for me after connecting with ssh -x
. Also tried export DISPLAY=
, and unset DISPLAY
, and DISPLAY= mvn clean install
. All succeed with no errors.
[INFO] [TESTS] ====================================================================================================
[INFO] [TESTS]
[INFO] [TESTS] (Run Finished)
[INFO] [TESTS]
[INFO] [TESTS]
[INFO] [TESTS] Spec Tests Passing Failing Pending Skipped
[INFO] [TESTS] ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
[INFO] [TESTS] │ ✔ datasets.cy.js 00:29 9 9 - - - │
[INFO] [TESTS] ├────────────────────────────────────────────────────────────────────────────────────────────────┤
[INFO] [TESTS] │ ✔ query.cy.js 00:04 2 2 - - - │
[INFO] [TESTS] └────────────────────────────────────────────────────────────────────────────────────────────────┘
[INFO] [TESTS] ✔ All specs passed! 00:33 11 11 - - -
[INFO] [TESTS]
[INFO] [TESTS] yarn wait-on http-get://localhost:${PORT}/index.html && cypress run ${0} exited with code 0
[INFO] --> Sending SIGTERM to other processes..
[INFO] [SERVER] yarn run serve:fuseki exited with code SIGTERM
[INFO] --> Sending SIGTERM to other processes..
[INFO] [CLIENT] yarn wait-on http://localhost:${FUSEKI_PORT}/ping && yarn run dev exited with code SIGTERM
[INFO] Done in 45.45s.
I did find an issue running yarn run test:e2e
as I forgot to export the ports (coverage is doing so), but that doesn't seem to affect this issue.
With jena5 dev this happens: the build succeeds but there are stacktraces.
I suggest we close this issue as it doesn't seem to happen in use. We can reopen if it becomes a problem.
[INFO] Scanning for projects... [INFO] [INFO] -------------------< org.apache.jena:jena-fuseki-ui >------------------- [INFO] Building Apache Jena - Fuseki UI 5.0.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.3.2:clean (default-clean) @ jena-fuseki-ui --- [INFO] Deleting /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/target [INFO] [INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ jena-fuseki-ui --- [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed [INFO] [INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ jena-fuseki-ui --- [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed [INFO] [INFO] --- enforcer:3.4.1:enforce (enforce) @ jena-fuseki-ui --- [INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.DependencyConvergence passed [INFO] Rule 1: org.apache.maven.enforcer.rules.RequirePluginVersions passed [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.RequireReleaseDeps passed [INFO] Rule 3: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed [INFO] [INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ jena-fuseki-ui --- [INFO] Preparing remote bundle org.apache.apache.resources:apache-jar-resource-bundle:1.5 [INFO] Copying 3 resources from 1 bundle. [INFO] [INFO] --- frontend:1.15.0:install-node-and-yarn (install node and yarn) @ jena-fuseki-ui --- [INFO] Node v16.20.2 is already installed. [INFO] Yarn 1.22.17 is already installed. [INFO] [INFO] --- frontend:1.15.0:yarn (yarn install) @ jena-fuseki-ui --- [INFO] Running 'yarn install --frozen-lockfile' in /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui [INFO] yarn install v1.22.17 [INFO] [1/4] Resolving packages... [INFO] success Already up-to-date. [INFO] Done in 0.15s. [INFO] [INFO] --- frontend:1.15.0:yarn (yarn run build) @ jena-fuseki-ui --- [INFO] Running 'yarn run build' in /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui [INFO] yarn run v1.22.17 [INFO] $ vite build [INFO] vite v4.5.2 building for production... [INFO] transforming... [INFO] node_modules/@zazuko/yasqe/build/yasqe.min.js (2:274794) Use of eval in "node_modules/@zazuko/yasqe/build/yasqe.min.js" is strongly discouraged as it poses security risks and may cause issues with minification. [INFO] node_modules/@zazuko/yasr/build/yasr.min.js (2:445859) Use of eval in "node_modules/@zazuko/yasr/build/yasr.min.js" is strongly discouraged as it poses security risks and may cause issues with minification. [INFO] ✓ 234 modules transformed. [INFO] rendering chunks... [INFO] computing gzip size... [INFO] target/webapp/index.html 1.51 kB │ gzip: 0.87 kB [INFO] target/webapp/static/logo-af58c023.svg 4.06 kB │ gzip: 1.81 kB [INFO] target/webapp/static/Edit-5d0f417c.css 6.02 kB │ gzip: 1.59 kB [INFO] target/webapp/static/logo-af58c023.svg 4.06 kB │ gzip: 1.81 kB [INFO] (!) Some chunks are larger than 550 kBs after minification. Consider: [INFO] - Using dynamic import() to code-split the application [INFO] - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [INFO] - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [INFO] target/webapp/static/Query-b5173a59.css 40.94 kB │ gzip: 7.09 kB [INFO] target/webapp/static/index-fb468c02.css 384.84 kB │ gzip: 52.30 kB [INFO] target/webapp/static/index-f030cefe.js 1.89 kB │ gzip: 1.17 kB │ map: 1.30 kB [INFO] target/webapp/static/Help-724ead24.js 3.43 kB │ gzip: 1.95 kB │ map: 1.96 kB [INFO] target/webapp/static/Menu-a9f2af81.js 5.37 kB │ gzip: 2.65 kB │ map: 3.26 kB [INFO] target/webapp/static/Tasks-e9a599a2.js 8.66 kB │ gzip: 3.94 kB │ map: 5.30 kB [INFO] target/webapp/static/current-dataset-navigation-guards-7c867ce8.js 14.50 kB │ gzip: 6.31 kB │ map: 9.07 kB [INFO] target/webapp/static/NewDataset-37a6bb6c.js 14.60 kB │ gzip: 5.70 kB │ map: 8.81 kB [INFO] target/webapp/static/ExistingDatasets-d6af05bc.js 23.46 kB │ gzip: 7.65 kB │ map: 14.09 kB [INFO] target/webapp/static/Info-7ddd502e.js 28.96 kB │ gzip: 9.85 kB │ map: 17.59 kB [INFO] target/webapp/static/Upload-581cec26.js 207.53 kB │ gzip: 59.72 kB │ map: 125.12 kB [INFO] target/webapp/static/bootstrap.esm-fd8daac5.js 522.44 kB │ gzip: 144.92 kB │ map: 330.49 kB [INFO] target/webapp/static/Edit-82088a07.js 1,130.29 kB │ gzip: 348.82 kB │ map: 711.52 kB [INFO] target/webapp/static/index-85525b40.js 3,686.59 kB │ gzip: 1,138.77 kB │ map: 2,495.03 kB [INFO] target/webapp/static/Query-47b16ab8.js 4,855.54 kB │ gzip: 1,287.81 kB │ map: 2,711.13 kB [INFO] ✓ built in 6.98s [INFO] Done in 7.29s. [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ jena-fuseki-ui --- [INFO] skip non existing resourceDirectory /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/src/main/resources [INFO] Copying 3 resources from target/maven-shared-archive-resources to target/classes [INFO] [INFO] --- build-helper:3.5.0:reserve-network-port (reserve-network-port) @ jena-fuseki-ui --- [INFO] Reserved port 46533 for org.apache.jena.fuseki.port [INFO] Reserved port 41659 for org.apache.jena.fuseki.ui.port [INFO] [INFO] --- compiler:3.12.1:compile (default-compile) @ jena-fuseki-ui --- [INFO] No sources to compile [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ jena-fuseki-ui --- [INFO] skip non existing resourceDirectory /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/src/test/resources [INFO] Copying 3 resources from target/maven-shared-archive-resources to target/test-classes [INFO] [INFO] --- compiler:3.12.1:testCompile (default-testCompile) @ jena-fuseki-ui --- [INFO] No sources to compile [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ jena-fuseki-ui --- [INFO] [INFO] --- frontend:1.15.0:yarn (yarn run test:unit) @ jena-fuseki-ui --- [INFO] Running 'yarn run test:unit' in /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui [INFO] yarn run v1.22.17 [INFO] $ vitest run --environment jsdom [INFO] [INFO] RUN v0.34.6 /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui [INFO] [INFO] ✓ tests/unit/utils/query.spec.js (1 test) 4ms [INFO] ✓ tests/unit/services/fuseki.service.spec.js (20 tests) 23ms [INFO] ✓ tests/unit/components/serverstatus.vue.spec.js (3 tests) 20ms [INFO] ✓ tests/unit/components/dataset/tablelisting.vue.spec.js (2 tests) 34ms [INFO] [INFO] Test Files 4 passed (4) [INFO] Tests 26 passed (26) [INFO] Start at 20:26:15 [INFO] Duration 1.15s (transform 253ms, setup 0ms, collect 625ms, tests 81ms, environment 728ms, prepare 801ms) [INFO] [INFO] Done in 1.57s. [INFO] [INFO] --- frontend:1.15.0:yarn (yarn run test:e2e) @ jena-fuseki-ui --- [INFO] Running 'yarn run test:e2e' in /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui [INFO] yarn run v1.22.17 [INFO] $ cross-env FUSEKI_PORT="${FUSEKI_PORT:=3030}" PORT="${PORT:=8080}" concurrently --names 'SERVER,CLIENT,TESTS' --prefix-colors 'yellow,blue,green' --success 'first' --kill-others 'yarn run serve:fuseki' 'yarn wait-on http://localhost:${FUSEKI_PORT}/$/ping && yarn run dev' 'yarn wait-on http-get://localhost:${PORT}/index.html && cypress run $@' [INFO] [SERVER] $ nodemon src/services/mock/json-server.js [INFO] [CLIENT] $ /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/node_modules/.bin/wait-on 'http://localhost:46533/$/ping' [INFO] [TESTS] $ /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/node_modules/.bin/wait-on http-get://localhost:41659/index.html [INFO] [SERVER] [nodemon] 3.0.1 [INFO] [SERVER] [nodemon] to restart at any time, enter `rs` [INFO] [SERVER] [nodemon] watching path(s): *.* [INFO] [SERVER] [nodemon] watching extensions: js,mjs,cjs,json [INFO] [SERVER] [nodemon] starting `node src/services/mock/json-server.js` [INFO] [SERVER] JSON Server is running [INFO] [SERVER] HEAD /$/ping 200 1.127 ms - 40 [INFO] [CLIENT] $ vite [INFO] [CLIENT] [INFO] [CLIENT] VITE v4.5.2 ready in 259 ms [INFO] [CLIENT] [INFO] [CLIENT] ➜ Local: http://localhost:41659/ [INFO] [CLIENT] ➜ Network: use --host to expose [INFO] [SERVER] GET /index.html 200 0.471 ms - 2 [INFO] [TESTS] Your system is missing the dependency: Xvfb [INFO] [TESTS] [INFO] [TESTS] Install Xvfb and run Cypress again. [INFO] [TESTS] [INFO] [TESTS] Read our documentation on dependencies for more information: [INFO] [TESTS] [INFO] [TESTS] https://on.cypress.io/required-dependencies [INFO] [TESTS] [INFO] [TESTS] If you are using Docker, we provide containers with all required dependencies installed. [INFO] [TESTS] [INFO] [TESTS] ---------- [INFO] [TESTS] [INFO] [TESTS] Error: spawn Xvfb ENOENT [INFO] [TESTS] [INFO] [TESTS] ---------- [INFO] [TESTS] [INFO] [TESTS] Platform: linux-x64 (Ubuntu - 23.10) [INFO] [TESTS] Cypress Version: 13.5.0 [INFO] [TESTS] yarn wait-on http-get://localhost:${PORT}/index.html && cypress run $@ exited with code 1 [INFO] --> Sending SIGTERM to other processes.. [INFO] [SERVER] yarn run serve:fuseki exited with code SIGTERM [INFO] --> Sending SIGTERM to other processes.. [INFO] [CLIENT] yarn wait-on http://localhost:${FUSEKI_PORT}/$/ping && yarn run dev exited with code SIGTERM [INFO] error Command failed with exit code 1. [INFO] error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [ERROR] There are test failures. Failed to run task: 'yarn run test:e2e' failed. com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'yarn run test:e2e' failed. at com.github.eirslett.maven.plugins.frontend.lib.YarnTaskExecutor.execute (YarnTaskExecutor.java:64) at com.github.eirslett.maven.plugins.frontend.mojo.YarnMojo.execute (YarnMojo.java:65) at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke (Method.java:580) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) Caused by: com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutionException: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutor.execute (ProcessExecutor.java:82) at com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutor.executeAndRedirectOutput (ProcessExecutor.java:64) at com.github.eirslett.maven.plugins.frontend.lib.YarnExecutor.executeAndRedirectOutput (YarnExecutor.java:28) at com.github.eirslett.maven.plugins.frontend.lib.YarnTaskExecutor.execute (YarnTaskExecutor.java:58) at com.github.eirslett.maven.plugins.frontend.mojo.YarnMojo.execute (YarnMojo.java:65) at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke (Method.java:580) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166) at com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutor.execute (ProcessExecutor.java:74) at com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutor.executeAndRedirectOutput (ProcessExecutor.java:64) at com.github.eirslett.maven.plugins.frontend.lib.YarnExecutor.executeAndRedirectOutput (YarnExecutor.java:28) at com.github.eirslett.maven.plugins.frontend.lib.YarnTaskExecutor.execute (YarnTaskExecutor.java:58) at com.github.eirslett.maven.plugins.frontend.mojo.YarnMojo.execute (YarnMojo.java:65) at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke (Method.java:580) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) [INFO] [INFO] --- jar:3.3.0:jar (default-jar) @ jena-fuseki-ui --- [INFO] Building jar: /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/target/jena-fuseki-ui-5.0.0-SNAPSHOT.jar [INFO] [INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ jena-fuseki-ui --- [INFO] Skipping because packaging 'jar' is not pom. [INFO] [INFO] --- cyclonedx:2.7.11:makeAggregateBom (build-sbom-cyclonedx) @ jena-fuseki-ui --- [INFO] CycloneDX: Resolving Dependencies [INFO] CycloneDX: Creating BOM version 1.4 with 0 component(s) [INFO] CycloneDX: Writing and validating BOM (XML): /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/target/jena-fuseki-ui-5.0.0-SNAPSHOT-bom.xml [INFO] attaching as jena-fuseki-ui-5.0.0-SNAPSHOT-cyclonedx.xml [INFO] CycloneDX: Writing and validating BOM (JSON): /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/target/jena-fuseki-ui-5.0.0-SNAPSHOT-bom.json [WARNING] Unknown keyword additionalItems - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword [INFO] attaching as jena-fuseki-ui-5.0.0-SNAPSHOT-cyclonedx.json [INFO] [INFO] --- install:3.1.1:install (default-install) @ jena-fuseki-ui --- [INFO] Installing /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/pom.xml to /home/afs/.m2/repository/org/apache/jena/jena-fuseki-ui/5.0.0-SNAPSHOT/jena-fuseki-ui-5.0.0-SNAPSHOT.pom [INFO] Installing /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/target/jena-fuseki-ui-5.0.0-SNAPSHOT.jar to /home/afs/.m2/repository/org/apache/jena/jena-fuseki-ui/5.0.0-SNAPSHOT/jena-fuseki-ui-5.0.0-SNAPSHOT.jar [INFO] Installing /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/target/jena-fuseki-ui-5.0.0-SNAPSHOT-bom.xml to /home/afs/.m2/repository/org/apache/jena/jena-fuseki-ui/5.0.0-SNAPSHOT/jena-fuseki-ui-5.0.0-SNAPSHOT-cyclonedx.xml [INFO] Installing /home/afs/ASF/jena5/jena-fuseki2/jena-fuseki-ui/target/jena-fuseki-ui-5.0.0-SNAPSHOT-bom.json to /home/afs/.m2/repository/org/apache/jena/jena-fuseki-ui/5.0.0-SNAPSHOT/jena-fuseki-ui-5.0.0-SNAPSHOT-cyclonedx.json [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.398 s [INFO] Finished at: 2024-01-24T20:26:18Z [INFO] ------------------------------------------------------------------------
[INFO] [TESTS] Your system is missing the dependency: Xvfb
Yeah, no idea what could be missing on the ASF Jenkins server. We have a few jobs in Jenkins to publish snapshots in Commons, but I think 100% of the builds happen in GH Actions. All the Vue projects I contribute to are also running Cypress on GH Actions. I never worked with Cypress on Jenkins, so no clue here.
+1 to closing it since we can run this locally.
That run was on my machine using "ssh -x localhost" to log in without X. It's not happening on Jenkins, at least not on a regular basis.
The build is failing on CI because there is no X nor Xvfb an X server that can run on machines with no display hardware.
But it does build otherwise so the RM can produce an release.
Replicate:
Workaround: (same as #1644)
maven output
``` [INFO] --- frontend-maven-plugin:1.12.1:yarn (yarn run test:e2e) @ jena-fuseki-ui --- [INFO] Running 'yarn run test:e2e' in /home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui [INFO] yarn run v1.22.17 [INFO] $ concurrently --names 'SERVER,CLIENT,TESTS' --prefix-colors 'yellow,blue,green' --success 'first' --kill-others 'yarn run serve:fuseki' 'yarn wait-on http://localhost:${FUSEKI_PORT}/ping && yarn run dev' 'yarn wait-on http-get://localhost:${PORT}/index.html && cypress run ${0}' [INFO] [CLIENT] $ /home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/.bin/wait-on http://localhost:44225/ping [INFO] [TESTS] $ /home/afs/ASF/afs-jena/jena-fuseki2/jena-fuseki-ui/node_modules/.bin/wait-on http-get://localhost:39529/index.html [INFO] [SERVER] $ nodemon src/services/mock/json-server.js [INFO] [SERVER] [nodemon] 2.0.20 [INFO] [SERVER] [nodemon] to restart at any time, enter `rs` [INFO] [SERVER] [nodemon] watching path(s): *.* [INFO] [SERVER] [nodemon] watching extensions: js,mjs,json [INFO] [SERVER] [nodemon] starting `node src/services/mock/json-server.js` [INFO] [SERVER] JSON Server is running [INFO] [SERVER] HEAD /ping 200 1.038 ms - 257 [INFO] [CLIENT] $ vite [INFO] [CLIENT] [INFO] [CLIENT] VITE v4.0.4 ready in 239 ms [INFO] [CLIENT] [INFO] [CLIENT] ➜ Local: http://localhost:39529/ [INFO] [CLIENT] ➜ Network: use --host to expose [INFO] [SERVER] GET /index.html 200 0.501 ms - 257 [INFO] [TESTS] Your system is missing the dependency: Xvfb [INFO] [TESTS] [INFO] [TESTS] Install Xvfb and run Cypress again. [INFO] [TESTS] [INFO] [TESTS] Read our documentation on dependencies for more information: [INFO] [TESTS] [INFO] [TESTS] https://on.cypress.io/required-dependencies [INFO] [TESTS] [INFO] [TESTS] If you are using Docker, we provide containers with all required dependencies installed. [INFO] [TESTS] [INFO] [TESTS] ---------- [INFO] [TESTS] [INFO] [TESTS] Error: spawn Xvfb ENOENT [INFO] [TESTS] [INFO] [TESTS] ---------- [INFO] [TESTS] [INFO] [TESTS] Platform: linux-x64 (Ubuntu - 22.10) [INFO] [TESTS] Cypress Version: 12.4.1 [INFO] [TESTS] yarn wait-on http-get://localhost:${PORT}/index.html && cypress run ${0} exited with code 1 [INFO] --> Sending SIGTERM to other processes.. [INFO] [SERVER] yarn run serve:fuseki exited with code SIGTERM [INFO] --> Sending SIGTERM to other processes.. [INFO] [CLIENT] yarn wait-on http://localhost:${FUSEKI_PORT}/ping && yarn run dev 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] ------------------------------------------------------------------------ ```