Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace cico registry builds w/ GH action calls #27

Merged
merged 5 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release-orchestrate-overall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
required: true
default: ''
phases:
description: 'List of comma-separated phases to perform; default should be "1,2,3,4,5,6,7"; omit phases that have successfully run'
description: 'List of comma-separated phases to perform; default should be "1,2,3,4"; omit phases that have successfully run'
required: true
default: '1,2,3,4,5,6,7'
default: '1,2,3,4'
jobs:
build:
runs-on: ubuntu-16.04
Expand Down
6 changes: 3 additions & 3 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# che version to release
CHE_VERSION=7.25.1
CHE_VERSION=7.27.0
# if true, release and deploy che parent
RELEASE_CHE_PARENT=false
# version of Che parent to use in maven builds
Expand All @@ -8,5 +8,5 @@ VERSION_CHE_PARENT=7.15.0
DEPLOY_TO_NEXUS=true
# if true, automatically release che-server on Nexus. If false, manual release required
AUTORELEASE_ON_NEXUS=true
# list of comma-separated phases to perform; default should be "1,2,3,4,5,6,7"
PHASES="5,6"
# list of comma-separated phases to perform; default should be "1,2,3,4"
PHASES="1,2,3,4"
52 changes: 24 additions & 28 deletions cico_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ installRPMDeps(){
subscription-manager repos --enable=rhel-server-rhscl-7-rpms || true
yum update -y -q
# TODO should this be node 12 module?
# TODO remove skopeo and yq -- are they still used?
yum install -y -q git224-all skopeo java-11-openjdk-devel yum-utils device-mapper-persistent-data lvm2 docker-ce nodejs yarn gcc-c++ make jq hub python3-pip wget yq podman psmisc
echo -n "node "; node --version
echo -n "npm "; npm --version
Expand Down Expand Up @@ -58,19 +59,6 @@ evaluateCheVariables() {
echo "Release Process Phases: '${PHASES}'"
}

# che docs release now depends on che-operator completion.
# issue: https://github.com/eclipse/che/issues/18864
# see https://github.com/eclipse/che-docs/pull/1823
# see https://github.com/eclipse/che-operator/pull/657
# releaseCheDocs() {
# tmpdir="$(mktemp -d)"
# pushd "${tmpdir}" >/dev/null || exit
# projectPath=eclipse/che-docs
# rm -f ./make-release.sh && curl -sSLO "https://raw.githubusercontent.com/${projectPath}/master/make-release.sh" && chmod +x ./make-release.sh
# ./make-release.sh --repo "git@github.com:${projectPath}" --version "${CHE_VERSION}" --trigger-release
# popd >/dev/null || exit
# }

# for a given GH repo and action name, compute workflow_id
# warning: variable workflow_id is a global, so don't call this in parallel executions!
computeWorkflowId() {
Expand Down Expand Up @@ -116,6 +104,13 @@ releaseCheTheia() {
invokeAction eclipse/che-theia "Release Che Theia" "5717988" version "${CHE_VERSION}"
}

releaseDevfileRegistry() {
invokeAction eclipse/che-devfile-registry "Release Che Devfile Registry" "4191260" version "${CHE_VERSION}"
}
releasePluginRegistry() {
invokeAction eclipse/che-plugin-registry "Release Che Plugin Registry" "4191251" version "${CHE_VERSION}"
}

branchJWTProxyAndKIP() {
invokeAction eclipse/che-jwtproxy "Create branch" "5410230" branch "${BRANCH}"
invokeAction che-incubator/kubernetes-image-puller "Create branch" "5409996" branch "${BRANCH}"
Expand Down Expand Up @@ -170,11 +165,9 @@ set +x
if [[ ${PHASES} == *"1"* ]]; then
releaseMachineExec
releaseCheTheia
# TODO switch to GH action https://github.com/eclipse/che-devfile-registry/pull/309 + need secrets
{ ./cico_release_theia_and_registries.sh ${CHE_VERSION} eclipse/che-devfile-registry devtools-che-devfile-registry-release 75 & }; pid_3=$!;
releaseDevfileRegistry
nickboldt marked this conversation as resolved.
Show resolved Hide resolved
releaseDashboardAndWorkspaceLoader
branchJWTProxyAndKIP

fi
wait
verifyContainerExistsWithTimeout ${REGISTRY}/${ORGANIZATION}/che-machine-exec:${CHE_VERSION} 30
Expand All @@ -188,24 +181,27 @@ verifyContainerExistsWithTimeout ${REGISTRY}/${ORGANIZATION}/che-workspace-loade
# Release plugin-registry (depends on che-theia and machine-exec)
set +x
if [[ ${PHASES} == *"2"* ]]; then
# TODO switch to GH action https://github.com/eclipse/che-plugin-registry/pull/723 + need secrets
{ ./cico_release_theia_and_registries.sh ${CHE_VERSION} eclipse/che-plugin-registry devtools-che-plugin-registry-release 45 & }; pid_4=$!;
#releaseCheServer
releasePluginRegistry
nickboldt marked this conversation as resolved.
Show resolved Hide resolved
fi
if [[ ${PHASES} == *"3"* ]]; then
releaseCheServer
fi
wait
verifyContainerExistsWithTimeout ${REGISTRY}/${ORGANIZATION}/che-plugin-registry:${CHE_VERSION} 30
# # verify images all created from IMAGES_LIST
# for image in ${IMAGES_LIST[@]}; do
# verifyContainerExistsWithTimeout ${image}:${CHE_VERSION} 60
# done
if [[ ${PHASES} == *"2"* ]] || [[ ${PHASES} == *"3"* ]] || [[ ${PHASES} == *"4"* ]]; then
verifyContainerExistsWithTimeout ${REGISTRY}/${ORGANIZATION}/che-plugin-registry:${CHE_VERSION} 30
nickboldt marked this conversation as resolved.
Show resolved Hide resolved
fi
if [[ ${PHASES} == *"3"* ]] || [[ ${PHASES} == *"4"* ]]; then
# verify images all created from IMAGES_LIST
for image in ${IMAGES_LIST[@]}; do
verifyContainerExistsWithTimeout ${image}:${CHE_VERSION} 60
done
fi

# Release Che operator (create PRs)
set +x
if [[ ${PHASES} == *"3"* ]]; then
if [[ ${PHASES} == *"4"* ]]; then
releaseOperator
fi

# TODO need a test to validate docs have been published OK
wait

# Next steps documented in https://github.com/eclipse/che-release/blob/master/README.md#phase-2---manual-steps
# TODO update to list remaining manual steps (PR merges only) https://github.com/eclipse/che-release/blob/master/README.md#phase-2---manual-steps
59 changes: 0 additions & 59 deletions cico_release_theia_and_registries.sh

This file was deleted.