Skip to content
Open
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
3 changes: 2 additions & 1 deletion .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

branches:
- main
- ubuntu-22.04

jobs:
workflow-setup:
Expand Down Expand Up @@ -80,4 +81,4 @@ jobs:
needs: [workflow-setup, plenum_tests]
if: ${{ needs.workflow-setup.outputs.testsNeeded == 'false' || success() }}
steps:
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '
2 changes: 2 additions & 0 deletions .github/workflows/Push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ on:
push:
branches:
- main
- ubuntu-22.04
paths:
- '**.py'
- '.github/**'
- 'build-scripts/**'
- 'bump_version.sh'


jobs:
workflow-setup:
name: Initialize Workflow
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build/Dockerfile.ubuntu-2204
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ RUN apt-get update -y && apt-get install -y \
# Update repository signing keys
# --------------------------------------------------------------------------------------------------------
# Hyperledger
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 && \
# Sovrin
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61

# ========================================================================================================

# Plenum
Expand All @@ -30,7 +29,8 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 &&
# echo "deb https://repo.sovrin.org/sdk/deb bionic master" >> /etc/apt/sources.list

# TODO change this to official repo
RUN echo "deb [trusted=yes] http://209.141.41.82:8000/ packagedir/" >> /etc/apt/sources.list
RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy focal stable" >> /etc/apt/sources.list
RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy bionic master" >> /etc/apt/sources.list


RUN apt-get update -y && apt-get install -y \
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publishRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- '!**'
- "plenum/__version__.json"

permissions:
contents: write
pull-requests: write

jobs:
release-infos:
name: release-infos
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reuseable_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
indy_plenum_tests:
name: Sliced Module Tests
# Reference to workflow-setup job is required to access the GITHUB_REPOSITORY_NAME output.
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
# Fix for scacap/action-surefire-report out of memory error:
# - https://github.com/ScaCap/action-surefire-report/issues/17
env:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
indy_plenum_module_tests:
name: Module Tests
# Reference to workflow-setup job is required to access the GITHUB_REPOSITORY_NAME output.
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
UBUNTU_VERSION: ${{ inputs.UBUNTU_VERSION }}
container:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- setRelease-v**

permissions:
contents: write
pull-requests: write

jobs:
taginfos:
name: get Tag infos
Expand Down Expand Up @@ -33,7 +37,7 @@ jobs:
bump_version:
name: Bump Version Number
needs: taginfos
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

build:
os: "ubuntu-20.04"
os: "ubuntu-22.04"
tools:
python: "3.6"

Expand Down
6 changes: 4 additions & 2 deletions build-scripts/ubuntu-2204/build-3rd-parties.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
set -e
set -x

OUTPUT_PATH=${1:-.}
# Ensure the output is an absolute path and not a relative path
OUTPUT_PATH="$(realpath -m ${1:-.})"
wheel2debconf="$(dirname "$(realpath "$0")")"/wheel2deb.yml


Expand All @@ -23,6 +24,7 @@ function build_rocksdb_deb {
# Install it in the system as it is needed by python-rocksdb.
make install
cd -
mkdir -p ${OUTPUT_PATH}
cp /tmp/rocksdb/package/rocksdb_${VERSION}_amd64.deb $OUTPUT_PATH
rm -rf /tmp/rocksdb
}
Expand Down Expand Up @@ -140,7 +142,7 @@ pushd `dirname ${SCRIPT_PATH}` >/dev/null

# Install any python requirements needed for the builds.
pip install -r requirements.txt
pip3 install wheel2deb && apt-get install -y debhelper
pip3 install wheel2deb && apt update && apt install -y debhelper
apt-get install -y cython3

# Build rocksdb at first
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/ubuntu-2204/build-plenum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fpm --input-type "python" \
--verbose \
--python-package-name-prefix "python3"\
--python-bin "/usr/bin/python3" \
--exclude "usr/local/lib/python3.8/dist-packages/data" \
--exclude "usr/local/lib/python3.10/dist-packages/data" \
--exclude "usr/local/bin" \
--exclude "*.pyc" \
--exclude "*.pyo" \
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/ubuntu-2204/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Automatically added from template:
if which py3compile >/dev/null 2>&1; then
py3compile -O -p {package_name} /usr/local/lib/python3.8/dist-packages/
py3compile -O -p {package_name} /usr/local/lib/python3.10/dist-packages/
fi

# End automatically added section
2 changes: 1 addition & 1 deletion plenum/__version__.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[1, 13, 1, "", ""]
[1, 13, 2, "rc", 20]
2 changes: 1 addition & 1 deletion plenum/server/consensus/ordering_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ def dequeue_pre_prepares(self):
r = 0
while self.prePreparesPendingPrevPP and self._can_dequeue_pre_prepare(
*self.prePreparesPendingPrevPP.keys()[0]):
_, (pp, sender) = self.prePreparesPendingPrevPP.popitem(index=0)
_, (pp, sender) = self.prePreparesPendingPrevPP.popitem(0)
if not self._can_pp_seq_no_be_in_view(pp.viewNo, pp.ppSeqNo):
self._discard(pp, "Pre-Prepare from a previous view",
logger.debug)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def run(self):
# Pinned because of changing size of `crypto_sign_SECRETKEYBYTES` from 32 to 64
'libnacl==1.6.1',
# 'msgpack-python==0.5.6',
'msgpack-python',
'msgpack==0.5.6',
# 'orderedset==2.0.3',
'orderedset',
# 'packaging==20.9',
Expand All @@ -123,7 +123,7 @@ def run(self):
# 'python-dateutil==2.8.1',
'python-dateutil',
# 'python-rocksdb==0.7.0',
'python-rocksdb',
'python-rocksdb==0.7.0',
'python-ursa==0.1.1',
### Tests fail without version pin (GHA run: https://github.com/udosson/indy-plenum/actions/runs/1078745445)
'rlp==2.0.0',
Expand Down