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

Remove dynamic validator list #8

Closed
wants to merge 94 commits into from
Closed
Show file tree
Hide file tree
Changes from 49 commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
ca51756
initial
Jan 9, 2024
864fff7
remove docker creds and push for testing
Jan 9, 2024
3775de5
remove docker creds and push for testing
Jan 9, 2024
59ca911
add temp credentials
Jan 9, 2024
aa11c57
add temp credentials
Jan 9, 2024
8bc99d7
add temp credentials
Jan 9, 2024
f2ca154
add checkout step
Jan 9, 2024
111ea24
update copy command
Jan 9, 2024
4df70cb
wip
Jan 9, 2024
b2ad3c7
wip
Jan 9, 2024
c5b81f5
testing build of dockerfile
Jan 10, 2024
b3f6eba
testing dockerfile
Jan 10, 2024
c470ac1
updated README.md
Jan 10, 2024
a3a2845
initial commit
Jan 10, 2024
b5ed09f
Merge pull request #1 from gluwa/devnet
zacharyfrederick Jan 10, 2024
fc5e086
added active validator functionality with pablo
Jan 12, 2024
ba05594
updated yaml workflows
Jan 12, 2024
2d8512e
updated yaml workflows
Jan 12, 2024
9b6da1a
Merge pull request #2 from gluwa/dev
pLabarta Jan 17, 2024
cc5e4cc
Update devnet.dockerfile
pLabarta Jan 17, 2024
3ff973d
fix: update how we copy over the secrets
pLabarta Jan 17, 2024
8b2dbcd
Update devnet.yml
pLabarta Jan 17, 2024
80f75c7
Update devnet.yml
pLabarta Jan 17, 2024
a14eb0d
Update devnet.yml
pLabarta Jan 17, 2024
d8460ff
Switch Docker context!!!
pLabarta Jan 18, 2024
66a9dcb
one repo for images, different tags for dev-mainnet
notaturkey Jan 25, 2024
f9a722d
ability to manually trigger
notaturkey Jan 25, 2024
428e403
run this branch
notaturkey Jan 25, 2024
ede5168
fix
notaturkey Jan 25, 2024
8d9a5c2
ready for pr
notaturkey Jan 25, 2024
02b4524
updated workflows to use correct context
Jan 30, 2024
65ecc5c
Merge pull request #3 from gluwa/feature/cifix
zacharyfrederick Jan 30, 2024
deb9315
Merge branch 'devnet' into dev
zacharyfrederick Jan 30, 2024
f064605
Merge pull request #4 from gluwa/dev
zacharyfrederick Jan 30, 2024
6e55309
Merge pull request #6 from gluwa/dev
zacharyfrederick Jan 30, 2024
306b5ad
Merge pull request #7 from gluwa/devnet
pLabarta Jan 30, 2024
50c22db
Update testnet.yml
pLabarta Jan 30, 2024
0bbefe8
Update testnet.yml
pLabarta Jan 30, 2024
6d8bb22
removed dynamic validator list functionality
Feb 14, 2024
1f961fa
add: testnet validator list
pLabarta Feb 26, 2024
c7db366
add: env files, devnet stashes & remove from gitignore
pLabarta Feb 26, 2024
b4bd541
rm: config step from testnet & devnet workflows
pLabarta Feb 26, 2024
a961b4a
Merge branch 'testnet' into dev
pLabarta Feb 26, 2024
ed70999
add: default stash in config
pLabarta Feb 26, 2024
05f2f87
updated runtime to fully execute batch payouts
Mar 4, 2024
54443c6
removed unused logging messages
Mar 4, 2024
10d5924
more cleanup
Mar 4, 2024
be7c007
reverted unneeded changes to sleep timing
Mar 4, 2024
f29129d
update: devnet config & stashes
pLabarta Mar 4, 2024
d7a1243
docker images are built on release/* branch (#15)
notaturkey Mar 25, 2024
eec9592
Enable pre-commit CI
atodorov Apr 1, 2024
80bf17a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 1, 2024
d3c7e1c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 1, 2024
2187ad5
Enable MegaLinter
atodorov Apr 2, 2024
76a06f0
Update README files to satisfy linters
atodorov Apr 2, 2024
f634669
Revert "initial" to bring back deleted LICENSE file
atodorov Apr 2, 2024
874b795
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 2, 2024
073325b
Fix issues reported by ShellCheck
atodorov Apr 2, 2024
e9b2160
Configure top-level permissions in GHA to read-all
atodorov Apr 2, 2024
9e1ac94
Ignore git leaks from upstream commits
atodorov Apr 2, 2024
1102416
Improvements to Dockerfile(s)
atodorov Apr 2, 2024
fb42e6a
removed references to the unused matrix.rs module
zacharyfrederick Apr 3, 2024
dde87f7
remove matrix.rs for megalinter
zacharyfrederick Apr 3, 2024
1b7f9ad
add .jscpd.json configuration file and set threshold to 5
zacharyfrederick Apr 3, 2024
35192e6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 3, 2024
f92dddd
updated .jscpd.json config
zacharyfrederick Apr 3, 2024
239832f
added a healtcheck to the crunch bot and added instructions to the do…
zacharyfrederick Apr 3, 2024
cd4e58c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 3, 2024
99b1f73
update the correct dockerfiles this time
zacharyfrederick Apr 3, 2024
105db58
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 3, 2024
33f2398
Add a git diff as part of MegaLinter's auto-commit output
atodorov Apr 4, 2024
c0c011e
Reformat
atodorov Apr 4, 2024
a0d6c3d
Rename release related workflow to release.yml
atodorov Apr 1, 2024
133844e
Copy over create_release.yml from upstream again where their tests are
atodorov Apr 1, 2024
951fbde
Rename upstream create_release.yml into ci.yml
atodorov Apr 1, 2024
0a2e08d
Enable minimal testing on PRs
atodorov Apr 1, 2024
b402e46
Reformat with cargo fmt
atodorov Apr 4, 2024
5ca95de
Stricter checks in CI
atodorov Apr 4, 2024
5478a29
Remove unused imports
atodorov Apr 4, 2024
a023031
Silence warnings for unused variables
atodorov Apr 4, 2024
cbaf966
Remove unnecessary mut
atodorov Apr 4, 2024
a793d5e
Allow 2 unused methods from upstream implementation
atodorov Apr 4, 2024
33817f1
Add rust-toolchain.toml and use the same rustc version in CI
atodorov Apr 4, 2024
f66aae4
Reformat again with rustc 1.77.0
atodorov Apr 4, 2024
3d3811b
Apply suggestions from clippy
atodorov Apr 4, 2024
74973b8
Adjust CRUNCH_CONFIG_FILENAME to point to an existing file
atodorov Apr 4, 2024
bb4081c
Collect and upload code coverage when executing unit tests
atodorov Apr 4, 2024
4f8c0f2
Enable Dependabot
atodorov Apr 3, 2024
775590e
Bump taiki-e/install-action from 2.27.14 to 2.32.7
dependabot[bot] Apr 5, 2024
8c3026c
Bump azure/login from 1 to 2
dependabot[bot] Apr 5, 2024
da595cb
Update base64 requirement from 0.13.0 to 0.22.0
dependabot[bot] Apr 5, 2024
c2784f6
Update env_logger requirement from 0.9.3 to 0.11.3
dependabot[bot] Apr 5, 2024
95016cf
Update async-recursion requirement from 0.3.2 to 1.1.0
dependabot[bot] Apr 5, 2024
1359d24
Update reqwest requirement from 0.11 to 0.12
dependabot[bot] Apr 5, 2024
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
88 changes: 0 additions & 88 deletions .env.example

This file was deleted.

83 changes: 0 additions & 83 deletions .github/workflows/create_release.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/devnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Devnet ci

on:
workflow_dispatch:
push:
branches:
- 'devnet'
jobs:
devnet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up account private key
run: |
echo "${{ secrets.DEVNET_CRUNCH_PK }}" >> environments/cc3/devnet/.private.seed

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: docker/devnet.dockerfile
push: true
tags: gluwa/crunch:devnet-${{github.run_id}}


47 changes: 47 additions & 0 deletions .github/workflows/mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Mainnet ci

on:
workflow_dispatch:
push:
branches:
- 'mainnet'
jobs:
mainnet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- shell: bash
env:
CRUNCH_AGENT_PK: ${{ secrets.MAINNET_CRUNCH_PK }}
run: |
touch environments/cc3/mainnet/.private.seed \
&& echo $CRUNCH_AGENT_PK > environments/cc3/mainnet/.private.seed
- shell: bash
env:
CRUNCH_AGENT_CONFIG: ${{ secrets.MAINNET_CRUNCH_CONFIG }}
run: |
touch environments/cc3/mainnet/.env \
&& echo $CRUNCH_AGENT_CONFIG > environments/cc3/mainnet/.env

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: docker/mainnet.dockerfile
push: true
tags: gluwa/crunch:mainnet-${{github.run_id}}

21 changes: 0 additions & 21 deletions .github/workflows/release_bot.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Testnet CI

on:
workflow_dispatch:
push:
branches:
- 'testnet'
jobs:
testnet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up account private key
run: |
echo "${{ secrets.TESTNET_CRUNCH_PK }}" >> environments/cc3/testnet/.private.seed

- name: Check settings
run: |
ls -a environments/cc3/testnet/

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: docker/testnet.dockerfile
push: true
tags: gluwa/crunch:testnet-${{github.run_id}}


6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/target
/.vscode
Cargo.lock
.env
/.env
.private.seed
bump-version.sh
bump-version.sh
/environments/**/.private.seed
**/.private.seed
1 change: 0 additions & 1 deletion .private.seed.example

This file was deleted.

Loading