ci: Enable check VERSION among the components without the runtime#614
Conversation
release/tag_repos.sh
Outdated
| check_versions | ||
| ;; | ||
| pre-release) | ||
| unset repos[2] |
There was a problem hiding this comment.
Instead of do this could you try.
check_versions $(cat "${GOPATH}/src/${runtime_repo}/VERSION")
...
#$1 Version to check to branches merged
check_versions() {
version_to_check=${1:-}
if version_to_check == "";then
info query the version from latest runtime in branch ${branch}
else
kata_version=${version_to_check}
fi
...
for repo in "${repos[@]}"; do
if repo == kata-runtime; then
not checking runtime because we want the rest of repos are in $version_to_check
continue
fi
}There was a problem hiding this comment.
yep - let's do a specific check or some smart way to 'build up' the list of repos to check, and not add the runtime to the list in the first place if we are doing the pre-check.
release/tag_repos.sh
Outdated
| #The runtime version is used as reference of latest release | ||
| # This is set to the right value later. | ||
| kata_version="" | ||
| GOPATH="${HOME}/go" |
There was a problem hiding this comment.
':-' idiom to set only if not set maybe?
release/tag_repos.sh
Outdated
| check_versions | ||
| ;; | ||
| pre-release) | ||
| unset repos[2] |
There was a problem hiding this comment.
yep - let's do a specific check or some smart way to 'build up' the list of repos to check, and not add the runtime to the list in the first place if we are doing the pre-check.
release/tag_repos.sh
Outdated
| pre-release) | ||
| unset repos[2] | ||
| runtime_repo="github.com/kata-containers/runtime" | ||
| export VERSION_TO_CHECK=$(cat "${GOPATH}/src/${runtime_repo}/VERSION") && check_versions |
There was a problem hiding this comment.
I think/guess this is reply on the runtime repo having been already checked out to the correct PR - as this script will be called for by the runtime repo code on a runtime repo PR being checked.... maybe a small comment to note that - otherwise it could be a little confusing :-)
The main purpose is that this script will be used to verify that VERSION among the components are equal before merging the runtime. Fixes kata-containers#613 Depends-on: github.com/kata-containers/runtime#1858 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
15e01be to
589e1a9
Compare
|
@jcvenegas changes applied |
This will take the VERSION of all the components in order to verify that they match among them before merging the runtime. Fixes kata-containers#1581 Depends-on: github.com/kata-containers/packaging#614 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
jcvenegas
left a comment
There was a problem hiding this comment.
Thanks gaby a few additional comments.
release/tag_repos.sh
Outdated
| ;; | ||
| pre-release) | ||
| runtime_repo="github.com/kata-containers/runtime" | ||
| check_versions $(cat "${GOPATH}/src/${runtime_repo}/VERSION") |
There was a problem hiding this comment.
Almost there, I wonder if instead of assume that the runtime repo exist here, could you read the version as a second parameter?
so in travis you can do something like
tag_repos.sh pre-release $(cat VERSION)
this also helps to remove the GOPATH variable and runtime_repo
- Also could you add some usage info ?
- finally you can add some basic test here tag_repos_test.sh
tag_repos.sh pre-release 100000will fail
or
tag_repos.sh pre-release $(curl https://github.com/kata-containers/runtime/blob/master/VERSION)I think should work
d263555 to
98ad9e2
Compare
This will take the VERSION of all the components in order to verify that they match among them before merging the runtime. Fixes kata-containers#1581 Depends-on: github.com/kata-containers/packaging#614 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
|
@jcvenegas changes applied |
|
/test |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This will take the VERSION of all the components in order to verify that they match among them before merging the runtime. Fixes kata-containers#1581 Depends-on: github.com/kata-containers/packaging#614 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This will take the VERSION of all the components in order to verify that they match among them before merging the runtime. Fixes kata-containers#1581 Depends-on: github.com/kata-containers/packaging#614 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This will take the VERSION of all the components in order to verify that they match among them before merging the runtime. Fixes kata-containers#1581 Depends-on: github.com/kata-containers/packaging#614 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This will take the VERSION of all the components in order to verify that they match among them before merging the runtime. Fixes kata-containers#1581 Depends-on: github.com/kata-containers/packaging#614 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
The main purpose is that this script will be used to verify
that VERSION among the components are equal before merging the runtime.
Fixes #613
Depends-on: github.com/kata-containers/runtime#1858
Signed-off-by: Gabriela Cervantes gabriela.cervantes.tellez@intel.com