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

New Release Workflow & Gha refactoring #1749

Merged
merged 10 commits into from
May 16, 2022

Conversation

pSchlarb
Copy link
Member

Refactoring of GHA Workflows and New Release Workflow.
PR and Push flows now only trigger, when python files have changed.

WIP:

  • Workflow for automated node upgrades after plenum updates
  • indy-test-automation integration

New Release Workflow:
release-workflow

pSchlarb and others added 6 commits May 10, 2022 15:01
Signed-off-by: Philipp Schlarb <p.schlarb@esatus.com>
Signed-off-by: pSchlarb <87540518+pSchlarb@users.noreply.github.com>
Signed-off-by: pSchlarb <p.schlarb@esatus.com>
Signed-off-by: pSchlarb <p.schlarb@esatus.com>
Signed-off-by: pSchlarb <p.schlarb@esatus.com>
Signed-off-by: pSchlarb <p.schlarb@esatus.com>
@pSchlarb pSchlarb added the Ubuntu 20.04 Ubuntu 20.04 related activity. label May 10, 2022
@pSchlarb pSchlarb requested a review from a team as a code owner May 10, 2022 14:29
@sovbot
Copy link

sovbot commented May 10, 2022

Can one of the admins verify this patch?

@pSchlarb pSchlarb changed the title Gha refactoring New Release Workflow & Gha refactoring May 11, 2022
Release Workflow Diagram
Polishing for PR

Signed-off-by: Philipp Schlarb <p.schlarb@esatus.com>
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

A few small items to address.

The publish-deb and set-version actions should be removed now that they are in the indy-shared-gha repo.

The ubuntu 16.04 build scripts were removed from this PR, should they have also been removed from the indy-plenum PR; hyperledger/indy-plenum#1590

Renaming of build-scripts/ubuntu-2004/build-indy-node.sh to build-scripts/ubuntu-2004/build-indy_node.sh. This is inconsistent with the renaming of the equivalent script in plenum from build-scripts/ubuntu-2004/build-indy-plenum.sh to build-scripts/ubuntu-2004/build-plenum.sh

Also see hyperledger/indy-plenum#1592

.github/workflows/PR.yaml Outdated Show resolved Hide resolved
.github/workflows/README.md Outdated Show resolved Hide resolved
.github/workflows/publishRelease.yaml Show resolved Hide resolved
.github/workflows/publishRelease.yaml Outdated Show resolved Hide resolved
.github/workflows/publishRelease.yaml Outdated Show resolved Hide resolved
.github/workflows/publishRelease.yaml Outdated Show resolved Hide resolved
.github/workflows/releasepr.yaml Outdated Show resolved Hide resolved
.github/workflows/releasepr.yaml Show resolved Hide resolved
.github/workflows/releasepr.yaml Outdated Show resolved Hide resolved
with:
python-version: '3.8'
- name: Install deps for version change
run: pip install base58
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
run: pip install base58
run: |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61
sudo add-apt-repository 'deb https://hyperledger.jfrog.io/artifactory/indy focal dev'
sudo apt-get update -y && sudo apt-get install -y \
rocksdb=5.8.8 \
libgflags-dev \
libsnappy-dev \
zlib1g-dev \
libbz2-dev \
liblz4-dev \
libgflags-dev \
pip install packaging \
importlib_metadata==3.10.1 \
indy-plenum==1.13.0.dev14 \
pyzmq==22.3.0

This ugliness is due to having to install indy-plenum plus it's minimal set of dependencies in order to use the bump_version.sh script.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will add it but wouldn't it be wiser to change the bump_version.sh script to only change the __version__.json?

Copy link
Member

Choose a reason for hiding this comment

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

I can see why it was done the way it is, for consistency in version number handling, but the result here in indy-node is having to load the additional dependencies.

@pSchlarb
Copy link
Member Author

Renaming of build-scripts/ubuntu-2004/build-indy-node.sh to build-scripts/ubuntu-2004/build-indy_node.sh. This is inconsistent with the renaming of the equivalent script in plenum from build-scripts/ubuntu-2004/build-indy-plenum.sh to build-scripts/ubuntu-2004/build-plenum.sh

That was intentionally done to match the moduleName-variable.
As can be seen in the buildpackage.yaml

@pSchlarb pSchlarb force-pushed the GHARefactoring branch 2 times, most recently from 5810660 to 20d709c Compare May 13, 2022 10:22
Signed-off-by: Philipp Schlarb <p.schlarb@esatus.com>
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

Need to separate the apt-get and pip commands

.github/workflows/tag.yaml Outdated Show resolved Hide resolved
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

This one was my oversite in the first review.

.github/workflows/releasepr.yaml Outdated Show resolved Hide resolved
- Separate the `apt-get` and `pip` commands in tag workflow.
- Fix job reference in release PR workflow.

Signed-off-by: Wade Barnes <wade@neoterictech.ca>
- Factor out into a shared action.

Signed-off-by: Wade Barnes <wade@neoterictech.ca>
`````````````````````````````````````
@WadeBarnes WadeBarnes merged commit c688720 into hyperledger:ubuntu-20.04-upgrade May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ubuntu 20.04 Ubuntu 20.04 related activity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants