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

Fix release script #10279

Merged
merged 4 commits into from
Sep 6, 2022
Merged

Fix release script #10279

merged 4 commits into from
Sep 6, 2022

Conversation

deepthidevaki
Copy link
Contributor

Description

This PR contains fixes for issue found while releasing 8.1.0-alpha5.

curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb --output /tmp/gh.deb
dpkg -i /tmp/gh.deb

# Have to set the safe directory otherwise git commands fails with fatal: detected dubious ownership in repository at '/home/jenkins/agent/workspace/zeebe-release'
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure where this is necessary, or when did this break 🤔 We've been using git for a while. Anyway 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Script fails without this. Now sure why it fails now, and was working before.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2022

Test Results

   856 files  ±    0     856 suites  ±0   1h 47m 37s ⏱️ + 5m 2s
6 467 tests  - 137  6 457 ✔️  - 137  10 💤 ±0  0 ±0 
6 651 runs   - 137  6 641 ✔️  - 137  10 💤 ±0  0 ±0 

Results for commit 75cadbf. ± Comparison against base commit d26dbb6.

♻️ This comment has been updated with latest results.

apt update
apt install -y gpg gh
apt install -y gpg git
Copy link
Member

@npepinpe npepinpe Sep 6, 2022

Choose a reason for hiding this comment

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

❌ It's not required to install git, we were previously only installing gpg. I expect the addition of setting the safe directory is only required because we're overwriting the existing git install with this command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Where is the existing git coming from? I added it because gh has a dependency to git and assumed previously it was installed automatically by apt when installing gh.

Copy link
Member

Choose a reason for hiding this comment

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

I would assume it's already in the image? You can look at the revision before we added gh, and we were only installing gpg (but using git already)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. The base image is maven:3.8.4-eclipse-temurin-17 and it already contains git. So I will remove installing git and the setting of safe directory. Hope this will work next time :)

git already exists in the base image
Copy link
Contributor

@megglos megglos left a comment

Choose a reason for hiding this comment

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

LGTM! Just a comment on a now outdated comment about install gh clie via package manager

@@ -2,11 +2,13 @@

# update apt repositories and install missing utilities
# add GitHub packages Debian repository for gh
Copy link
Contributor

Choose a reason for hiding this comment

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

🔧 this comment is out dated now

Suggested change
# add GitHub packages Debian repository for gh

@deepthidevaki
Copy link
Contributor Author

bors merge

@zeebe-bors-camunda
Copy link
Contributor

Build succeeded:

@zeebe-bors-camunda zeebe-bors-camunda bot merged commit 15bbc7f into main Sep 6, 2022
@zeebe-bors-camunda zeebe-bors-camunda bot deleted the dd-release-ci branch September 6, 2022 15:18
@backport-action
Copy link
Collaborator

Backport failed for stable/8.0, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git fetch origin stable/8.0
git worktree add -d .worktree/backport-10279-to-stable/8.0 origin/stable/8.0
cd .worktree/backport-10279-to-stable/8.0
git checkout -b backport-10279-to-stable/8.0
ancref=$(git merge-base d26dbb66d6e29d3634a998f4def711c1f5043cab 2e0ebca80f7beeefda0fe84b961aa6ccf1fb896a)
git cherry-pick -x $ancref..2e0ebca80f7beeefda0fe84b961aa6ccf1fb896a

zeebe-bors-camunda bot added a commit that referenced this pull request Sep 12, 2022
10322: [Backport stable/8.0] Fix release script r=deepthidevaki a=deepthidevaki

## Description

Backport of #10279 

This also backports the changes to the jenkins pipeline. Not sure if this is necessary.


Co-authored-by: Deepthi Devaki Akkoorath <deepthidevaki@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants