Skip to content

Commit

Permalink
fix: optimising python integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hhasija committed Nov 4, 2024
1 parent 7f768ab commit 8d49d30
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions python/.ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ pipeline {
}
}
stage('Parallel Execution 1'){
when {
expression {
// Check if there are any changes in Python files in the last commit
return sh(
script: 'git diff --name-only HEAD~1 | grep -q ".py"',
returnStatus: true
) == 0
}
}
parallel{
stage('Hive TO GCS') {
steps{
Expand Down Expand Up @@ -155,6 +164,15 @@ pipeline {
}
}
stage('Parallel Execution 2'){
when {
expression {
// Check if there are any changes in Python files in the last commit
return sh(
script: 'git diff --name-only HEAD~1 | grep -q ".py"',
returnStatus: true
) == 0
}
}
parallel{
stage('JDBC To JDBC') {
steps{
Expand Down Expand Up @@ -238,6 +256,15 @@ pipeline {
}
}
stage('Parallel Execution 3'){
when {
expression {
// Check if there are any changes in Python files in the last commit
return sh(
script: 'git diff --name-only HEAD~1 | grep -q ".py"',
returnStatus: true
) == 0
}
}
parallel{
stage('GCS TO BIGQUERY') {
steps{
Expand Down Expand Up @@ -325,6 +352,15 @@ pipeline {
}
}
stage('Parallel Execution 4'){
when {
expression {
// Check if there are any changes in Python files in the last commit
return sh(
script: 'git diff --name-only HEAD~1 | grep -q ".py"',
returnStatus: true
) == 0
}
}
parallel{
stage('MONGO TO GCS') {
steps{
Expand Down Expand Up @@ -477,6 +513,15 @@ pipeline {
}
}
stage('Parallel Execution 5'){
when {
expression {
// Check if there are any changes in Python files in the last commit
return sh(
script: 'git diff --name-only HEAD~1 | grep -q ".py"',
returnStatus: true
) == 0
}
}
parallel{
stage('JDBC TO GCS') {
steps{
Expand Down Expand Up @@ -568,6 +613,15 @@ pipeline {
}
}
stage('Parallel Execution 6'){
when {
expression {
// Check if there are any changes in Python files in the last commit
return sh(
script: 'git diff --name-only HEAD~1 | grep -q ".py"',
returnStatus: true
) == 0
}
}
parallel{
stage('S3 TO BigQuery (avro)') {
steps{
Expand Down Expand Up @@ -604,6 +658,15 @@ pipeline {
}
}
stage('Parallel Execution 7'){
when {
expression {
// Check if there are any changes in Python files in the last commit
return sh(
script: 'git diff --name-only HEAD~1 | grep -q ".py"',
returnStatus: true
) == 0
}
}
parallel{
// stage('Hbase TO GCS (Manual)') {
// when {
Expand Down Expand Up @@ -726,6 +789,15 @@ pipeline {
}
}
stage('Parallel Execution 8'){
when {
expression {
// Check if there are any changes in Python files in the last commit
return sh(
script: 'git diff --name-only HEAD~1 | grep -q ".py"',
returnStatus: true
) == 0
}
}
parallel{
stage('Elasticsearch to GCS'){
steps{
Expand Down

0 comments on commit 8d49d30

Please sign in to comment.