Commit graph

579 commits

Author SHA1 Message Date
Kyle Altendorf
15111cf196
use install action in checks and upload workflow (#13846)
* use install action in checks and upload workflow

* correct python version specification
2022-11-10 14:05:37 -06:00
William Allen
304f7ef447
Fixing test Arch install (#13850) 2022-11-07 12:00:38 -06:00
Amine Khaldi
14ab6a3388
Merge commit '0759bc7d4c3cebf211b14e796f6af153b1ed6022' into checkpoint/main_from_release_1.6.1_0759bc7d4c3cebf211b14e796f6af153b1ed6022 2022-11-05 20:50:17 +01:00
William Allen
63fcfd8000
Fix missing bladebit install for DMG build job (#13829) 2022-11-04 21:01:43 -05:00
William Allen
0759bc7d4c
Adding missing env value for osx torrent creation (#13813) 2022-11-03 19:12:31 -05:00
Kyle Altendorf
e882061648
Add 🚨 to the dependency review workflow (#13782) 2022-11-01 15:44:12 -05:00
Kyle Altendorf
3c255f17c4
always use Chia-Network/actions/setup-python (#13779) 2022-11-01 15:43:54 -05:00
William Allen
2eebd6c448
Fix CI publishing (#13725)
* Fix ref check to github.ref instead of github.event.ref, so its always present (#13661)

* Fixing s3 upload conditional for windows builds (#13658)

Co-authored-by: Chris Marslender <chrismarslender@gmail.com>
2022-10-27 12:26:46 -05:00
Kyle Altendorf
51b951e957
simpler python exclusions (#13667)
* Revert "Set up json files for python versions, to run a more restricted set on private testing repos (#13641)"

This reverts commit aff3cf5c10.

* hard coded poc

* ${{ 'limited' }}

* env.MATRIX_MODE

* via a the existing configure step

* and ad the parameter

* also define the output

* conditional on not being the main repo
2022-10-23 13:59:08 -05:00
Kyle Altendorf
2ab1c4a65f
Create PRETTY_GOOD_PRACTICES.md (#13600)
* Create PRETTY_GOOD_PRACTICES.md

* trim trailing whitespace

* typo touchups

* correct dataclasses heading format

* correct inheritance heading

* drop nft dataclass conversion example

* consume

* manager

* Update CODEOWNERS

* tab ... ?

* Update PRETTY_GOOD_PRACTICES.md

* Update PRETTY_GOOD_PRACTICES.md
2022-10-20 16:08:18 -04:00
William Allen
2f3bd49d71
Fixing s3 upload conditional for windows builds (#13658) 2022-10-19 14:17:58 -05:00
Chris Marslender
1f19ac2de5
Fix ref check to github.ref instead of github.event.ref, so its always present (#13661) 2022-10-19 14:00:53 -05:00
Chris Marslender
aff3cf5c10
Set up json files for python versions, to run a more restricted set on private testing repos (#13641) 2022-10-19 11:51:26 -05:00
Chris Marslender
440b70a152
Fix secret check (#13597)
* Fix secret check for windows/mac (which have more granular checks because of different secret types)

* Make all the workflows use granular secret checks

* Fix whitespace issues
2022-10-04 17:11:21 -05:00
Chris Marslender
be4ada9b24
Add Bladebit prerelease to prerelease mac builds (#13540)
* Add bladebit for pre-release mac builds. Update pyinstaller to include bladebit if the file exists

* Make plotter inclusion conditional based on if they are present for the build or not

* temp: always get pre-release bladebit plotter for testing

* Only include bladebit on pre-release
2022-09-26 18:35:33 -05:00
William Allen
3023daf435
Changing conditional of start-release (#13501) 2022-09-23 17:31:28 -05:00
Kyle Altendorf
199d989352
Avoid the auto-naming mess by saying more about the coverage job in its name (#13492)
```
Coverage (🐧, ubuntu, Ubuntu, ubuntu-latest, 3.9, 3.9, 3.9, 3.9, 3.9)
```
to
```
🐧 Coverage 3.9
```
2022-09-21 22:50:40 -05:00
William Allen
357075235a
Wallentx/prerelease (#13460)
* Adding workflows to support prerelease

Signed-off-by: wallentx <william.allentx@gmail.com>

* Update installer-version.py

Signed-off-by: wallentx <william.allentx@gmail.com>

* using gh cli to upload release artifact

Signed-off-by: wallentx <william.allentx@gmail.com>

* Fixing whitespace

* Adding gh cli workflow uploads

* Removing CLI artifact upload to release page

* Adding separate release artifact upload for Windows

* Fixing windows installer envar

* Moving torrent release upload step

* Adding needed env for artifact upload

* Removing windows installer conditional for installing AWS CLI

Signed-off-by: wallentx <william.allentx@gmail.com>
2022-09-21 14:11:11 -05:00
Kyle Altendorf
a9cce0f6e0
add final coverage handling (#11778)
* add final coverage handling

* switch to development coverage

* correct url

* only run one directory for now

* only 3.10

* delete windows data for now

* drop the 35% failure point

* recover full test matrix

* Use regular coverage

* Update test.yml

* put coverage reporting into an artifact

* oops

* oopsy

* pytest-cov

* maybe

* maybe help out flakes

* farm the spend bundle...

* some more

* more funds for the did test?

* more...

* report chia/ and tests/ separately

* job_timeout = 45 for core

* tidy and disable diff-cover

* remove job_timeout = 45

* --rcfile=.coveragerc

* Update .github/workflows/test.yml

* revert time and blocks

* assert spend is in mempool, lower times and block count

* remove sleep

* lint

* up timeout

* cat test - farm blocks until spend is included

* add spend check for nft endpoints

* fix nft endpoint test

* remove unused code

* 4

Co-authored-by: almog <almogdepaz@gmail.com>
2022-09-16 14:36:37 -05:00
Kyle Altendorf
c02e57c4aa
Update to conflict check v2.0.1 (#13424)
https://github.com/eps1lon/actions-label-merge-conflict/compare/v2.0.0..v2.0.1
2022-09-12 18:37:26 -05:00
Kyle Altendorf
8aa0e7da90
Update test-single.yml (#13419)
Even the blocks and plots cache appears to finish in its entirety in 15 seconds, so the 1 minute 'segment' (not sure exactly what that means) timeout seems reasonable.

https://github.com/actions/cache/issues/810
2022-09-12 16:52:46 -05:00
Kyle Altendorf
789ee4f415
Add .clvm.hex pre-commit check (#12050)
* Add .clvm.hex pre-commit check

* report all results

* stuff

* maybe pass

* add todo

* explicitly define suffixes

* check for (and remove) extra hex and hash files

* remove garbage failure hex and hash files

* provide runner scripts

* matrix pre-commit checks

* maybe now

* more cross platform

* move it

* oops

* shell:

* maybe

* more configurable

* explicitly specify powershell

* tidy

* remove other stuff

* tidy

* remove existing pytest clvm hex etc checker

* add a trailing newline to decompress_block_spends.clvm.hex.sha256tree

* Update activated.ps1

* git config --global core.autocrlf false

* Update pre-commit.yml

* only check `chia/`

* typing_extensions

* typing_extensions

* removing unused typing import

* move top_level out of the rglob

* catchup dl clvm hex files

* Revert "catchup dl clvm hex files"

This reverts commit cd3d4f70b8.

* now
2022-09-12 16:08:55 -05:00
dustinface
030082e350
github: Drop incorrect/leftover statement in test.yml (#13070) 2022-09-08 13:46:31 -05:00
William Allen
d51d74a63c
Bumping codeQL actions to v2 (#13344) 2022-09-06 14:41:27 -05:00
Chris Marslender
16fb814b22
Don't try to sign mac installers when secrets are unavailable (#13166) 2022-08-25 15:59:58 -05:00
Izumi Hoshino
b3b56a64d1
Replace electron-packager with electron-builder (#12953)
* Install electron-builder

* Replaced electron-packager with electron-builder for windows

* Upgraded electron-builder version for mac

* Replaced electron-packager with electron-builder for Linux and integreated deb/rpm dir

* Updated mac installer job

* Fixed app.asar location

* Fixed dmg name for arm64 mac

* Updated installer-version.py

* Updated Linux(deb) installer CI job

* Updated Linux(rpm) installer CI job

* Fixed Linux(rpm) install CI issue

* Revert to use `electron-packager` instead of `electron-builder` for arm64 .deb installer

* Fixed lint errors

* Fixed rpm installer job issue

* Updated Windows installer CI job

* Fixed rpm installer CI job

* Simplified arm64 build

* Added -y option to `apt install` command

* Added `dmg-license` as npm build dependency for MacOS

* Attempt to set product name appropriately for each platform

* Specified productNames in commands

* Fixed arm64 installer issue

* Stopped to create link '/opt/chia/daemon'

* Updated desktop app name for linux installers

* Updated packageName for linux installers

* Abort build jobs when 'cd' fails

* Updated the GUI submodule ref (main:5e52b7f53478d4f39b4a0f0203f41e31dd53aee9)

Co-authored-by: Jeff Cruikshank <jeff@chia.net>
2022-08-24 20:13:40 -05:00
William Allen
e8662c3c48
dependency-review (#13153) 2022-08-24 17:14:44 -05:00
Chris Marslender
8f7a610fb0
Only try and install aws cli if its not already present, since this is really slow on 10.14 (#13098) 2022-08-22 17:00:12 -05:00
Patrick Maslana
1a673c9453
Change the pattern for running pre-commit. Previously, this was using… (#12891)
* Change the pattern for running pre-commit. Previously, this was using a deprecated action workflow.

* Fix the python version for the - uses: ./.github/actions/install step

* Added --all-files and --verbose to the pre-commit run command

* Precommit is already installed as part of the dev dependencies. Removing the installation step.
2022-08-17 01:00:35 -05:00
Chris Marslender
535d21e679
Combine m1 and intel mac installers to a single workflow (#12890)
* Combine m1 and intel mac installers to a single matrix workflow, since we have native m1 runners now and the jobs are nearly identical

* Fix lint issues

* Fix more lint

* Use setup node
2022-08-10 16:04:59 -05:00
William Allen
a4b0f51f3d
Adding required-reviewers as CODEOWNERS (#12812) 2022-08-09 18:27:32 -05:00
Chris Marslender
87179bd673
Update the arm64 deb installer to also use the 1804 builder container (#12864)
* Update the arm64 deb installer to also use the 1804 builder container

* Bring steps more inline with the other docker workflow

* Fix github_workspace variables and make timeouts the same
2022-08-09 16:48:53 -05:00
Chris Marslender
6b0b7d72c1
Swap intel installer to 10.14 runners (#12735)
* Swap intel installer to 10.14 runners and swap to setup python wrapper forced to pyenv (since github's python versions don't support 10.14)

* Self-hosted cleanup steps

* Update to chia-network notarize cli
2022-08-09 13:10:22 -05:00
Izumi Hoshino
48a8347c83
Fixed an issue where it sometimes tried to remove a non-existent win cert file (#12797) 2022-08-05 13:25:09 -05:00
Izumi Hoshino
4c87c99d15
Improve CI performance (#12523)
* Optimized CI execution times

* Fixed a lint error

* Update GUI cache keys for linux

* Added `git status` and `git submodule` to build_xxx-installer.sh
2022-08-04 12:03:50 -05:00
Patrick Maslana
e7c0bcfcb4
Remove test pypi upload step (#12749) 2022-08-02 07:44:53 -07:00
Kyle Altendorf
a0f27537a9
Mark workspace safe in pre-commit workflow (#12690)
https://github.com/Chia-Network/chia-blockchain/runs/7587001625?check_suite_focus=true
2022-08-01 15:18:44 -05:00
Kyle Altendorf
189790ced2
Drop EOL impish and hirsute (#12559) 2022-07-23 22:51:41 -05:00
Kyle Altendorf
11b210809b
run pre-commit across platforms in ci (#12287)
* run pre-commit across platforms in ci

why?  because we have developers working on multiple platforms.

* pre-clean for pre-commit in ci

* chia setup python action

* fixup

* fix windows specific hinting

* no TypeAlias yet

* debug

* debug

* adjust activated.ps1

* verbose pre-commit

* exit better

* Revert "debug"

This reverts commit 93a100afc7.

* less debug

* less `|`

* Update .pre-commit-config.yaml

* Update activated.ps1
2022-07-15 21:08:07 -05:00
Kyle Altendorf
9a4316f96e
fixup (#12292)
* fixup

* add automated option to install action, default true

* try again

* make Install.ps1 accept -a

* oof

* again

* backup
2022-07-07 23:43:22 -05:00
Kyle Altendorf
e5779eb968
Increate macOS Intel installer build timeout to 55 (#12285)
There are plenty of runs in the high 30s and even low 40s lately.
2022-07-07 20:03:21 -05:00
Kyle Altendorf
51c6590cf5
add install action (#12075)
* add install action

* add the actual action file

* update pre-commit to use the install action

* add prefix for arch -arm64 use

* typo

* outputs:

* copy paste correction

* false

* hmm

* there

* if ("$env:INSTALL_PYTHON_VERSION" -ne "")
2022-07-07 19:56:33 -05:00
Kyle Altendorf
4197b39987
use a variable in the workflow for blocks and plots version (#12209)
* use a variable in the workflow for blocks and plots version

* Update benchmarks.yml
2022-07-06 17:24:47 -05:00
Kyle Altendorf
ee19b7e1fd
move py3createtorrent to development dependencies (#12074) 2022-06-28 11:51:04 -05:00
Amine Khaldi
3c52be6a55
Deduplicate pre-commit Python linting from the super linter. (#12084) 2022-06-27 14:57:14 -05:00
Kyle Altendorf
0aa2019526
make pre-commit mypy run use regular venv (via activated shim) (#12077)
* make pre-commit mypy run use regular venv (via activated shim)

* & not Invoke-Expression

* Update activated.ps1

* install for pre-commit

* Update activated.sh

* Update .pre-commit-config.yaml
2022-06-27 12:13:22 -05:00
Kyle Altendorf
5aaf07a686
run pylint directly (#12100)
* run pylint directly

* fixup
2022-06-27 10:53:04 -05:00
Kyle Altendorf
db04a90eef
add workflow emoji (#11988)
* add workflow emoji

* move from job name to workflow name

* move from test-single to test

* some more
2022-06-21 14:51:01 -05:00
Chris Marslender
36c58e9806
Rename all references to "latest beta" to "latest dev" to match the naming on the website (#11878) 2022-06-13 10:16:23 -05:00
Kyle Altendorf
148b0f01d7
Remove flake8 from superlinter workflow (#11844)
flake8 is already run in CI both via pre-commit and directly.
2022-06-08 23:38:41 -05:00