Skip to content

Commit 7fa3b07

Browse files
authored
Add Branch and RC Awareness to Version Lint & Fix Semver Regex (feast-dev#998)
* Update version lint script to detect maven, docker image and stable version . * Allow users to lint versions against their merge branch of choice by branch TARGET_MERGE_BRANCH * Update development image tag version from 'dev' to 'develop' to make it easier to lint version. * Update lint version script to only echo file contents when version is wrong. * Update lint script to flag all failures instead of just one. * Remove file contents output from lint version script. * Update lint version script to make output more concise and readable. * Use develop images instead of stable images in master deployments. * Update outdated documentation in serving readme. * Fix outdated version in datatypes java README.md and add version lint check. * Add version lint checks to documentation. * Fix semver regex in github actions workflow not matching suffixless version tags. * Add version lint check for latest stable version in changelog. * Update lint-version script use tool agnostic variable names. * Fix typo.
1 parent 239e191 commit 7fa3b07

File tree

15 files changed

+104
-53
lines changed

15 files changed

+104
-53
lines changed

.github/workflows/master_only.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ jobs:
3131
run: make build-${{ matrix.component }}-docker REGISTRY=gcr.io/kf-feast VERSION=${GITHUB_SHA}
3232
- name: Push image
3333
run: make push-${{ matrix.component }}-docker REGISTRY=gcr.io/kf-feast VERSION=${GITHUB_SHA}
34-
- name: Push image to feast dev
34+
- name: Push development Docker image
3535
run: |
3636
if [ ${GITHUB_REF#refs/*/} == "master" ]; then
37-
docker tag gcr.io/kf-feast/feast-${{ matrix.component }}:${GITHUB_SHA} gcr.io/kf-feast/feast-${{ matrix.component }}:dev
38-
docker push gcr.io/kf-feast/feast-${{ matrix.component }}:dev
37+
docker tag gcr.io/kf-feast/feast-${{ matrix.component }}:${GITHUB_SHA} gcr.io/kf-feast/feast-${{ matrix.component }}:develop
38+
docker push gcr.io/kf-feast/feast-${{ matrix.component }}:develop
3939
fi
4040
- name: Get version
4141
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
42-
- name: Push versioned release
42+
- name: Push versioned Docker image
4343
run: |
4444
# Build and push semver tagged commits
4545
# Regular expression should match MAJOR.MINOR.PATCH[-PRERELEASE[.IDENTIFIER]]
4646
# eg. v0.7.1 v0.7.2-alpha v0.7.2-rc.1
47-
rx='^v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))$ '
48-
if echo "${RELEASE_VERSION}" | grep -P "$rx" &>/dev/null ; then
47+
SEMVER_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+(-([0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*))?$'
48+
if echo "${RELEASE_VERSION}" | grep -P "$SEMVER_REGEX" &>/dev/null ; then
4949
VERSION_WITHOUT_PREFIX=${RELEASE_VERSION:1}
5050
5151
docker tag gcr.io/kf-feast/feast-${{ matrix.component }}:${GITHUB_SHA} gcr.io/kf-feast/feast-${{ matrix.component }}:${VERSION_WITHOUT_PREFIX}

datatypes/java/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Dependency Coordinates
1616
<dependency>
1717
<groupId>dev.feast</groupId>
1818
<artifactId>datatypes-java</artifactId>
19-
<version>0.4.0-SNAPSHOT</version>
19+
<version>0.7-SNAPSHOT</version>
2020
</dependency>
2121
```
2222

docs/contributing/development-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ grpc_cli call localhost:6566 GetFeastServingInfo ''
210210

211211
```text
212212
connecting to localhost:6566
213-
version: "0.6.2-SNAPSHOT"
213+
version: "0.7-SNAPSHOT"
214214
type: FEAST_SERVING_TYPE_ONLINE
215215
216216
Rpc succeeded with OK status

infra/charts/feast/charts/feast-core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Current chart version is `0.7-SNAPSHOT`
2323
| gcpServiceAccount.existingSecret.name | string | `"feast-gcp-service-account"` | Name of the existing secret containing the service account |
2424
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
2525
| image.repository | string | `"gcr.io/kf-feast/feast-core"` | Docker image repository |
26-
| image.tag | string | `"0.6.2"` | Image tag |
26+
| image.tag | string | `"develop"` | Image tag |
2727
| ingress.grpc.annotations | object | `{}` | Extra annotations for the ingress |
2828
| ingress.grpc.auth.enabled | bool | `false` | Flag to enable auth |
2929
| ingress.grpc.class | string | `"nginx"` | Which ingress controller to use |

infra/charts/feast/charts/feast-core/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ image:
55
# image.repository -- Docker image repository
66
repository: gcr.io/kf-feast/feast-core
77
# image.tag -- Image tag
8-
tag: 0.6.2
8+
tag: develop
99
# image.pullPolicy -- Image pull policy
1010
pullPolicy: IfNotPresent
1111

infra/charts/feast/charts/feast-jobcontroller/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Current chart version is `0.7-SNAPSHOT`
2323
| gcpServiceAccount.existingSecret.name | string | `"feast-gcp-service-account"` | Name of the existing secret containing the service account |
2424
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
2525
| image.repository | string | `"gcr.io/kf-feast/feast-jobcontroller"` | Docker image repository |
26-
| image.tag | string | `"0.6.2"` | Image tag |
26+
| image.tag | string | `"develop"` | Image tag |
2727
| ingress.grpc.annotations | object | `{}` | Extra annotations for the ingress |
2828
| ingress.grpc.auth.enabled | bool | `false` | Flag to enable auth |
2929
| ingress.grpc.class | string | `"nginx"` | Which ingress controller to use |

infra/charts/feast/charts/feast-jobcontroller/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ image:
55
# image.repository -- Docker image repository
66
repository: gcr.io/kf-feast/feast-jobcontroller
77
# image.tag -- Image tag
8-
tag: 0.6.2
8+
tag: develop
99
# image.pullPolicy -- Image pull policy
1010
pullPolicy: IfNotPresent
1111

infra/charts/feast/charts/feast-jupyter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Current chart version is `0.7-SNAPSHOT`
1717
| gcpServiceAccount.existingSecret.name | string | `"feast-gcp-service-account"` | Name of the existing secret containing the service account |
1818
| image.pullPolicy | string | `"Always"` | Image pull policy |
1919
| image.repository | string | `"gcr.io/kf-feast/feast-jupyter"` | Docker image repository |
20-
| image.tag | string | `"0.6.2"` | Image tag |
20+
| image.tag | string | `"develop"` | Image tag |
2121
| replicaCount | int | `1` | Number of pods that will be created |

infra/charts/feast/charts/feast-jupyter/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ image:
55
# image.repository -- Docker image repository
66
repository: gcr.io/kf-feast/feast-jupyter
77
# image.tag -- Image tag
8-
tag: 0.6.2
8+
tag: develop
99
# image.pullPolicy -- Image pull policy
1010
pullPolicy: Always
1111

@@ -16,4 +16,4 @@ gcpServiceAccount:
1616
# gcpServiceAccount.existingSecret.name -- Name of the existing secret containing the service account
1717
name: feast-gcp-service-account
1818
# gcpServiceAccount.existingSecret.key -- Key in the secret data (file name of the service account)
19-
key: credentials.json
19+
key: credentials.json

infra/charts/feast/charts/feast-serving/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Current chart version is `0.7-SNAPSHOT`
2323
| gcpServiceAccount.existingSecret.name | string | `"feast-gcp-service-account"` | Name of the existing secret containing the service account |
2424
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
2525
| image.repository | string | `"gcr.io/kf-feast/feast-serving"` | Docker image repository |
26-
| image.tag | string | `"0.6.2"` | Image tag |
26+
| image.tag | string | `"develop"` | Image tag |
2727
| ingress.grpc.annotations | object | `{}` | Extra annotations for the ingress |
2828
| ingress.grpc.auth.enabled | bool | `false` | Flag to enable auth |
2929
| ingress.grpc.class | string | `"nginx"` | Which ingress controller to use |

0 commit comments

Comments
 (0)