Skip to content

Commit

Permalink
Hard coded parent version as variable substitution is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Shu Heng committed Dec 31, 2019
1 parent ac26889 commit 24ff54d
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 19 deletions.
8 changes: 3 additions & 5 deletions .prow/scripts/test-end-to-end-batch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
set -e
set -o pipefail

export REVISION=dev

if ! cat /etc/*release | grep -q stretch; then
echo ${BASH_SOURCE} only supports Debian stretch.
echo Please change your operating system to use this script.
Expand Down Expand Up @@ -92,7 +90,7 @@ Building jars for Feast
--output-dir /root/

# Build jars for Feast
mvn --quiet --batch-mode --define skipTests=true --define revision=$REVISION clean package
mvn --quiet --batch-mode --define skipTests=true clean package

echo "
============================================================
Expand Down Expand Up @@ -144,7 +142,7 @@ management:
enabled: false
EOF

nohup java -jar core/target/feast-core-$REVISION.jar \
nohup java -jar core/target/feast-core-*-SNAPSHOT.jar \
--spring.config.location=file:///tmp/core.application.yml \
&> /var/log/feast-core.log &
sleep 35
Expand Down Expand Up @@ -198,7 +196,7 @@ spring:
web-environment: false
EOF

nohup java -jar serving/target/feast-serving-$REVISION.jar \
nohup java -jar serving/target/feast-serving-*-SNAPSHOT.jar \
--spring.config.location=file:///tmp/serving.warehouse.application.yml \
&> /var/log/feast-serving-warehouse.log &
sleep 15
Expand Down
8 changes: 3 additions & 5 deletions .prow/scripts/test-end-to-end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
set -e
set -o pipefail

export REVISION=dev

if ! cat /etc/*release | grep -q stretch; then
echo ${BASH_SOURCE} only supports Debian stretch.
echo Please change your operating system to use this script.
Expand Down Expand Up @@ -79,7 +77,7 @@ Building jars for Feast
--output-dir /root/

# Build jars for Feast
mvn --quiet --batch-mode --define skipTests=true --define revision=$REVISION clean package
mvn --quiet --batch-mode --define skipTests=true clean package

ls -lh core/target/*jar
ls -lh serving/target/*jar
Expand Down Expand Up @@ -135,7 +133,7 @@ management:
enabled: false
EOF

nohup java -jar core/target/feast-core-$REVISION.jar \
nohup java -jar core/target/feast-core-*-SNAPSHOT.jar \
--spring.config.location=file:///tmp/core.application.yml \
&> /var/log/feast-core.log &
sleep 35
Expand Down Expand Up @@ -189,7 +187,7 @@ spring:
EOF

nohup java -jar serving/target/feast-serving-$REVISION.jar \
nohup java -jar serving/target/feast-serving-*-SNAPSHOT.jar \
--spring.config.location=file:///tmp/serving.online.application.yml \
&> /var/log/feast-serving-online.log &
sleep 15
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ build-cli:
$(MAKE) -C cli build-all

build-java:
mvn clean verify -Drevision=$(VERSION)
mvn clean verify

build-docker:
docker build -t $(REGISTRY)/feast-core:$(VERSION) -f infra/docker/core/Dockerfile .
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.feast</groupId>
<artifactId>feast-parent</artifactId>
<version>${revision}</version>
<version>0.3.6-SNAPSHOT</version>
</parent>

<name>Feast Core</name>
Expand Down
2 changes: 1 addition & 1 deletion infra/docker/core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /build
# the existing .m2 directory to $FEAST_REPO_ROOT/.m2
#
ENV MAVEN_OPTS="-Dmaven.repo.local=/build/.m2/repository -DdependencyLocationsEnabled=false"
RUN mvn --also-make --projects core,ingestion -Drevision=$REVISION \
RUN mvn --also-make --projects core,ingestion \
-DskipTests=true --batch-mode package
#
# Unpack the jar and copy the files into production Docker image
Expand Down
2 changes: 1 addition & 1 deletion infra/docker/serving/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /build
# the existing .m2 directory to $FEAST_REPO_ROOT/.m2
#
ENV MAVEN_OPTS="-Dmaven.repo.local=/build/.m2/repository -DdependencyLocationsEnabled=false"
RUN mvn --also-make --projects serving -Drevision=$REVISION \
RUN mvn --also-make --projects serving \
-DskipTests=true --batch-mode package

# ============================================================
Expand Down
2 changes: 1 addition & 1 deletion ingestion/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.feast</groupId>
<artifactId>feast-parent</artifactId>
<version>${revision}</version>
<version>0.3.6-SNAPSHOT</version>
</parent>

<name>Feast Ingestion</name>
Expand Down
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<groupId>dev.feast</groupId>
<artifactId>feast-parent</artifactId>
<version>${revision}</version>
<version>0.3.6-SNAPSHOT</version>
<packaging>pom</packaging>

<modules>
Expand All @@ -35,7 +35,6 @@
</modules>

<properties>
<revision>0.3.2-SNAPSHOT</revision>
<github.url>https://github.com/gojek/feast</github.url>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion sdk/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>dev.feast</groupId>
<artifactId>feast-parent</artifactId>
<version>${revision}</version>
<version>0.3.6-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion serving/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.feast</groupId>
<artifactId>feast-parent</artifactId>
<version>${revision}</version>
<version>0.3.6-SNAPSHOT</version>
</parent>

<artifactId>feast-serving</artifactId>
Expand Down

0 comments on commit 24ff54d

Please sign in to comment.