wso2 / testgrid

TestGrid provides the enterprise customers confidence on the products and updates WSO2 ship.
Apache License 2.0
55 stars 66 forks source link

Consolidate working directories of Jenkins and Testgrid #526

Closed kasunbg closed 6 years ago

kasunbg commented 6 years ago

Description: The working directory need to be within the testgrid_home under its own directory. We came up with a build directory for each infrastructure combination. Everything need to happen in there.

Right now, things are scattered all over. Some are in Jenkins workspace, some are directly inside the testgrid_home//, and some are in the build workspace of the given infrastructure combination (test-run.log).

Steps to reproduce: Run generate-test-plan and study the behavior.

Related Issues: N/A

pasindujw commented 6 years ago

The initial structure after the consolidation will look as below example:

(Directory: <TESTGRID_HOME>/wso2is-5.4.1-LTS)
├── aws-cloudformation-templates
│   ├── cloudformation-templates
│   │   ├── pattern-1
│   │   │   ├── pattern-1-with-puppet-cloudformation.template.yml
│   │   │   └── wso2-is-with-alb-cf-template-parameters.json
│   │   └── pattern-2
│   │       └── pattern-2-with-puppet-cloudformation.template.yml
│   ├── infrastructure-build-plans
│   │   └── single-node-infra.yaml
│   ├── product-configs
│   │   
│   └── scripts
│   
├── identity-test-integration
│   ├── scenario01
│   ├── scenario02
│   ├── scenario03
│   ├── 
│   ├── 
│
├── job-config.yaml
├── testgrid
├── test-plans
│   ├── test-plan-01.yaml
│   └── test-plan-02.yaml
└── WSO2-TestGrid
    ├── lib
    ├── log4j2.xml
    ├── testgrid
    └── web-app
kasunbg commented 6 years ago

+1 for the overall structure. Few suggestions:

pasindujw commented 6 years ago

The structure is updated to the following:

<TESTGRID_HOME>
│ 
│   
├── testgrid-dist
│     ├── WSO2-TestGrid.zip
│     └── WSO2-TestGrid
│
└── jobs
      ├── wso2is-5.4.1-LTS
      │       │              
      │       ├── workspace      
      │       │       ├── aws-cloudformation-templates
      │       │       ├── identity-test-integration
      │       │       └── <DEPLOYMENT_REPOSITORY>
      │       │
      │       ├── job-config.yaml
      │       │ 
      │       └── test-plans
      │           │
      │           ├── test-plan-01.yaml
      │           ├── test-plan-02.yaml
      │           ├── test-plan-03.yaml
      │
      ├── <PRODUCT_NAME> (= <JOB_NAME>)
      │       │
          ├─     

We can close this if not further modifications needed :) @kasunbg

kasunbg commented 6 years ago

+1. We need to think about the location of test-plans as well since it is a generated one. But, we can come back to that later.