Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

[BAHIR-150] Test Jenkins PR build config changes (DONT MERGE) #56

Closed
wants to merge 1 commit into from

Conversation

ckadner
Copy link
Member

@ckadner ckadner commented Dec 8, 2017

BAHIR-150: Jenkins PR builder should not abort build after first failed module

This is a test of our Jenkins PR builder setup.

DON'T merge this PR!

@ApacheBahir
Copy link

Build failed, see build log for details

@ApacheBahir
Copy link

Refer to this link for build results (access rights to CI server needed):
http://169.45.79.58:8080/job/bahir_spark_pr_builder/108/

@ckadner
Copy link
Member Author

ckadner commented Dec 8, 2017

The test failure above reflects the current PR builder behavior, before adding the --fail-at-end flag to the maven build.

All modules are skipped after test failure in sql-cloudant:

[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ spark-sql-cloudant_2.11 ---

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (test) @ spark-sql-cloudant_2.11 ---
[INFO] Skipping execution of surefire because it has already been run for this configuration
[INFO] 
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ spark-sql-cloudant_2.11 ---
Discovery starting.

Sql-cloudant tests that require Cloudant databases have been enabled by
the environment variables CLOUDANT_USER and CLOUDANT_PASSWORD.
        
Discovery completed in 186 milliseconds.
Run starting. Expected test count is: 23
CloudantOptionSuite:
- invalid api receiver option throws an error message
- empty username option throws an error message
- empty password option throws an error message
- empty databaseName throws an error message
ClientSparkFunSuite:
CloudantChangesDFSuite:
- dummy test to force build failure *** FAILED ***
  org.scalatest.exceptions.TestFailedException was thrown. (CloudantChangesDFSuite.scala:45)
- load and save data from Cloudant database
- load and count data from Cloudant search index
- load data and verify deleted doc is not in results
- load data and count rows in filtered dataframe
- save filtered dataframe to database
- save dataframe to database using createDBOnSave=true option
- load and count data from view
- load data from view with MapReduce function
- load data and verify total count of selector, filter, and view option
CloudantSparkSQLSuite:
- verify results from temp view of database n_airportcodemapping
- verify results from temp view of index in n_flight
CloudantAllDocsDFSuite:
- load and save data from Cloudant database
- load and count data from Cloudant search index
- load data and count rows in filtered dataframe
- save filtered dataframe to database
- save dataframe to database using createDBOnSave=true option
- load and count data from view
- load data from view with MapReduce function
Run completed in 3 minutes, 21 seconds.
Total number of tests run: 23
Suites: completed 6, aborted 0
Tests: succeeded 22, failed 1, canceled 0, ignored 0, pending 0
*** 1 TEST FAILED ***
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Bahir - Parent POM .......................... SUCCESS [  4.411 s]
[INFO] Apache Bahir - Spark SQL Cloudant DataSource ....... FAILURE [03:39 min]
[INFO] Apache Bahir - Spark Streaming Akka ................ SKIPPED
[INFO] Apache Bahir - Spark SQL Streaming Akka ............ SKIPPED
[INFO] Apache Bahir - Spark Streaming MQTT ................ SKIPPED
[INFO] Apache Bahir - Spark SQL Streaming MQTT ............ SKIPPED
[INFO] Apache Bahir - Spark Streaming Twitter ............. SKIPPED
[INFO] Apache Bahir - Spark Streaming ZeroMQ .............. SKIPPED
[INFO] Apache Bahir - Spark Streaming Google PubSub ....... SKIPPED
[INFO] Apache Bahir - Spark Extensions Distribution ....... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:44 min
[INFO] Finished at: 2017-12-07T16:12:30-08:00
[INFO] Final Memory: 84M/2554M
[INFO] ------------------------------------------------------------------------

@ckadner ckadner changed the title Dummy test to force build failure (DONT MERGE) [BAHIR-150] Test Jenkins PR build config changes (DONT MERGE) Dec 8, 2017
@ckadner
Copy link
Member Author

ckadner commented Dec 8, 2017

Adding the --fail-at-end flag to the PR builder configuration now and kicking off another test build.

@ckadner
Copy link
Member Author

ckadner commented Dec 8, 2017

retest this please

@ApacheBahir
Copy link

Build failed, see build log for details

@ApacheBahir
Copy link

Refer to this link for build results (access rights to CI server needed):
http://169.45.79.58:8080/job/bahir_spark_pr_builder/109/

@ckadner
Copy link
Member Author

ckadner commented Dec 8, 2017

After adding the --fail-at-end flag to the PR builder's maven build, now all modules get built and tested even after the forced test failure in module sql-cloudant:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Bahir - Parent POM .......................... SUCCESS [  4.371 s]
[INFO] Apache Bahir - Spark SQL Cloudant DataSource ....... FAILURE [03:44 min]
[INFO] Apache Bahir - Spark Streaming Akka ................ SUCCESS [ 28.087 s]
[INFO] Apache Bahir - Spark SQL Streaming Akka ............ SUCCESS [03:49 min]
[INFO] Apache Bahir - Spark Streaming MQTT ................ SUCCESS [01:51 min]
[INFO] Apache Bahir - Spark SQL Streaming MQTT ............ SUCCESS [02:08 min]
[INFO] Apache Bahir - Spark Streaming Twitter ............. SUCCESS [ 25.335 s]
[INFO] Apache Bahir - Spark Streaming ZeroMQ .............. SUCCESS [ 19.410 s]
[INFO] Apache Bahir - Spark Streaming Google PubSub ....... SUCCESS [ 51.206 s]
[INFO] Apache Bahir - Spark Extensions Distribution ....... SUCCESS [  3.566 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:47 min
[INFO] Finished at: 2017-12-07T16:37:37-08:00

[INFO] Final Memory: 174M/6788M
[INFO] ------------------------------------------------------------------------

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants