[Builder] Build failed in Jenkins: platform-builds » apim-apps #124

cbuilder at wso2.org cbuilder at wso2.org
Thu Dec 16 02:28:51 PST 2021


See <https://wso2.org/jenkins/job/platform-builds/job/apim-apps/124/display/redirect?page=changes>

Changes:

[anushaj] Add UI Test to support Token Exchange Grant flow

[anushaj] Fix few bugs found during UI tests

[anushaj] Fix few bugs found during UI tests

[anushaj] Fix few bugs found during UI tests

[anushaj] Fix few bugs found during UI tests

[anushaj] Fix few bugs found during UI tests


------------------------------------------
[...truncated 233.40 KB...]
[INFO]       </div>
[INFO]       <div>
[INFO]         <div
[INFO]           class="progress-bar-striped"
[INFO]           id="apim-loader"
[INFO]         >
[INFO]           <span
[INFO]             style="background-color: rgb(249, 249, 249); width: 300px; display: flex; justify-content: center; font-family: \"Open Sans\", \"Helvetica\", \"Arial\", sans-serif; padding-bottom: 14px;"
[INFO]           >
[INFO]             Loading APIs ...
[INFO]           </span>
[INFO]           <div
[INFO]             style="width: 90%;"
[INFO]           >
[INFO]                
[INFO]           </div>
[INFO]         </div>
[INFO]       </div>
[INFO]     </body>
[INFO] 
[INFO]       44 |         render(<TableView />);
[INFO]       45 |         expect(
[INFO]     > 46 |             await screen.findByRole('button', {
[INFO]          |                          ^
[INFO]       47 |                 name: /switch to list view/i,
[INFO]       48 |             }),
[INFO]       49 |         ).toBeInTheDocument();
[INFO] 
[INFO]       at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:187:27)
[INFO]       at findByRole (node_modules/@testing-library/dom/dist/query-helpers.js:101:33)
[INFO]       at Object.<anonymous> (source/src/app/components/Apis/Listing/TableView/TableView.test.tsx:46:26)
[INFO] 
[INFO]   ● Table view › should show create API options
[INFO] 
[INFO]     FetchError: request to https://localhost/api/am/publisher/v2/swagger.yaml failed, reason: Cannot read property 'get' of undefined
[INFO] 
[INFO]       at ClientRequestOverride.<anonymous> (node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1461:11)
[INFO]       at ClientRequestOverride.<anonymous> (node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/createClientRequestOverride.ts:196:14)
[INFO]       at step (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:33:23)
[INFO]       at Object.next (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:14:53)
[INFO]       at fulfilled (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:5:58)
[INFO] 
[INFO]   ● Table view › should show create API options
[INFO] 
[INFO]     Unable to find role="button"
[INFO] 
[INFO]     Ignored nodes: comments, <script />, <style />
[INFO]     <body>
[INFO]       <div>
[INFO]         <div
[INFO]           class="rc-notification"
[INFO]           style="z-index: 1400; top: 0px; right: 0px; margin-left: 2%; position: fixed;"
[INFO]         >
[INFO]           <span />
[INFO]         </div>
[INFO]       </div>
[INFO]       <div>
[INFO]         <div
[INFO]           class="progress-bar-striped"
[INFO]           id="apim-loader"
[INFO]         >
[INFO]           <span
[INFO]             style="background-color: rgb(249, 249, 249); width: 300px; display: flex; justify-content: center; font-family: \"Open Sans\", \"Helvetica\", \"Arial\", sans-serif; padding-bottom: 14px;"
[INFO]           >
[INFO]             Loading APIs ...
[INFO]           </span>
[INFO]           <div
[INFO]             style="width: 90%;"
[INFO]           >
[INFO]                
[INFO]           </div>
[INFO]         </div>
[INFO]       </div>
[INFO]     </body>
[INFO] 
[INFO]       72 |         render(<TableView />);
[INFO]       73 |         expect(
[INFO]     > 74 |             await screen.findByRole('button', {
[INFO]          |                          ^
[INFO]       75 |                 name: /switch to list view/i,
[INFO]       76 |             }),
[INFO]       77 |         ).toBeInTheDocument();
[INFO] 
[INFO]       at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:187:27)
[INFO]       at findByRole (node_modules/@testing-library/dom/dist/query-helpers.js:101:33)
[INFO]       at Object.<anonymous> (source/src/app/components/Apis/Listing/TableView/TableView.test.tsx:74:26)
[INFO] 
[INFO]   ● Table view › should not show create API option for Publisher User
[INFO] 
[INFO]     FetchError: request to https://localhost/api/am/publisher/v2/swagger.yaml failed, reason: Cannot read property 'get' of undefined
[INFO] 
[INFO]       at ClientRequestOverride.<anonymous> (node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1461:11)
[INFO]       at ClientRequestOverride.<anonymous> (node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/createClientRequestOverride.ts:196:14)
[INFO]       at step (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:33:23)
[INFO]       at Object.next (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:14:53)
[INFO]       at fulfilled (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:5:58)
[INFO] 
[INFO]   ● Table view › should not show create API option for Publisher User
[INFO] 
[INFO]     Unable to find an element with the text: /total:apis/i. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
[INFO] 
[INFO]     Ignored nodes: comments, <script />, <style />
[INFO]     <body>
[INFO]       <div>
[INFO]         <div
[INFO]           class="rc-notification"
[INFO]           style="z-index: 1400; top: 0px; right: 0px; margin-left: 2%; position: fixed;"
[INFO]         >
[INFO]           <span />
[INFO]         </div>
[INFO]       </div>
[INFO]       <div>
[INFO]         <div
[INFO]           class="progress-bar-striped"
[INFO]           id="apim-loader"
[INFO]         >
[INFO]           <span
[INFO]             style="background-color: rgb(249, 249, 249); width: 300px; display: flex; justify-content: center; font-family: \"Open Sans\", \"Helvetica\", \"Arial\", sans-serif; padding-bottom: 14px;"
[INFO]           >
[INFO]             Loading APIs ...
[INFO]           </span>
[INFO]           <div
[INFO]             style="width: 90%;"
[INFO]           >
[INFO]                
[INFO]           </div>
[INFO]         </div>
[INFO]       </div>
[INFO]     </body>
[INFO] 
[INFO]       104 |     test('should not show create API option for Publisher User', async () => {
[INFO]       105 |         render(<TableView />, { user: MockedUsers.Publisher });
[INFO]     > 106 |         await waitFor(() => {
[INFO]           |               ^
[INFO]       107 |             expect(screen.getByText(/total:apis/i)).toBeInTheDocument();
[INFO]       108 |         });
[INFO]       109 |         expect(screen.queryByRole('button', {
[INFO] 
[INFO]       at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:187:27)
[INFO]       at Object.<anonymous> (source/src/app/components/Apis/Listing/TableView/TableView.test.tsx:106:15)
[INFO] 
[INFO] 
[INFO] Test Suites: 2 failed, 9 skipped, 15 passed, 17 of 26 total
[INFO] Tests:       5 failed, 33 skipped, 8 todo, 32 passed, 78 total
[INFO] Snapshots:   1 passed, 1 total
[INFO] Time:        135.361 s
[INFO] npm ERR! Test failed.  See above for more details.
[INFO] [ERROR] Command execution failed.
[INFO] org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
[INFO]     at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
[INFO]     at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
[INFO]     at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:764)
[INFO]     at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:711)
[INFO]     at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:289)
[INFO]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
[INFO]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
[INFO]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
[INFO]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
[INFO]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
[INFO]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
[INFO]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
[INFO]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
[INFO]     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
[INFO]     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
[INFO]     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
[INFO]     at java.lang.reflect.Method.invoke (Method.java:498)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary:
[INFO] [INFO] 
[INFO] [INFO] WSO2 API Manager UI - Parent 9.0.227 ............... SUCCESS [ 59.773 s]
[INFO] [INFO] WSO2 API Manager - Publisher portal UI ............. FAILURE [05:23 min]
[INFO] [INFO] WSO2 API Manager - Developer portal UI ............. SKIPPED
[INFO] [INFO] WSO2 API Manager - Admin portal UI ................. SKIPPED
[INFO] [INFO] WSO2 API Manager UI Portals - Parent 9.0.227 ....... SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 06:23 min
[INFO] [INFO] Finished at: 2021-12-16T10:27:36Z
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (npm run test) on project org.wso2.carbon.apimgt.ui.publisher: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[INFO] [ERROR] 
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR] 
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] [ERROR] 
[INFO] [ERROR] After correcting the problems, you can resume the build with the command
[INFO] [ERROR]   mvn <goals> -rf :org.wso2.carbon.apimgt.ui.publisher
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] WSO2 API Manager UI - Parent 9.0.227-SNAPSHOT ...... FAILURE [06:27 min]
[INFO] WSO2 API Manager - Publisher portal UI ............. SKIPPED
[INFO] WSO2 API Manager - Developer portal UI ............. SKIPPED
[INFO] WSO2 API Manager - Admin portal UI ................. SKIPPED
[INFO] WSO2 API Manager UI Portals - Parent 9.0.227-SNAPSHOT SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:55 min
[INFO] Finished at: 2021-12-16T10:28:03Z
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project apim.ui.apps: Maven execution failed, exit code: '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/MojoExecutionException
[JENKINS] Archiving <https://wso2.org/jenkins/job/platform-builds/job/apim-apps/ws/portals/publisher/pom.xml> to org.wso2.carbon.apimgt.ui/org.wso2.carbon.apimgt.ui.publisher/9.0.227-SNAPSHOT/org.wso2.carbon.apimgt.ui.publisher-9.0.227-SNAPSHOT.pom
[JENKINS] Archiving <https://wso2.org/jenkins/job/platform-builds/job/apim-apps/ws/portals/devportal/pom.xml> to org.wso2.carbon.apimgt.ui/org.wso2.carbon.apimgt.ui.devportal/9.0.227-SNAPSHOT/org.wso2.carbon.apimgt.ui.devportal-9.0.227-SNAPSHOT.pom
[JENKINS] Archiving <https://wso2.org/jenkins/job/platform-builds/job/apim-apps/ws/portals/pom.xml> to org.wso2.carbon.apimgt.ui/apim.ui.apps.portals/9.0.227-SNAPSHOT/apim.ui.apps.portals-9.0.227-SNAPSHOT.pom
[JENKINS] Archiving <https://wso2.org/jenkins/job/platform-builds/job/apim-apps/ws/pom.xml> to org.wso2.carbon.apimgt.ui/apim.ui.apps/9.0.227-SNAPSHOT/apim.ui.apps-9.0.227-SNAPSHOT.pom
[JENKINS] Archiving <https://wso2.org/jenkins/job/platform-builds/job/apim-apps/ws/portals/admin/pom.xml> to org.wso2.carbon.apimgt.ui/org.wso2.carbon.apimgt.ui.admin/9.0.227-SNAPSHOT/org.wso2.carbon.apimgt.ui.admin-9.0.227-SNAPSHOT.pom
No mail will be sent out, as 'platform-builds » apim-apps » WSO2 API Manager - Developer portal UI #124' does not have a result yet. Please make sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'platform-builds » apim-apps » WSO2 API Manager UI Portals - Parent #124' does not have a result yet. Please make sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'platform-builds » apim-apps » WSO2 API Manager - Publisher portal UI #124' does not have a result yet. Please make sure you set a proper result in case of pipeline/build scripts.
Sending e-mails to: builder at wso2.org
No mail will be sent out, as 'platform-builds » apim-apps » WSO2 API Manager - Admin portal UI #124' does not have a result yet. Please make sure you set a proper result in case of pipeline/build scripts.
channel stopped
using credential github-user-for-maven-releases
 > git rev-parse HEAD^{commit} # timeout=10
using credential github-user-for-maven-releases
 > git rev-parse HEAD^{commit} # timeout=10
------------------------------------------------------------------------

[WSO2 Maven Release] [WSO2 Maven Release] Build Result: FAILURE
[WSO2 Maven Release] Dropping Git Tag: v9.0.227. Reason: FAILURE build.

[WSO2 Maven Release] Deleting release tag from remote.
 > git --version # timeout=10
using GIT_ASKPASS to set credentials github user for maven release plugin (CD)
 > git push https://github.com/wso2/apim-apps.git :refs/tags/v9.0.227 # timeout=10
[WSO2 Maven Release] Dropped git tag - v9.0.227
FATAL: [M2Release] Could not find nexus stage repository for project.



More information about the Builder mailing list