[ https://issues.apache.org/jira/browse/HIVE-9800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14349651#comment-14349651 ]
Sergio Peña commented on HIVE-9800: ----------------------------------- In a nutshell, Jenkins will call the following script: {noformat} - dev-support/jenkins-execute-hms-test.sh This script will download the patch for the specific ISSUE_NUM, check if there is a change on the metastore structure, then execute the tests if there is one. {noformat} The above script will execute the following script on the AWS instance created for that: {noformat} - testutils/metastore/execute-test-on-lxc.sh This script creates an LXC environment where different database servers are configured. Then it will call the metastore upgrade scripts for each of the db environments. (see testutils/metastore/dbs) {noformat} The above script will call the following script for upgrade testing: {noformat} - testutils/metastore/metastore-upgrade-test.sh This script walks through all the metastore/scripts/upgrade files, and execute them on the server desired. {noformat} If you need to add a new DB support, just create a directory on {{testutils/metastore/dbs}} with the same name that is on {{metastore/scripts/upgrade}}. Then create a {{prepare.sh}} script that will be executed to install and start the database in an LXC container. Then create a {{execute.sh}} script that accepts as parameter a .sql file. This script should execute the .sql in the database desired. > Create scripts to do metastore upgrade tests on Jenkins > ------------------------------------------------------- > > Key: HIVE-9800 > URL: https://issues.apache.org/jira/browse/HIVE-9800 > Project: Hive > Issue Type: Improvement > Reporter: Sergio Peña > Assignee: Sergio Peña > Attachments: HIVE-9800.2.patch > > > NO PRECOMMIT TESTS > In order to have a better quality code for Hive Metastore, we need to create > some upgrade scripts that can run on Jenkins nightly or everytime a patch is > added to the ticket that makes structural changes on the database. -- This message was sent by Atlassian JIRA (v6.3.4#6332)