Cask Data Application Platform - Develop Build and Test

Build: #2685 failed Child of CDAP-DRC-4593

Build result summary

Details

Completed
Duration
32 minutes
Labels
None
Agent
bamboo-agent13
Revision
0f5d1977c179d0bb85b545daa3fead3ff95e22fd 0f5d1977c179d0bb85b545daa3fead3ff95e22fd
Total tests
1866
Fixed in
#2686 (Child of CDAP-DRC-4594)

Responsible

Code commits

Author Commit Message Commit date
Ajai <1452845+ajainarayanan@users.noreply.github.com> Ajai <1452845+ajainarayanan@users.noreply.github.com> 0f5d1977c179d0bb85b545daa3fead3ff95e22fd 0f5d1977c179d0bb85b545daa3fead3ff95e22fd Merge pull request #11516 from cdapio/bugfix-ui/add-hsts-header
Add HSTS header for TLS enabled CDAP environments
Ajai Narayan Ajai Narayan 027137c65938a97d0313994c9f15a4eaebf9d606 027137c65938a97d0313994c9f15a4eaebf9d606 [UI]Add HSTS header for TLS enabled CDAP environments
  - Adds hsts npm module
  - Adds HTTP Strict Transport Security as express middleware. This will ensure the clients using CDAP UI
will use TLS enabled UI for the max-age we specified. As soon as the browser sees the hsts in the header
it will make sure the TLS enabled CDAP UI gets used until max age specified.

This is a safe change when CDAP UI by default gets served in non-TLS enabled environment (meaning only http)

This is however not safe when clients change from https to http. Then the browser will try to go to https until the
max-age and will probably error out. Since downgrading to non-TLS enabled CDAP UI is not standard we are making this
change for now.
Ajai <1452845+ajainarayanan@users.noreply.github.com> Ajai <1452845+ajainarayanan@users.noreply.github.com> 88d04e18270c628d48284e90ad356299f8a6fcc2 88d04e18270c628d48284e90ad356299f8a6fcc2 Merge pull request #11513 from cdapio/bugfix-ui/cswsh
Upgrades node version and corresponding node modules for compatibility
Ajai Narayan Ajai Narayan 4bfaf8387bbb3809ca0e72811736afe45105c88d m 4bfaf8387bbb3809ca0e72811736afe45105c88d [CDAP-15738] Upgrades NodeJS to version 10.16.2
  - Updrades all relevant node modules
  - Updates all jest related modules
  - Updates build process based on upgraded node modules
  - Fixes logs4js json file to be adhere to new format
  - Updates pom.xml and build scripts to use node 10.16.2+
  - Modifies cdap-distribution build scripts to use Nodejs version 10.16.2
  - Updates cdap-docs to have the NODE_JS_MIN_VERSION as 10.16.2
  - Updates nodejs binary checksum in distributed build files

Tests

New test failures 8
Status Test View job Duration
Collapse Failed ProgramLifecycleHttpHandlerTest testWorkflowHistory History
Unit Test Job 1 min
java.util.concurrent.TimeoutException: Timeout occurred. Expected STOPPED but found STARTING.
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:70)
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:91)
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:130)
	at io.cdap.cdap.internal.app.services.http.AppFabricTestBase.waitState(AppFabricTestBase.java:930)
	at io.cdap.cdap.internal.app.services.http.handlers.ProgramLifecycleHttpHandlerTest.testWorkflowHistory(ProgramLifecycleHttpHandlerTest.java:499)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ProgramLifecycleHttpHandlerTest testStopProgramRunWhilePending History
Unit Test Job 1 min
java.util.concurrent.TimeoutException: Timeout occurred. Expected STOPPED but found STARTING.
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:70)
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:91)
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:130)
	at io.cdap.cdap.internal.app.services.http.AppFabricTestBase.waitState(AppFabricTestBase.java:930)
	at io.cdap.cdap.internal.app.services.http.handlers.ProgramLifecycleHttpHandlerTest.testStopProgramRunWhilePending(ProgramLifecycleHttpHandlerTest.java:588)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ProgramLifecycleHttpHandlerTest testProgramStartStopStatusErrors History
Unit Test Job 57 secs
java.lang.AssertionError: expected:<200> but was:<409>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:555)
	at org.junit.Assert.assertEquals(Assert.java:542)
	at io.cdap.cdap.internal.app.services.http.handlers.ProgramLifecycleHttpHandlerTest.testProgramStartStopStatusErrors(ProgramLifecycleHttpHandlerTest.java:442)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(38 more lines...)
Collapse Failed ProgramLifecycleHttpHandlerTest io.cdap.cdap.internal.app.services.http.handlers.ProgramLifecycleHttpHandlerTest History
Unit Test Job 13 secs
java.util.concurrent.TimeoutException: Timeout occurred. Expected 200 but found 409.
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:70)
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:91)
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:130)
	at io.cdap.cdap.internal.app.services.http.AppFabricTestBase.deleteNamespaces(AppFabricTestBase.java:972)
	at io.cdap.cdap.internal.app.services.http.AppFabricTestBase.afterClass(AppFabricTestBase.java:300)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(26 more lines...)
Collapse Failed ProgramLifecycleHttpHandlerTest testProvisionerFailureStateAndMetrics History
Unit Test Job 2 secs
java.lang.AssertionError: expected:<200> but was:<409>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:555)
	at org.junit.Assert.assertEquals(Assert.java:542)
	at io.cdap.cdap.internal.app.services.http.AppFabricTestBase.deleteApp(AppFabricTestBase.java:659)
	at io.cdap.cdap.internal.app.services.http.handlers.ProgramLifecycleHttpHandlerTest.testProvisionerFailureStateAndMetrics(ProgramLifecycleHttpHandlerTest.java:541)
(39 more lines...)
Collapse Failed ProgramLifecycleHttpHandlerTest testStopProgramWhilePending History
Unit Test Job 1 min
java.util.concurrent.TimeoutException: Timeout occurred. Expected STOPPED but found STARTING.
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:70)
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:91)
	at io.cdap.cdap.common.utils.Tasks.waitFor(Tasks.java:130)
	at io.cdap.cdap.internal.app.services.http.AppFabricTestBase.waitState(AppFabricTestBase.java:930)
	at io.cdap.cdap.internal.app.services.http.handlers.ProgramLifecycleHttpHandlerTest.testStopProgramWhilePending(ProgramLifecycleHttpHandlerTest.java:561)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ProgramLifecycleHttpHandlerTest testProgramStartStopStatus History
Unit Test Job 19 secs
java.lang.AssertionError: expected:<404> but was:<200>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:555)
	at org.junit.Assert.assertEquals(Assert.java:542)
	at io.cdap.cdap.internal.app.services.http.AppFabricTestBase.startProgram(AppFabricTestBase.java:835)
	at io.cdap.cdap.internal.app.services.http.AppFabricTestBase.startProgram(AppFabricTestBase.java:807)
(41 more lines...)
Collapse Failed ProgramLifecycleHttpHandlerTest testProgramList History
Unit Test Job < 1 sec
org.junit.ComparisonFailure: expected:<[[]]> but was:<[[{"type":"Workflow","app":"App","name":"NoOpWorkflow","description":"NoOp Workflow description"},{"type":"Workflow","app":"SleepWorkflowApp","name":"SleepWorkflow","description":"FunWorkflow description"}]]>
org.junit.ComparisonFailure: expected:<[[]]> but was:<[[{"type":"Workflow","app":"App","name":"NoOpWorkflow","description":"NoOp Workflow description"},{"type":"Workflow","app":"SleepWorkflowApp","name":"SleepWorkflow","description":"FunWorkflow description"}]]>	at org.junit.Assert.assertEquals(Assert.java:115)	at org.junit.Assert.assertEquals(Assert.java:144)	at io.cdap.cdap.internal.app.services.http.handlers.ProgramLifecycleHttpHandlerTest.testListInitialState(ProgramLifecycleHttpHandlerTest.java:1638)	at io.cdap.cdap.internal.app.services.http.handlers.ProgramLifecycleHttpHandlerTest.testProgramList(ProgramLifecycleHttpHandlerTest.java:849)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)	at org.junit.rules.RunRules.evaluate(RunRules.java:20)	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)	at org.junit.runners.Suite.runChild(Suite.java:127)	at org.junit.runners.Suite.runChild(Suite.java:26)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)	at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:161)	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)

JIRA issues

IssueDescriptionStatus
Unknown Issue TypeCDAP-15738Could not obtain issue details from JIRA