Commit Graph

500 Commits

Author SHA1 Message Date
William Allen
aa95b1e39e
Merge pull request #11565 from AmineKhaldi/offer_generalization_bringup
Quexington's Offer generalization bringup
2022-05-27 12:27:33 -05:00
dependabot[bot]
9f50bb3059
Bump github/super-linter from 4.9.2 to 4.9.3 (#11626)
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.9.2 to 4.9.3.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md)
- [Commits](https://github.com/github/super-linter/compare/v4.9.2...v4.9.3)

---
updated-dependencies:
- dependency-name: github/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-24 16:22:30 -07:00
xdustinface
9aedb714ee
Merge remote-tracking branch 'chia/main' into offer_generalization_bringup 2022-05-24 03:46:51 +02:00
Kyle Altendorf
0f0bc5bda1
avoid cancelling release/** and long_lived/** (#11519) 2022-05-23 16:13:04 -07:00
dependabot[bot]
8ef6a450c6
Bump actions/setup-python from 2 to 3 (#10949)
* Bump actions/setup-python from 2 to 3

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixup templates for python@v3

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2022-05-23 16:12:23 -07:00
Kyle Altendorf
2c246026c3 test installer on fedora:36, drop 33 2022-05-23 14:44:04 -04:00
Matt Hauff
0592233e9e
pre-commit 2022-05-20 11:57:52 -07:00
Kyle Altendorf
ffc2a42331
disable pytest-monitor by default (#11507)
* disable pytest-monitor by default

* take 2
2022-05-18 09:13:19 -07:00
Kyle Altendorf
c1124d7450
rebuild workflows (#11543) 2022-05-16 13:28:19 -07:00
Kyle Altendorf
f9226fb60d
rename test files that are missing test_ prefix (#10712)
* rename test files that are missing test_ prefix

* update mypy and isort excludes

* skip test_get_host_addr6() in GitHub Actions under macOS

* rebuild workflows
2022-05-16 09:51:00 -07:00
Arvid Norberg
04b543e26a
add test for streamable -> json conversion (#11527)
* add test for streamable -> json conversion

* fixup test
2022-05-15 15:47:17 -07:00
Adam Kelly
298ea9ea20
Resend transactions (#11167)
* Resend transactions

* Don't recheck transactions more frequently than timeout

* Add wallet resend parameter to config, move timeout code out of tx store, but close to call site

* Add a test for wallet transaction resend

* Add test for wallet retry

* isort new files for precommit and update workflows

* Use correct fixture name

* LGTM - remove unused import

Co-authored-by: Earle Lowe <e.lowe@chia.net>
2022-05-14 02:03:10 -07:00
arty
60f372fcaf
Bump clvm_tools_rs version for clvm stepper and add a test (#11418)
* Bump clvm_tools_rs version for clvm stepper and add a test

* lint

* lint

* flake8

* lint

* lint?

* formatting

* More formatting

* More formatting

* hopefully final lint

* A bit more formal python style for the clvm test

* Add typing imports
2022-05-05 09:14:23 -07:00
Mariano Sorgente
e0df18f85d
Ms.hint refactor (#11222)
* Some work on hints

* More cleanup and test_generator_tools

* Change relevant calls

* More refactor and cleanup

* More refactor

* Small fix

* Create wrapper object PeakPostProcessingResult

* Lint and small fix

* Fix a hint bug

* Fix hint update_wallets

* Fix test_full_sync

* pre-commit

* Start with PR review comments

* More efficient iteration

* Remove tx_removals_additions_and_hints

* Revert mozilla ca

* Fix issue with startup
2022-05-05 08:19:57 -07:00
Kyle Altendorf
cf5113ae87
Remove outdated 3.8 upgrade comment (#11385) 2022-05-05 08:18:36 -07:00
Kyle Altendorf
2daa524aaf
add long_lived/** and release/** to (almost) all workflow push triggers (#11439) 2022-05-05 08:51:36 -06:00
Arvid Norberg
1b2d119cc3
optimize hash_coin_list() by sorting pure coin_ids, rather than Coins that need to compute its name multiple times during sorting, and also by sorting the actual binary coin names, not hexadecimal strings (#11421) 2022-05-04 07:24:55 -07:00
Kyle Altendorf
d7f39e48c0
Add Windows to wheel check matrix (#11388) 2022-05-02 13:01:08 -07:00
Kyle Altendorf
795f199597
Correct naming of Windows installer artifacts (the GitHub Actions ones) (#11368)
The wrong artifact was renamed in https://github.com/Chia-Network/chia-blockchain/pull/11096.  This corrects that.
2022-04-29 18:36:05 -07:00
dustinface
984c442b5e
util: Implement Paginator class as interface to access a list by pages (#11247)
* util: Implement `Paginator` class as interface to access a list by pages

* Be less restrictive about page sizes and refactor tests

* Make the pages based of 0 instead of 1 and some more test refactoring

* More tests

* Adjust workflows after rebase

* Introduce `Paginator.create`

* `<=` instead of `- 1`
2022-04-29 18:35:47 -07:00
Kyle Altendorf
fd9ff115e3
tidy installer building (#11077)
* tidy installer building

* -d

* fix rpm build

* try for windows

* Install.ps1 -d

* move the install.ps1 call out to the workflow

* Update build_windows.ps1

* Update build_windows.ps1

* debug non-editable install on windows

* platlib and purelib in pyinstaller pathex

* Revert "debug non-editable install on windows"

This reverts commit 7c04168969.

* Revert "platlib and purelib in pyinstaller pathex"

This reverts commit c5c5cdcd81.

* debug

* debug not-editable

* Revert "debug not-editable"

This reverts commit d4373d8e82.

* a bit more similar

* git -C

* find dlls in site-packages?

* oops

* Revert "debug"

This reverts commit 88090f689f.

* consistently name installer github actions artifact zips

* leave SCM_VERSION here

* Update build-windows-installer.yml
2022-04-29 18:34:48 -07:00
Justin England
518bc3966d
adding workflow for checking for conflicts (#11370)
* adding workflow for checking for conflicts

* proper version number

* proper version number syntax?

* not sure tbh

* trying 2.x

* using newly created labels

* adding static 2.0.0 version

* update based on feedback

* removing label removal

* merge_conflict
2022-04-29 19:33:08 -06:00
Chris Marslender
ad3259e8fd
Mark workspace safe for arm installers (#11339) 2022-04-27 16:10:41 -07:00
Kyle Altendorf
a813e5906c
Match plurality between macOS and Ubuntu test job names (#11317)
* Match plurality between macOS and Ubuntu test job names

With this, searching for `test /` will match both groups of jobs.

* rebuild workflows
2022-04-27 11:40:31 -07:00
Chris Marslender
3abcbf1dfa
Build installers on push to release branches (#11321) 2022-04-26 16:18:16 -05:00
Kyle Altendorf
7892148bdc
Support for Python 3.10 (#9930)
* Support for Python 3.10

* Update install.sh to block Python 3.11

* websockets to 10.1

* Update workflows for Python 3.10

* single quote 3.10

* Enable fedora:35 (py3.10) installer script testing

* rebuild workflows

* fixup test-install-scripts.yml

* add ignore for distutils deprecation in tests for now

* asyncio.get_event_loop().run_until_complete() -> asyncio.run()

* aiohttp==3.8.1 for python 3.10 support

* use ssl.Purpose.CLIENT_AUTH for ssl_context_for_server()

* rebuild workflows

* use ssl_context_for_client() in BlockTools.get_daemon_ssl_context()

* create a client context for the RpcServer to connect to the daemon

* go back to asyncio.get_event_loop().run_until_complete() for now to recover 3.7

* ignore:There is no current event loop:DeprecationWarning

* Ms.plot load perf2 (#10978)

* 2.7 seconds -> 0.45 seconds

* Merge

* Work on create_plots refactor

* Try to fix tests

* Try to fix tests

* Use new functions

* Fix block_tools by adding dir

* Extra argument

* Try to fix cyclic import

* isort

* Drop warning

* Some cleanups around `exclude_final_dir` and directory adding

* Cleanup `min_mainnet_k_size` checks

* Drop unrelated changes

* Fixes after rebase

* Fix cyclic import

* Update tests/block_tools.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Update tests/block_tools.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: xdustinface <xdustinfacex@gmail.com>
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* remove 3.10 avoidance step from debian:bookworm installer testing

* add 3.10 to wheel availability check workflow

* add 3.10 to Install.ps1 supported Python versions for Windows

* add jammy jellyfish to the install script test matrix

* correct ubuntu:jammy job name

* add 22.04 with Python 3.10 to install.sh

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Yostra <straya@chia.net>
Co-authored-by: Mariano Sorgente <3069354+mariano54@users.noreply.github.com>
Co-authored-by: xdustinface <xdustinfacex@gmail.com>
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-04-26 12:37:01 -07:00
Chris Marslender
a983c4a90b
Upload CLI RPMS to s3, create checksums, etc (#11316) 2022-04-26 13:27:14 -05:00
Kyle Altendorf
f976c07c54
also m1 and arm64 for wheel checks (#11277)
* also m1 and arm64 for wheel checks

* account for self-hosted and pre-setup-python of m1 and arm64 runners

* &&

* python3

* report python version

* use docker on arm64 to get multiple python versions

* flush

* report more system information

* except pycryptodome for now

* more variables, simpler logic

* corrections

* switch to [macos, arm64]

* add python version to job name

* separate os and arch matrix axes

* reorder matrixing

* drop workflow name from job name

* oops

* skip python setup in docker cases

* drop the containers

* Update check_dependency_artifacts.py
2022-04-26 10:48:04 -07:00
Chris Marslender
fd7c3c6363
Update names of installer workflows so they get grouped together in the workflow listing (#11310) 2022-04-26 09:01:21 -06:00
Chris Marslender
d750c901b9
Fix targeting for arm64 to not land on native arm64 mac runners (#11309) 2022-04-25 16:50:38 -05:00
Kyle Altendorf
e584513c70
Add Linux Mint to test matrix (#11295)
* add Linux Mint to test matrix

* : -> / for linux mint dockers

* Prepare Linux Mint

* stop testing linux mint 21 since it reports 20.3

* names, comment, and add 19.2

* mint

* manually install requests

* trailing whitespace
2022-04-25 09:20:08 -07:00
Kyle Altendorf
8460a35466
Debian bookworm now uses 3.10, update the comment (#11278) 2022-04-23 20:11:09 -07:00
Kyle Altendorf
3c48224551
check dependency artifacts (#11243)
* check dependency artifacts

* remove commented out code

* find root path relative to script

* fixup stringy pathy mixup

* Update check_dependency_artifacts.py
2022-04-21 17:00:28 -07:00
Kyle Altendorf
aaf3fbc160
generate file lists for workflows instead of wildcard patterns (#11117) 2022-04-21 16:58:07 -07:00
Chris Marslender
527b30e917
Add cli only rpm (#11236)
* Add cli only rpm

* Ensure rvm (fpm) is loaded before running fpm

* Use full path to fpm, since GHA seems to mess up the PATH in the container

* Add back source and add use ruby-3

* Call rpm script with bash, to see if the rvm script works

* Add --depends for libcrypt.so.1
2022-04-20 21:39:51 -07:00
dustinface
25ab0c90cb
github: Fix plot_sync workflows after #10940 merge (#11241) 2022-04-20 15:27:59 -07:00
Gene Hoffman
797a2fb5fe
Remove 3.9.11 for Windows Installer (#11226)
And replace with just 3.9.x
2022-04-20 11:44:52 -07:00
dependabot[bot]
efbac6a05f
Bump actions/upload-artifact from 2 to 3 (#11144)
* Bump actions/upload-artifact from 2 to 3

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Also update runner_templates

* Mark the github workspace as safe (#11159)

* Mark the github workspace as safe

* Move the git config step after git is installed in the test containers

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Chris Marslender <chrismarslender@gmail.com>
2022-04-20 11:40:51 -07:00
Kyle Altendorf
5b044ea497
locate pyinstaller in dev deps rather than build scripts (#11118) 2022-04-20 11:16:53 -07:00
Kyle Altendorf
93da3b727b
Up Windows installer build timeout to 50 minutes (#11107)
Recent runs are mostly low 30s but some are close to 40 and one just timed out.
2022-04-20 11:14:20 -07:00
Kyle Altendorf
b9c9727b75
--module pytest (#10940) 2022-04-20 11:11:08 -07:00
Chris Marslender
7a123afddb
Fix install.sh test for bookworm (#11227) 2022-04-19 15:43:06 -07:00
Chris Marslender
337dbd4e5c
Revert "Revert "Pin mac intel installer to 10.15 (#11209)" (#11210)" (#11211)
This reverts commit d3e73a75ab.
2022-04-19 12:53:59 -06:00
Chris Marslender
d3e73a75ab
Revert "Pin mac intel installer to 10.15 (#11209)" (#11210)
This reverts commit 93a61eece1.
2022-04-18 15:42:09 -06:00
Chris Marslender
93a61eece1
Pin mac intel installer to 10.15 (#11209) 2022-04-18 15:34:27 -06:00
Chris Marslender
7567b4ea9c
Fix filename of latest intel dev installer (#11203) 2022-04-18 10:18:59 -05:00
Chris Marslender
2fbe062e78
Build cli only version of debs (#11166)
* Build cli only version of debs

* Export the vars needed by j2

* Fix paths

* Add symlink to chia in /usr/local/bin/

* Upload the cli only debs to s3

* Add init.py

* Ensure SHA is on the dev build for amd64
2022-04-14 19:32:26 -05:00
Chris Marslender
3ea3a4dc0c
Use get latest release endpoint for plotters, so that we ignore any pre-releases that could be returned by listReleases (#11165) 2022-04-13 18:06:50 -05:00
Chris Marslender
b3a9459fea
Mark the github workspace as safe (#11159)
* Mark the github workspace as safe

* Move the git config step after git is installed in the test containers
2022-04-13 09:35:42 -06:00
Kyle Altendorf
2d4045b9d2
only check the version once in installer build workflows (#11099) 2022-04-08 13:49:21 -07:00