Skip to content

Commit

Permalink
Hotfix/1.2.7 (#59)
Browse files Browse the repository at this point in the history
* Re-add testnet API to Hive client (#57)

* Update defaults to match current values

Defaults now match those held by @podping account on Hive as of 2022-08-26

* Fixes #54

Allow `hive_operation_period` to be set by ENV on startup and ignore overrides from control account
Fixes #54

* testing and preparing for HF26

Signed-off-by: Brian of London <[email protected]>

* fix warning for depreciated poetry option

Signed-off-by: Brian of London <[email protected]>

* linting

Signed-off-by: Brian of London <[email protected]>

* hard coded test against a testnet if one exists

Signed-off-by: Brian of London <[email protected]>

* bump version to 1.2.7

Signed-off-by: Brian of London <[email protected]>

* poetry updates

Signed-off-by: Brian of London <[email protected]>

* fix for stupidity reading envs

Signed-off-by: Brian of London <[email protected]>

* improve error handling in logging

Signed-off-by: Brian of London <[email protected]>

* fix test #51

Signed-off-by: Brian of London <[email protected]>

* update test_name in test #56

Signed-off-by: Brian of London <[email protected]>

* poetry updates

Signed-off-by: Brian of London <[email protected]>

Signed-off-by: Brian of London <[email protected]>

* Update CLI docs

* Lighthive/zmq/tooling updates

* Use new lighthive load balancing/node selection

* Fix missing property on Config

* Fix tests, refactor error handling/logging, catch more API node failures

* More specific error handling in listen_for_custom_json_operations

* Handle RC depletion

Changes to handle RC depletion by retrying.

Separate to this software, Brianoflondon will be running a service which gives RC delegations to any podping sending account.

This should be fast enough to fix RC depletion so the correct response from HiveWriter will be to re-try.

* Bump version

Signed-off-by: Brian of London <[email protected]>

* Limit nodes to exclude pharesim and others.

Signed-off-by: Brian of London <[email protected]>

* Removed https://hived.emre.sh/

Signed-off-by: Brian of London <[email protected]>

* Catch and handle RC Depletion

This introduces a sleep timer which gives time for the RC delegation script to delegate more RCs to the server.

* Catch RC exhaustion

Uses secrets for random wait time with exponential back off.

* Test for NotEnoughResourceCredits error

* lint

Signed-off-by: Brian of London <[email protected]>

* version back to 1.2.7

Signed-off-by: Brian of London <[email protected]>

* Remove random time in wait for RC Delegation

Signed-off-by: Brian of London <[email protected]>

* Unit test for not enough RCs

Signed-off-by: Brian of London <[email protected]>

* Fix issue caused by git merge

Signed-off-by: Brian of London <[email protected]>

* remove failing resource checks on startup

Signed-off-by: Brian of London <[email protected]>

* Add send_notification_iris to #48 regression tests

* Make startup error handling more clear, construct_operation non-async

* Catch TooManyCustomJsonsPerBlock for backoff

* Separate exception catch for TooManyCustomJsonsPerBlock, sleep one block

Signed-off-by: Brian of London <[email protected]>
Co-authored-by: Alecks Gates <[email protected]>
  • Loading branch information
brianoflondon and agates authored Oct 15, 2022
1 parent 93f2f4d commit 63487d8
Show file tree
Hide file tree
Showing 23 changed files with 985 additions and 446 deletions.
1 change: 1 addition & 0 deletions CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $ podping [OPTIONS] COMMAND [ARGS]...
* `--livetest / --no-livetest`: Use live Hive chain but write with id=podping-livetest. Enable this if you want to validate posting to Hive without notifying podping watchers. Used internally for end-to-end tests. [env var: PODPING_LIVETEST; default: False]
* `--dry-run / --no-dry-run`: Run through all posting logic without posting to the chain. [env var: PODPING_DRY_RUN; default: False]
* `--status / --no-status`: Periodically prints a status message. Runs every diagnostic_report_period defined in podping_settings [env var: PODPING_STATUS; default: True]
* `--hive-operation-period INTEGER`: By default the Hivewriter will wait a few seconds gathering IRIs before sending the next batch. This balances resource usage against speed. If this is set here, the setting will override any settings sent by a config update. [env var: PODPING_HIVE_OPERATION_PERIOD; default: 3]
* `--ignore-config-updates / --no-ignore-config-updates`: By default, podping will periodically pull new settings from the configured Hive control account, allowing real time updates to adapt to changes in the Hive network. This lets you ignore these updates if needed. [env var: PODPING_IGNORE_CONFIG_UPDATES; default: False]
* `--i-know-what-im-doing`: Set this if you really want to listen on all interfaces. [env var: PODPING_I_KNOW_WHAT_IM_DOING; default: False]
* `--debug / --no-debug`: Print debug log messages [env var: PODPING_DEBUG; default: False]
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY pyproject.toml poetry.lock ./
RUN pip install --upgrade pip \
&& pip install --user poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-root --no-dev --no-interaction --no-ansi
&& poetry install --no-root --only main --no-interaction --no-ansi

FROM docker.io/python:3.10-slim-bullseye AS app

Expand Down Expand Up @@ -53,7 +53,7 @@ COPY --chown=podping:podping . .
RUN pip install --upgrade pip \
&& pip install poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-dev --no-interaction --no-ansi
&& poetry install --only main --no-interaction --no-ansi

# podping command installs here
ENV PATH="/home/podping/app/.venv/bin:${PATH}"
Expand Down
Loading

0 comments on commit 63487d8

Please sign in to comment.