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
env:
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
run: ./docker/run_local_docker.sh
run: ./docker/run_local_docker.sh no-ui
timeout-minutes: 30
- name: Run Python Tests & record coverage

View File

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

View File

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

View File

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

View File

@ -11,9 +11,16 @@
# limitations under the License.
cd "$(dirname "${BASH_SOURCE[0]}")"
if [[ $1 == "no-ui" ]]; then
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
echo "Prepare Docker volume for the operators"
fi
echo "Prepare Docker volume for the operators"@
cd docker/local-metadata
echo "Starting Local Docker Containers"

View File

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