Reduce the CI times for py-tests (#6352)

* Testing if we can reduce the CI times

* Update POM and run_local_docker script
This commit is contained in:
Nahuel 2022-07-26 17:47:03 +02:00 committed by GitHub
parent fdfdaa14aa
commit 30ff470922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 12 deletions

View File

@ -62,7 +62,7 @@ jobs:
- name: Start Server and Ingest Sample Data - name: Start Server and Ingest Sample Data
env: env:
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch" INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
run: ./docker/run_local_docker.sh run: ./docker/run_local_docker.sh no-ui
timeout-minutes: 30 timeout-minutes: 30
- name: Run Python Tests & record coverage - name: Run Python Tests & record coverage

View File

@ -62,7 +62,7 @@ jobs:
- name: Start Server and Ingest Sample Data - name: Start Server and Ingest Sample Data
env: env:
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch" INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
run: ./docker/run_local_docker.sh run: ./docker/run_local_docker.sh no-ui
timeout-minutes: 30 timeout-minutes: 30
- name: Run Python Tests - name: Run Python Tests

View File

@ -62,7 +62,7 @@ jobs:
- name: Start Server and Ingest Sample Data - name: Start Server and Ingest Sample Data
env: env:
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch" INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
run: ./docker/run_local_docker.sh run: ./docker/run_local_docker.sh no-ui
timeout-minutes: 30 timeout-minutes: 30
- name: Run Python Tests - name: Run Python Tests

View File

@ -66,7 +66,7 @@ jobs:
- name: Start Server and Ingest Sample Data - name: Start Server and Ingest Sample Data
env: env:
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch" INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
run: ./docker/run_local_docker.sh run: ./docker/run_local_docker.sh no-ui
timeout-minutes: 30 timeout-minutes: 30
- name: Run Python Tests & Record Coverage - name: Run Python Tests & Record Coverage

View File

@ -11,9 +11,16 @@
# limitations under the License. # limitations under the License.
cd "$(dirname "${BASH_SOURCE[0]}")" cd "$(dirname "${BASH_SOURCE[0]}")"
echo "Maven Build - Skipping Tests"
cd ../ && mvn -DskipTests clean package if [[ $1 == "no-ui" ]]; then
echo "Prepare Docker volume for the operators" echo "Maven Build - Skipping Tests and UI"
cd ../ && mvn -DskipTests -DonlyBackend clean package -pl !openmetadata-ui
else
echo "Maven Build - Skipping Tests"
cd ../ && mvn -DskipTests clean package
fi
echo "Prepare Docker volume for the operators"@
cd docker/local-metadata cd docker/local-metadata
echo "Starting Local Docker Containers" echo "Starting Local Docker Containers"

View File

@ -39,11 +39,6 @@
<artifactId>common</artifactId> <artifactId>common</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.open-metadata</groupId>
<artifactId>openmetadata-ui</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies> </dependencies>
<properties> <properties>
@ -95,6 +90,13 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<dependencies>
<dependency>
<groupId>org.open-metadata</groupId>
<artifactId>openmetadata-ui</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</profile> </profile>
<profile> <profile>
<id>rpm</id> <id>rpm</id>
@ -170,6 +172,16 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<id>only-backend</id>
<activation>
<property>
<name>onlyBackend</name>
</property>
</activation>
<dependencies>
</dependencies>
</profile>
</profiles> </profiles>
</project> </project>