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

Add release workflow for che parent and server #18909

Merged
merged 6 commits into from
Feb 3, 2021
Merged

Conversation

mkuznyetsov
Copy link
Contributor

@mkuznyetsov mkuznyetsov commented Jan 27, 2021

What does this PR do?

Move che parent & server release workflow from che-release project to che-server

Screenshot/screencast of this PR

What issues does this PR fix or reference?

#18780

How to test this PR?

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@che-bot che-bot added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/task Internal things, technical debt, and to-do tasks to be performed. labels Jan 27, 2021
@nickboldt nickboldt changed the title [WIP] Add release worklflow for che parent and server [WIP] Add release workflow for che parent and server Jan 27, 2021
@che-bot
Copy link
Contributor

che-bot commented Jan 27, 2021

❌ E2E Happy path tests failed ❗

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@mkuznyetsov mkuznyetsov marked this pull request as ready for review February 2, 2021 20:49
@mkuznyetsov mkuznyetsov changed the title [WIP] Add release workflow for che parent and server Add release workflow for che parent and server Feb 2, 2021
with:
repository: eclipse/che-parent
token: {{ secrets.CHE_BOT_GITHUB_TOKEN }}
path: che-parent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need fetch-depth:0 too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

- name: Check existing tag
run: |
if [[ "$FORCE_RECREATE_TAGS" == "false" ]] && [[ $(cd che && git ls-remote --exit-code origin refs/tags/${{ github.event.inputs.version}} ]]; then
echo "cannot create release, when tag already exists"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better formatted as an error, eg.,

echo "[ERROR] Tag ${{ github.event.inputs.version}} already exists - cannot re-release. Use 'forceRecreateTags:true' if you want to force a re-release to this tag."

architecture: x64
- name: Set up environment
run: |
# install more repos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update doesn't install repos... it updates.

sudo apt-get update -y || true
# install more dependencies
sudo apt-get -y -q install wget curl bash git
java -version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're checking java version here but didn't install it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be installed through respective github action earier

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure but you're ALSO outputting version 3 lines lower.

javac -version
which javac

# do we need any of these?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if these were commented out in the last che 7.25.x releases, we can probably remove them, right?

make-release.sh Outdated
@@ -3,162 +3,405 @@
# Used to create branch/tag, update versions in pom.xml
# and and trigger release by force pushing changes to the release branch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we still using the release branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

make-release.sh Outdated
# cleanup tmp dir
# cd /tmp && rm -fr "$TMP"

# TODO ensure usage of respective bugfix branches
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this mean?

set +x
# TODO should this be node 12?
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this move to a yaml step?

pushd che-parent >/dev/null
# Install previous version, in case it is not available in central repo
# which is needed for dependent projects
mvn clean install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we build the che-parent TWICE? Surely only one version is needed?

Copy link
Contributor

@nickboldt nickboldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some inline questions but probably OK to merge.

@@ -0,0 +1,116 @@
#
# Copyright (c) 2020 Red Hat, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg 2020 was SOOO last year. :)

@che-bot
Copy link
Contributor

che-bot commented Feb 3, 2021

❌ E2E Happy path tests failed ❗

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@sonarcloud
Copy link

sonarcloud bot commented Feb 3, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@che-bot
Copy link
Contributor

che-bot commented Feb 3, 2021

❌ E2E Happy path tests failed ❗

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@mkuznyetsov mkuznyetsov merged commit 18f3b63 into master Feb 3, 2021
@mkuznyetsov mkuznyetsov deleted the gh-release branch February 3, 2021 14:51
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Feb 3, 2021
@che-bot che-bot added this to the 7.26 milestone Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants