[ 
https://issues.apache.org/jira/browse/BIGTOP-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14036424#comment-14036424
 ] 

Nate DAmico commented on BIGTOP-1333:
-------------------------------------

Should probably start by deciding on the params/values we want to have 
dynamically read at runtime.  Currently see these as initial candidates in 
existing file.  Possibly some new ones to be added

---------------------------------

List of dependencies(Question: where there be variable dependencies based on 
what tests are run?  Or assumption include kitchen sink?):

dependencies {
    //needed to avoid groovy not on classpath error.
    testCompile module('org.codehaus.groovy:groovy:1.8.0')
    testCompile group:'org.apache.bigtop.itest', name:'itest-common', 
version:'0.7.0',transitive:'true'
    testCompile group:'org.apache.hadoop',name:'hadoop-common', 
version:'2.0.6-alpha',transitive:'true'
    testCompile group:'org.apache.hadoop',name:'hadoop-hdfs', 
version:'2.1.0-beta',transitive:'true'
}
-----------------------------------------------

Tests to be run:

def tests_to_include(){
  return [
           //"TestHadoopExamples.groovy",
           //"TestHiveSmokeBulk.groovy",
           //"TestHiveSmokeBulk.groovy",
           //"HiveBulkScriptExecutor.groovy",
           //"TestPigSmoke.groovy",
           'TestMahoutExamples.groovy'
         ]
}

NOTE: seems the doExclude and sourceSets will need updating based on the tests 
that are included

---------------------------------------

Environment Vars:

    def vars = [
       "PIG_HOME",
       "HIVE_HOME",
       "HIVE_CONF_DIR",
       "HADOOP_CONF_DIR",
       "BIGTOP_HOME", // for copying input files / resources
       "HADOOP_MAPRED_HOME" // required for mapreduce programs to run
    ];

Seems these could probably extended to have some defaults, dynamically read 
others.  Probably would want to extend to read from environment and if not 
present try to read from "external source", lastly if not found throw exception 
as do now


> Update build.gradle in smoketests to read from paramterized file input
> ----------------------------------------------------------------------
>
>                 Key: BIGTOP-1333
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1333
>             Project: Bigtop
>          Issue Type: Sub-task
>          Components: Build, Tests
>    Affects Versions: 0.7.0
>            Reporter: Nate DAmico
>             Fix For: backlog
>
>
> This was discussed at the bigtop meetup 6/9/2014 at Redhat.  This is related 
> to JIrs: https://issues.apache.org/jira/browse/BIGTOP-1222
> Idea is to take currently what are hard coded parameters and test cases in 
> the bigtop/bigtop-smoke-tests/build.gradle file and have it read from a 
> parameter file a run/build time.
> Parameter file could be either Yaml, JSON, etc.  Yaml is most human readable, 
> might not be issue though since seems like there shouldnt be too much data 
> residing in it



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to