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

Latest updates for wider testing. #945

Merged
merged 20 commits into from
Nov 27, 2023
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/develop-chia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
"UBUNTU_VER=jammy"
"MACHINARIS_STREAM=develop"
"CHIADOG_BRANCH=dev"
"GIGAHORSE_BRANCH=v2.1.1.giga22"
"GIGAHORSE_BRANCH=v2.1.1.giga25"
"CHIA_BRANCH=main"
"PLOTMAN_BRANCH=compress"
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-chia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
build-args: |
"UBUNTU_VER=jammy"
"MACHINARIS_STREAM=latest"
"GIGAHORSE_BRANCH=v2.1.1.giga22"
"GIGAHORSE_BRANCH=v2.1.1.giga25"
"CHIA_BRANCH=main"
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-gigahorse:latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-mmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
"MACHINARIS_STREAM=latest"
"CHIA_BRANCH=latest"
"MMX_BRANCH=v0.10.6"
"GIGAHORSE_BRANCH=v2.1.1.giga22"
"GIGAHORSE_BRANCH=v2.1.1.giga25"
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:latest
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:v${{ github.event.inputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-chia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
"UBUNTU_VER=jammy"
"MACHINARIS_STREAM=test"
"CHIADOG_BRANCH=dev"
"GIGAHORSE_BRANCH=v2.1.1.giga22"
"GIGAHORSE_BRANCH=v2.1.1.giga25"
"CHIA_BRANCH=main"
"PLOTMAN_BRANCH=development"
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
"CHIA_BRANCH=latest"
"PLOTMAN_BRANCH=development"
"MMX_BRANCH=v0.10.6"
"GIGAHORSE_BRANCH=v2.1.1.giga22"
"GIGAHORSE_BRANCH=v2.1.1.giga25"
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:test
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:test
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,23 @@ All notable changes to this project will be documented in this file. The format
## [Unreleased] - 2023-?-?
### Added
- Settings | Plotting | Bladebit now supports "no_direct_io: true" option
- Settings | Plotting | Bladebit now supports "check_plots: 100" option to check at end of plot creation
- Settings | Plotting | Bladebit now supports "check_threshold: 0.6" option to delete invalid plots at end of plot creation
### Changed
- Support for [Gigahorse Recompute Server](https://github.com/guydavis/machinaris/wiki/Gigahorse#recompute-server) (single GPU on fullnode/farmer), shared by multiple Gigahorse harvesters.
### Updated
- [Chia](https://github.com/Chia-Network/chia-blockchain/releases/tag/2.1.1) to v2.1.1 - misc improvements, see their release notes.
- [Gigahorse](https://github.com/madMAx43v3r/chia-gigahorse/releases/tag/v2.1.1.giga22) to v2.1.1.giga22 with C20 compression support.
- [Gigahorse](https://github.com/madMAx43v3r/chia-gigahorse/releases/tag/v2.1.1.giga25) to v2.1.1.giga25 with C20 compression support.
- [Flask](https://flask.palletsprojects.com/en/3.0.x/changes/#version-3-0-0) to v3.0.0 - serves up the Machinaris WebUI.
### Notes
- Regression in Chia binaries (since v2.0.0) ignoring the "-y" parameter on plotnft changes, has broken pool join/leave thru WebUI.

## [2.1.0] - 2023-10-06
### Updated
- [Bladebit](https://github.com/Chia-Network/bladebit/releases/tag/v3.1.0) to v3.1.0 - Supporting hybrid GPU/disk plotting with either 128 GB or 16 GB RAM.
- [Chia](https://github.com/Chia-Network/chia-blockchain/releases/tag/2.1.0) to v2.1.0 - misc improvements, see their release notes.
### Notes
- Regression in Chia binaries (since v2.0.0) ignoring the "-y" parameter on plotnft changes, has broken pool join/leave thru WebUI.

## [2.0.0] - 2023-08-24
### Added
Expand All @@ -30,6 +37,8 @@ All notable changes to this project will be documented in this file. The format
- [HDDCoin](https://github.com/HDDcoin-Network/hddcoin-blockchain/releases/tag/3.0.0) to 3.0.0 based on Chia 1.8.2.
- [MMX](https://github.com/madMAx43v3r/mmx-node/releases/tag/v0.10.6) to v0.10.6.
- [Wheat](https://github.com/wheatnetwork/wheat-blockchain/releases/tag/1.8.2) to v1.8.2.
### Notes
- Regression in Chia binaries ignoring the "-y" parameter on plotnft changes, has broken pool join/leave thru WebUI.

## [1.8.2] - 2023-06-28
## Updated
Expand Down
11 changes: 7 additions & 4 deletions api/schedules/status_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ def gather_services_status():
# Assumes a single blockchain is enabled in this container
blockchain = globals.enabled_blockchains()[0]
if gc['farming_enabled'] or gc['harvesting_enabled']:
if blockchain == 'mmx':
farming_status = mmx_cli.load_farm_info(blockchain).status
else:
farming_status = chia_cli.load_farm_summary(blockchain).status
try: # Deal with Gigahorse users plotting with farming manually disabled due to GPU contention
if blockchain == 'mmx':
farming_status = mmx_cli.load_farm_info(blockchain).status
else:
farming_status = chia_cli.load_farm_summary(blockchain).status
except Exception as ex:
app.logger.error("Skipping farm status for worker due to: {0}".format(str(ex)))
if chiadog_cli.get_chiadog_pid(blockchain):
monitoring_status = "running"
else:
Expand Down
27 changes: 15 additions & 12 deletions api/translations/de_DE/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,36 @@ msgstr ""
"Project-Id-Version: Machinaris VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris"
"/issuesCreation-Date: 2022-02-16 15:00-0700\n"
"POT-Creation-Date: 2023-04-23 17:03-0600\n"
"POT-Creation-Date: 2023-11-05 07:23-0700\n"
"PO-Revision-Date: 2022-02-15 14:29-0700\n"
"Last-Translator: ApfelBirneKreis\n"
"Last-Translator: slowfinger\n"
"Language: de\n"
"Language-Team: de <[email protected]>\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: commands/chia_cli.py:79
msgid "Updated config.yaml failed validation!"
msgstr "Geupdatete config.yaml hat die Validation nicht bestanden"
msgstr "Geupdatete config.yaml hat die Validierung nicht bestanden!"

#: commands/pools_cli.py:76
msgid "No requested pool modifications were sent. Current settings are unchanged."
msgstr ""
"Keine Pool modifikationen wurden gesendet. Vorherige Einstellungen wurden"
" beibehalten"
"Keine Pool Modifikationen wurden gesendet. Vorherige Einstellungen wurden"
" beibehalten."

#: commands/pools_cli.py:166
msgid ""
"Successfully left pool, switching to self-pooling. Please wait a few "
"minutes or more to complete. DO NOT immediately re-submit your request. "
"View the log for details."
msgstr ""
"Pool erfolgreich verlassen. Es wird zu self-pooling gewechselt.Bitte "
"warte ein paar minuten und sende die Anfrage NICHT sofort nochmal."
"Pool erfolgreich verlassen. Es wird zu self-pooling gewechselt. Bitte "
"warte ein paar Minuten und sende die Anfrage NICHT sofort nochmal. Mehr "
"Details findest du in den Logs."

#: commands/pools_cli.py:212
#, python-format
Expand All @@ -44,17 +45,19 @@ msgid ""
" to complete. DO NOT immediately re-submit your request. Be patient! View"
" the log for details."
msgstr ""
"Pool %(pool_url)s erfolgreich beigetreten und PlotNFT erstelltBitte warte"
" ein paar minuten und sende die Anfrage NICHT sofort nochmal."
"Pool %(pool_url)s erfolgreich beigetreten und PlotNFT erstellt. Bitte "
"warte ein paar Minuten und sende die Anfrage NICHT sofort nochmal. Mehr "
"Details findest du in den Logs."

#: commands/pools_cli.py:243
msgid ""
"Successfully created a NFT for self-pooling. Please wait a few minutes "
"or more to complete. DO NOT immediately re-submit your request. Be "
"patient! View the log for details."
msgstr ""
"NFT für Self-pooling erfolgreich erstellt.Bitte warte ein paar minuten "
"und sende die Anfrage NICHT sofort nochmal."
"NFT für Self-pooling erfolgreich erstellt. Bitte warte ein paar Minuten "
"und sende die Anfrage NICHT sofort nochmal. Mehr Details findest du in "
"den Logs."

#: views/ping/resources.py:28
msgid "Pong!"
Expand Down
4 changes: 2 additions & 2 deletions api/translations/fr_FR/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Machinaris VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris"
"/issuesCreation-Date: 2022-02-16 15:00-0700\n"
"POT-Creation-Date: 2023-04-23 17:03-0600\n"
"POT-Creation-Date: 2023-11-05 07:23-0700\n"
"PO-Revision-Date: 2022-02-15 14:29-0700\n"
"Last-Translator: Guy Davis\n"
"Language: fr\n"
Expand All @@ -16,7 +16,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: commands/chia_cli.py:79
msgid "Updated config.yaml failed validation!"
Expand Down
4 changes: 2 additions & 2 deletions api/translations/it_IT/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Machinaris VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris"
"/issuesCreation-Date: 2022-02-16 15:00-0700\n"
"POT-Creation-Date: 2023-04-23 17:03-0600\n"
"POT-Creation-Date: 2023-11-05 07:23-0700\n"
"PO-Revision-Date: 2022-02-15 14:29-0700\n"
"Last-Translator: Fabrizio Cacicia\n"
"Language: it\n"
Expand All @@ -16,7 +16,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: commands/chia_cli.py:79
msgid "Updated config.yaml failed validation!"
Expand Down
4 changes: 2 additions & 2 deletions api/translations/nl_NL/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Machinaris VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris/issuesPOT-"
"Creation-Date: 2022-03-13 10:30-0600\n"
"POT-Creation-Date: 2023-04-23 17:03-0600\n"
"POT-Creation-Date: 2023-11-05 07:23-0700\n"
"PO-Revision-Date: 2022-03-13 10:29-0600\n"
"Last-Translator: Bernie Deprez\n"
"Language: nl_NL\n"
Expand All @@ -16,7 +16,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: commands/chia_cli.py:79
msgid "Updated config.yaml failed validation!"
Expand Down
4 changes: 2 additions & 2 deletions api/translations/pt_PT/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Machinaris VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris"
"/issuesCreation-Date: 2022-02-16 15:00-0700\n"
"POT-Creation-Date: 2023-04-23 17:03-0600\n"
"POT-Creation-Date: 2023-11-05 07:23-0700\n"
"PO-Revision-Date: 2022-02-13 13:45-0700\n"
"Last-Translator: Antonio Casqueiro\n"
"Language: pt\n"
Expand All @@ -16,7 +16,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: commands/chia_cli.py:79
msgid "Updated config.yaml failed validation!"
Expand Down
4 changes: 2 additions & 2 deletions api/translations/zh/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: Machinaris VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/guydavis/machinaris"
"/issuesCreation-Date: 2022-02-16 15:00-0700\n"
"POT-Creation-Date: 2023-04-23 17:03-0600\n"
"POT-Creation-Date: 2023-11-05 07:23-0700\n"
"PO-Revision-Date: 2022-02-15 14:29-0700\n"
"Last-Translator: Guy Davis\n"
"Language: zh\n"
Expand All @@ -16,7 +16,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: commands/chia_cli.py:79
msgid "Updated config.yaml failed validation!"
Expand Down
2 changes: 2 additions & 0 deletions config/plotman.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ plotting:
mode: diskplot # Either enable ramplot, diskplot, or gpuplot.
diskplot_cache: 4GB # If diskplot, amount of RAM to allocate to caching disk writes
diskplot_buckets: 256 # Optionally set a different number of buckets to use for diskplot
#check_plots: 100 # For gpuplot only, will optionally perform given number of validations per new plot
#check_threshold: 0.6 # For gpuplot only, will optionally delete a new plot failing validity check below threshold level (0 to 1)

madmax:
# Classic Madmax plotter; see https://github.com/guydavis/machinaris/wiki/MadMax
Expand Down
4 changes: 2 additions & 2 deletions scripts/forks/chia_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ else
echo "Installing Chia CUDA binaries on ${arch_name}..."
cd /tmp
if [[ "${arch_name}" = "x86_64" ]]; then
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.1.1/chia-blockchain-cli_2.1.1-1_amd64.deb
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.1.2-rc1/chia-blockchain-cli_2.1.2rc1-1_amd64.deb
apt-get install ./chia-blockchain-cli*.deb
else
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.1.1/chia-blockchain-cli_2.1.1-1_arm64.deb
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.1.2-rc1/chia-blockchain-cli_2.1.2rc1-1_arm64.deb
apt-get install ./chia-blockchain-cli*.deb
fi
fi
10 changes: 5 additions & 5 deletions scripts/pull_3rd_party_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

# Bootstrap and Icons
BSI_VERSION=1.11.0
BSI_VERSION=1.11.1
BOOTSTRAP_VERSION=5.3.2
BASEPATH=${JS_LIBS_BASEPATH:-/machinaris/web/static/3rd_party}

Expand All @@ -13,15 +13,15 @@ LEAFLET_VERSION=1.9.4

# List of other css/js links
LIST="
https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.css
https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.js
https://cdn.datatables.net/1.13.6/js/jquery.dataTables.js
https://cdn.datatables.net/1.13.7/css/dataTables.bootstrap5.css
https://cdn.datatables.net/1.13.7/js/dataTables.bootstrap5.js
https://cdn.datatables.net/1.13.7/js/jquery.dataTables.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.js.map
https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/chartjs-adapter-luxon.umd.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/chartjs-plugin-datalabels.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
https://cdn.jsdelivr.net/npm/[email protected].3/build/global/luxon.min.js"
https://cdn.jsdelivr.net/npm/[email protected].4/build/global/luxon.min.js"

mkdir -p $BASEPATH
for url in $LIST ; do
Expand Down
10 changes: 6 additions & 4 deletions web/actions/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
StatPlottingDiskFree,
]

# Don't overload the bar chart with tons of plots paths, randomly sample only this amount
# Don't overload the bar chart with tons of plots paths, show only the first X paths
MAX_ALLOWED_PATHS_ON_BAR_CHART = 20

# Ignore disk stats that are older than this many minutes ago
Expand Down Expand Up @@ -280,9 +280,11 @@ def load_current_disk_usage(disk_type, hostname=None):
free.append(free_row.value) # Leave at GB
continue
if len(paths):
if len(paths) > MAX_ALLOWED_PATHS_ON_BAR_CHART:
paths = sorted(random.sample(paths, MAX_ALLOWED_PATHS_ON_BAR_CHART))
summary_by_worker[host.hostname] = { "paths": paths, "used": used, "free": free}
summary_by_worker[host.hostname] = {
"paths": paths[:MAX_ALLOWED_PATHS_ON_BAR_CHART],
"used": used[:MAX_ALLOWED_PATHS_ON_BAR_CHART],
"free": free[:MAX_ALLOWED_PATHS_ON_BAR_CHART]
}
#app.logger.debug(summary_by_worker.keys())
return summary_by_worker

Expand Down
3 changes: 2 additions & 1 deletion web/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import traceback

from datetime import datetime
from flask import Flask, flash, redirect, render_template, abort, escape, \
from flask import Flask, flash, redirect, render_template, abort, \
request, session, url_for, send_from_directory, make_response
from flask_babel import _, lazy_gettext as _l
from markupsafe import escape

from common.config import globals
from common.utils import fiat
Expand Down
Loading