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

Release v0.52.0 #506

Merged
merged 24 commits into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
494ceee
chore(ci): update workflow actions
jansegre Oct 12, 2022
e94b67e
Merge pull request #499 from HathorNetwork/chore/update-gh-actions
jansegre Oct 13, 2022
0dea8c0
chore: measure sync and load times (#490)
luislhl Oct 17, 2022
87bab77
feat(storage): persistence layer for events
lucas3003 Oct 10, 2022
ebe78c9
Merge pull request #451 from HathorNetwork/feat/event-storage
jansegre Oct 18, 2022
da0d6de
fix(cli): regression made it so testnet couldn't be selected
jansegre Oct 18, 2022
6bfc2f9
Merge pull request #501 from HathorNetwork/fix/select-testnet-regression
jansegre Oct 18, 2022
500ac47
feat(events): add management layer
lucas3003 Aug 8, 2022
9e25a0a
Merge pull request #454 from HathorNetwork/feat/event-layer
jansegre Oct 25, 2022
95d329e
feat(tx): improved reward lock verification algorithm
jansegre Dec 14, 2021
7789ef0
Merge pull request #300 from HathorNetwork/feat/block-verify-reward-lock
jansegre Oct 28, 2022
face9bb
chore: avoid using RocksDB keys estimation (#496)
luislhl Nov 1, 2022
412b0e8
refactor(init): Use a builder to create objects and inject dependencies
msbrogli Oct 4, 2022
7cba651
Merge branch 'refactor/builder' into dev
msbrogli Nov 3, 2022
d80cb63
test: Fix too many files open errors
msbrogli Nov 3, 2022
3ae3ed4
Merge branch 'test/fix-too-many-files-open' into dev
msbrogli Nov 3, 2022
7f34cce
feat(indexes): make sync-v2 indexes only load when sync-v2 is enabled
jansegre Sep 5, 2022
a9fd197
Merge pull request #486 from HathorNetwork/feat/make-syncv2-indexes-o…
jansegre Nov 3, 2022
05e9130
chore: bump version and update checkpoints
jansegre Oct 28, 2022
1d0e0e7
Merge pull request #502 from HathorNetwork/chore/v0.52.0
jansegre Nov 3, 2022
51fa167
feat(storage): Remove binary and compact tx storage
msbrogli Nov 3, 2022
08b4dd9
Merge branch 'feat/remove-unused-tx-storage' into dev
msbrogli Nov 3, 2022
4316048
fix(cli): builder refactor regression skipped register_resources
jansegre Nov 4, 2022
c72a127
Merge pull request #507 from HathorNetwork/fix/builder-refactor-regre…
jansegre Nov 4, 2022
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
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
python-version: '3.10'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Prepare tags
id: prep
shell: python
Expand Down Expand Up @@ -110,13 +110,13 @@ jobs:
install: true
driver-opts: network=host
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
if: steps.prep.outputs.login-dockerhub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
if: steps.prep.outputs.login-ghcr
with:
registry: ghcr.io
Expand All @@ -131,7 +131,7 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-${{ matrix.python-impl }}${{ matrix.python-version }}-refs/heads/master-
- name: Build and export to Docker
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ${{ steps.prep.outputs.dockerfile }}
Expand All @@ -144,7 +144,7 @@ jobs:
- name: Test image
run: docker run --rm ${{ env.TEST_TAG }} quick_test --data / --testnet
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
continue-on-error: ${{ matrix.python-impl == 'pypy' }} # PyPy is not first-class and has been causing some build failures
with:
context: .
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
# available OS's: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on
'os': ['ubuntu-22.04', 'macos-12', 'windows-2022'],
'include': [
{'os': 'ubuntu-20.04', 'python': '3.8'},
# XXX: tests fail on these, not sure why, when running them individually each on passes, but not on `make tests`
# {'os': 'ubuntu-22.04', 'python': 'pypy-3.8'},
# {'os': 'ubuntu-22.04', 'python': 'pypy-3.9'},
Expand All @@ -34,7 +33,7 @@ jobs:
# this is the fastest one:
reduced_matrix = {
'python': ['3.9'],
'os': ['ubuntu-20.04'],
'os': ['ubuntu-22.04'],
}
github_repository = os.environ['GITHUB_REPOSITORY']
if github_repository.lower() == 'hathornetwork/hathor-core':
Expand Down Expand Up @@ -65,11 +64,14 @@ jobs:
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'poetry'
- name: Install Ubuntu dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand All @@ -81,14 +83,10 @@ jobs:
brew cleanup -q
brew update -q
brew install -q graphviz rocksdb
- name: Install Poetry
run: |
pip --no-input --no-cache-dir install --upgrade pip wheel
pip --no-input --no-cache-dir install poetry
- name: Install Poetry dependencies
run: poetry install -n --no-root
- name: Cache mypy
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .mypy_cache
# this key is setup such that every branch has its cache and new branches can reuse dev's cache, but not the other way around
Expand All @@ -101,5 +99,5 @@ jobs:
- name: Run tests
run: poetry run make tests
- name: Upload coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
if: matrix.python == 3.9 && startsWith(matrix.os, 'ubuntu')
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN pip --no-input --no-cache-dir install --upgrade pip wheel poetry
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
WORKDIR /app/
COPY pyproject.toml poetry.lock ./
RUN poetry install -n -E sentry --no-root --no-dev
RUN poetry install -n -E sentry --no-root --only=main
COPY hathor ./hathor
COPY README.md ./
RUN poetry build -f wheel
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.pypy
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN pip --no-input --no-cache-dir install --upgrade pip wheel poetry
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
WORKDIR /app/
COPY pyproject.toml poetry.lock ./
RUN poetry install -n -E sentry --no-root --no-dev
RUN poetry install -n -E sentry --no-root --only=main
COPY hathor ./hathor
COPY README.md ./
RUN poetry build -f wheel
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tests-lib:

.PHONY: tests-quick
tests-quick:
pytest --durations=10 $(pytest_flags) --doctest-modules hathor $(tests_lib) --maxfail=1
pytest --durations=10 $(pytest_flags) --doctest-modules hathor $(tests_lib) --maxfail=1 -m "not slow"

.PHONY: tests-genesis
tests-genesis:
Expand Down
Loading