Skip to content

Commit 311689d

Browse files
authored
Merge pull request #1904 from WadeBarnes/ubuntu-22.04
Build and workflow updates and fixes
2 parents c655ff1 + 2acd776 commit 311689d

File tree

9 files changed

+38
-17
lines changed

9 files changed

+38
-17
lines changed

.github/actions/getNewNodeVersion/action.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v5
2121
with:
22-
python-version: '3.8'
22+
python-version: '3.10'
2323
- name: Get Versions
2424
id: versions
2525
shell: bash
@@ -35,4 +35,4 @@ runs:
3535
echo "nodeVersion=$nodeVersion" >> $GITHUB_OUTPUT
3636
echo "::group::DEBUG"
3737
echo "nodeVersion is set to $nodeVersion"
38-
echo "::endgroup::"
38+
echo "::endgroup::"

.github/workflows/PR.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ on:
77

88
branches:
99
- main
10+
- ubuntu-22.04
1011

1112
workflow_dispatch:
1213

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1318
jobs:
1419
workflow-setup:
1520
name: Initialize Workflow
@@ -82,4 +87,4 @@ jobs:
8287
needs: [workflow-setup, indy_node_tests]
8388
if: ${{ needs.workflow-setup.outputs.testsNeeded == 'false' || success() }}
8489
steps:
85-
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '
90+
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '

.github/workflows/Push.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ on:
44
branches:
55
- main
66
- test-automation-integration
7+
- ubuntu-22.04
78
paths:
89
- '**.py'
910
- '.github/**'
1011
- 'build-scripts/**'
1112
- 'bump_version.sh'
1213

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1318
jobs:
1419
workflow-setup:
1520
name: Initialize Workflow

.github/workflows/build/Dockerfile.ubuntu-2204

+8-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 &&
3131
# Plenum
3232
# - https://github.com/hyperledger/indy-plenum/issues/1546
3333
# - Needed to pick up rocksdb=5.8.8
34-
RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy jammy dev" >> /etc/apt/sources.list && \
34+
RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy jammy dev rc" >> /etc/apt/sources.list && \
3535
echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list && \
3636
echo "deb https://repo.sovrin.org/deb bionic master" >> /etc/apt/sources.list && \
3737
echo "deb https://repo.sovrin.org/sdk/deb bionic master" >> /etc/apt/sources.list
3838

39-
RUN apt-get update -y && apt-get install -y rubygems python3-pip && apt-get -y autoremove && rm -rf /var/lib/apt/lists/*
39+
RUN apt-get update -y && apt-get install -y \
40+
rubygems \
41+
python3-pip && \
42+
apt-get -y autoremove && \
43+
rm -rf /var/lib/apt/lists/*
4044

4145
# install fpm
42-
RUN gem install --no-document rake dotenv:2.8.1 fpm:1.15.0
46+
RUN gem install --no-document rake dotenv:2.8.1 fpm:1.15.0 && \
47+
pip3 install Cython==0.29.36

.github/workflows/reuseable_test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
indy_node_tests:
1515
name: Sliced Module Tests
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-latest
1717
# Fix for scacap/action-surefire-report out of memory error:
1818
# - https://github.com/ScaCap/action-surefire-report/issues/17
1919
env:

.github/workflows/tag.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ jobs:
3333
bump_version:
3434
name: Bump Version Number
3535
needs: taginfos
36-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-latest
3737
steps:
3838
- name: Check out code
3939
uses: actions/checkout@v4
4040

4141
- name: Set up Python
4242
uses: actions/setup-python@v5
4343
with:
44-
python-version: '3.8'
44+
python-version: '3.10'
4545

4646
- name: Install deps for version change
4747
run: |

build-scripts/ubuntu-2204/build-indy_node.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ cd "${TMP_DIR}/build-scripts/ubuntu-2204"
1616
./prepare-package.sh "${TMP_DIR}" indy_node "${VERSION}" debian-packages
1717

1818
echo "Fetching the indy-plenum version from setup.py and converting it to deb format ..."
19-
plenumDebVersion=$(grep -oP "indy-plenum==\d+.\d+.\d+((-|.)?(rc|dev)\d+)?" ${TMP_DIR}/setup.py | grep -oP "\d+.\d+.\d+((-|.)?(rc|dev)\d+)?" | sed 's/\./\~/3')
19+
# Converts Versions defined in the following forms to their equivalent dep version format:
20+
# 1.14.0.rc0 ==> 1.14.0~rc0
21+
# 1.14.0-rc0 ==> 1.14.0~rc0
22+
# 1.14.0.dev0654678970 ==> 1.14.0~dev0654678970
23+
# 1.14.0-dev0654678970 ==> 1.14.0~dev0654678970
24+
plenumDebVersion=$(grep -oP "indy-plenum==\d+.\d+.\d+((-|.)?(rc|dev)\d+)?" ${TMP_DIR}/setup.py | grep -oP "\d+.\d+.\d+((-|.)?(rc|dev)\d+)?" | sed 's/\./\~/3' | sed 's/\-/\~/1')
2025
echo "plenumDebVersion: ${plenumDebVersion}"
2126

2227
sed -i "s/{package_name}/${PACKAGE_NAME}/" "prerm"

build-scripts/ubuntu-2204/prepare-package.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ bash -ex $GENERATE_MANIFEST_SCRIPT
2525
cat $module_name/__manifest__.json
2626

2727
if [ "$distro_packages" = "debian-packages" ]; then
28+
# Only used for the deb package builds, NOT for the PyPi package builds.
2829
echo -e "\n\nPrepares indy-node debian package version"
2930
sed -i -r "s~indy-node==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-node==\1\~\3~" setup.py
3031

31-
# Update the package names to match the names that are available on the os.
32-
echo -e "\nAdapt the dependencies for the Canonical archive"
33-
sed -i "s~timeout-decorator~python3-timeout-decorator~" setup.py
34-
sed -i "s~distro~python3-distro~" setup.py
32+
# Update the package names to match the versions that are pre-installed on the os.
33+
echo -e "\nAdapting the dependencies for the Canonical archive"
34+
sed -i "s~timeout-decorator>=0.5.0~python3-timeout-decorator==0.5.0-1~" setup.py
35+
sed -i "s~distro==1.7.0~python3-distro==1.7.0-1~" setup.py
3536
sed -i "s~importlib-metadata=~python3-importlib-metadata=~" setup.py
36-
37+
3738
echo "Preparing config files"
3839
GENERAL_CONFIG_DIR="\/etc\/indy"
3940
REPO_GENERAL_CONFIG_DIR="indy_node/general_config"
@@ -54,4 +55,4 @@ fi
5455

5556
popd
5657

57-
echo -e "\nFinished preparing $repo for publishing\n"
58+
echo -e "\nFinished preparing $repo for publishing\n"

indy_node/__version__.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[1, 13, 2, "", ""]
1+
[1, 14, 0, "", ""]

0 commit comments

Comments
 (0)