Skip to content

Commit

Permalink
Use Java 8 SDK for branch 3.0 / 4.0 and Java 11 for master (#473)
Browse files Browse the repository at this point in the history
* Use Java 8 SDK for branch 4.0 and Java 11 for master

* Add Java 8 tests for branch v3.0

* Semantic versioning for publish java sdk

* Fix branch filter refex
  • Loading branch information
khorshuheng authored Feb 13, 2020
1 parent 761dfff commit 1771532
Showing 1 changed file with 112 additions and 1 deletion.
113 changes: 112 additions & 1 deletion .prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ presubmits:
requests:
cpu: "2000m"
memory: "1536Mi"
skip_branches:
- ^v0\.(3|4)-branch$

- name: test-core-and-ingestion-java-8
decorate: true
always_run: true
spec:
containers:
- image: maven:3.6-jdk-8
command: [".prow/scripts/test-core-ingestion.sh"]
resources:
requests:
cpu: "2000m"
memory: "1536Mi"
branches:
- ^v0\.(3|4)-branch$

- name: test-serving
decorate: true
Expand All @@ -80,6 +96,18 @@ presubmits:
containers:
- image: maven:3.6-jdk-11
command: [".prow/scripts/test-serving.sh"]
skip_branches:
- ^v0\.(3|4)-branch$

- name: test-serving-java-8
decorate: true
always_run: true
spec:
containers:
- image: maven:3.6-jdk-8
command: [".prow/scripts/test-serving.sh"]
branches:
- ^v0\.(3|4)-branch$

- name: test-java-sdk
decorate: true
Expand All @@ -88,6 +116,18 @@ presubmits:
containers:
- image: maven:3.6-jdk-11
command: [".prow/scripts/test-java-sdk.sh"]
skip_branches:
- ^v0\.(3|4)-branch$

- name: test-java-sdk-java-8
decorate: true
always_run: true
spec:
containers:
- image: maven:3.6-jdk-8
command: [".prow/scripts/test-java-sdk.sh"]
branches:
- ^v0\.(3|4)-branch$

- name: test-python-sdk
decorate: true
Expand Down Expand Up @@ -116,6 +156,22 @@ presubmits:
requests:
cpu: "6"
memory: "6144Mi"
skip_branches:
- ^v0\.(3|4)-branch$

- name: test-end-to-end-java-8
decorate: true
always_run: true
spec:
containers:
- image: maven:3.6-jdk-8
command: [".prow/scripts/test-end-to-end.sh"]
resources:
requests:
cpu: "6"
memory: "6144Mi"
branches:
- ^v0\.(3|4)-branch$

- name: test-end-to-end-batch
decorate: true
Expand All @@ -135,6 +191,29 @@ presubmits:
volumeMounts:
- name: service-account
mountPath: "/etc/service-account"
skip_branches:
- ^v0\.(3|4)-branch$

- name: test-end-to-end-batch-java-8
decorate: true
always_run: true
spec:
volumes:
- name: service-account
secret:
secretName: feast-service-account
containers:
- image: maven:3.6-jdk-8
command: [".prow/scripts/test-end-to-end-batch.sh"]
resources:
requests:
cpu: "6"
memory: "6144Mi"
volumeMounts:
- name: service-account
mountPath: "/etc/service-account"
branches:
- ^v0\.(3|4)-branch$

postsubmits:
gojek/feast:
Expand Down Expand Up @@ -187,10 +266,42 @@ postsubmits:
- name: maven-settings
secret:
secretName: maven-settings
skip_branches:
# Skip version 0.3 and 0.4
- ^v0\.(3|4)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$

branches:
# Filter on tags with semantic versioning, prefixed with "v"
# Filter on tags with semantic versioning, prefixed with "v".
- ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$

- name: publish-java-8-sdk
decorate: true
spec:
containers:
- image: maven:3.6-jdk-8
command:
- bash
- -c
- .prow/scripts/publish-java-sdk.sh --revision ${PULL_BASE_REF:1}
volumeMounts:
- name: gpg-keys
mountPath: /etc/gpg
readOnly: true
- name: maven-settings
mountPath: /root/.m2/settings.xml
subPath: settings.xml
readOnly: true
volumes:
- name: gpg-keys
secret:
secretName: gpg-keys
- name: maven-settings
secret:
secretName: maven-settings
branches:
# Filter on tags with semantic versioning, prefixed with "v". v0.3 and v0.4 only.
- ^v0\.(3|4)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$

- name: publish-docker-images
decorate: true
spec:
Expand Down

0 comments on commit 1771532

Please sign in to comment.