Skip to content

Commit 5ae6b34

Browse files
author
Kadena Kadena
committed
Update CI
- use kda-community - disable cabal-cache
1 parent 4233e0b commit 5ae6b34

File tree

4 files changed

+114
-163
lines changed

4 files changed

+114
-163
lines changed

.github/workflows/applications.yml

Lines changed: 97 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ on:
2424
- 'gh-readonly-queue/**'
2525

2626
env:
27-
AWS_ACCESS_KEY_ID: ${{ secrets.kadena_cabal_cache_aws_access_key_id }}
28-
AWS_SECRET_ACCESS_KEY: ${{ secrets.kadena_cabal_cache_aws_secret_access_key }}
27+
AWS_ACCESS_KEY_ID: ${{ secrets.kda_community_cabal_cache_aws_access_key_id }}
28+
AWS_SECRET_ACCESS_KEY: ${{ secrets.kda_community_cabal_cache_aws_secret_access_key }}
2929
AWS_DEFAULT_REGION: us-east-1
3030

31-
S3_ARTIFACT_BUCKET: kadena-cabal-cache
31+
S3_ARTIFACT_BUCKET: kda-community-cabal-cache
3232
S3_ARTIFACT_FOLDER: chainweb-node
3333

3434
USE_CABAL_CACHE: true
@@ -192,29 +192,6 @@ jobs:
192192
echo "config.outputs.matrix=${{ steps.set-matrix.outputs.matrix }}"
193193
echo "::endgroup::"
194194
195-
# ########################################################################## #
196-
# Download Development Database for Testing
197-
#
198-
# Uploading artifacts is slow, but downloading is fast.
199-
# For the development database that pays off.
200-
201-
sync-chain-db:
202-
name: Download test chain database
203-
needs: [config]
204-
runs-on: 'ubuntu-latest'
205-
strategy:
206-
fail-fast: false
207-
env:
208-
DB_SNAPSHOT_URI: 's3://chainweb-chain-db/${{ needs.config.outputs.chainweb-network-version }}/pipeline-db/rocksDb'
209-
steps:
210-
- name: Sync chain database from S3
211-
run: aws s3 sync "$DB_SNAPSHOT_URI" db/0/rocksDb --delete --exclude=LOCK
212-
- name: Store chain database as artifact
213-
uses: actions/upload-artifact@v4
214-
with:
215-
name: chain-db-${{ needs.config.outputs.chainweb-network-version }}
216-
path: db
217-
218195
# ########################################################################## #
219196
# Build and Upload Artifacts
220197

@@ -349,12 +326,12 @@ jobs:
349326
if: env.USE_CABAL_CACHE == 'true'
350327
uses: larskuhtz/cabal-cache-action@4b537195b33898fcd9adc62cee2a44986fd7b1b6
351328
with:
352-
bucket: "kadena-cabal-cache"
329+
bucket: "kda-community-cabal-cache"
353330
region: "us-east-1"
354331
folder: "packages/${{ matrix.os }}"
355332
store_path: ${{ steps.setup.outputs.cabal-store }}
356-
aws_access_key_id: "${{ secrets.kadena_cabal_cache_aws_access_key_id }}"
357-
aws_secret_access_key: "${{ secrets.kadena_cabal_cache_aws_secret_access_key }}"
333+
aws_access_key_id: "${{ secrets.kda_community_cabal_cache_aws_access_key_id }}"
334+
aws_secret_access_key: "${{ secrets.kda_community_cabal_cache_aws_secret_access_key }}"
358335
- name: Install build dependencies
359336
run: cabal build chainweb --only-dependencies
360337
- name: Build chainweb library
@@ -561,7 +538,7 @@ jobs:
561538
runs-on: ${{ matrix.os }}
562539
env:
563540
BENCH_FILE: results.${{ github.run_id }}.${{ github.run_number }}.json
564-
BENCH_BUCKET: kadena-cabal-cache
541+
BENCH_BUCKET: kda-community-cabal-cache
565542
BENCH_FOLDER: chainweb-benchmark-results/${{ matrix.ghc }}/${{ matrix.os }}
566543
ARTIFACTS_NAME: chainweb-applications.${{ matrix.use-freeze-file }}.${{ matrix.ghc }}.${{ matrix.os }}
567544
steps:
@@ -582,97 +559,98 @@ jobs:
582559
run: bench --json $BENCH_FILE +RTS -N
583560
- name: Upload results
584561
run: |
585-
aws s3 cp $BENCH_FILE s3://$BENCH_BUCKET/$BENCH_FOLDER/
586-
aws s3api put-object-acl --bucket $BENCH_BUCKET --key=$BENCH_FOLDER/$BENCH_FILE --acl public-read
562+
echo "Not uploading results"
563+
# aws s3 cp $BENCH_FILE s3://$BENCH_BUCKET/$BENCH_FOLDER/
564+
# aws s3api put-object-acl --bucket $BENCH_BUCKET --key=$BENCH_FOLDER/$BENCH_FILE --acl public-read
587565
588566
# ########################################################################## #
589567
# Validate Devnet Database and Replay Pact History
590568

591-
validate-devnet-database:
592-
name: Validate Devnet Database Snapshot and Replay Pact History
593-
needs: [config, sync-chain-db, build]
594-
strategy:
595-
fail-fast: false
596-
matrix: ${{ fromJson(needs.config.outputs.matrix) }}
597-
runs-on: ${{ matrix.os }}
598-
env:
599-
ARTIFACTS_NAME: chainweb-applications.${{ matrix.use-freeze-file }}.${{ matrix.ghc }}.${{ matrix.os }}
600-
steps:
601-
- uses: actions/checkout@v4
602-
- name: Download ${{ needs.config.outputs.chainweb-network-version }} chain database artifact
603-
uses: actions/download-artifact@v4
604-
with:
605-
name: chain-db-${{ needs.config.outputs.chainweb-network-version }}
606-
path: db
607-
- name: Download build artifacts
608-
uses: actions/download-artifact@v4
609-
with:
610-
name: ${{ env.ARTIFACTS_NAME }}
611-
path: .
612-
- name: Install chainweb from artifacts
613-
uses: ./.github/actions/install-chainweb-from-artifacts
614-
with:
615-
os: ${{ matrix.os }}
616-
ghc: ${{ matrix.ghc }}
617-
use-freeze-file: ${{ matrix.use-freeze-file }}
618-
- name: Write chainweb-node configuration
619-
run: |
620-
cat >> config.yaml <<EOF
621-
databaseDirectory: "db"
622-
chainweb:
623-
onlySyncPact: true
624-
logGas: true
625-
chainwebVersion: ${{ needs.config.outputs.chainweb-network-version }}
626-
validateHashesOnReplay: true
627-
p2p:
628-
peer:
629-
interface: localhost
630-
hostaddress:
631-
port: 4445
632-
private: true
633-
ignoreBootstrapNodes: true
634-
transactionIndex:
635-
enabled: false
636-
mempoolP2p:
637-
enabled: false
638-
cuts:
639-
pruneChainDatabase: headers-checked
640-
logging:
641-
telemetryBackend:
642-
enabled: false
643-
configuration:
644-
color: 'true'
645-
backend:
646-
color: 'true'
647-
filter:
648-
rules:
649-
- value: mempool
650-
key: component
651-
level: warn
652-
- value: connection-manager
653-
key: component
654-
level: warn
655-
- value: sync
656-
key: sub-component
657-
level: warn
658-
- value: MempoolAccess
659-
key: sub-component
660-
level: warn
661-
- value: PactService
662-
key: logger
663-
level: warn
664-
- value: Checkpointer
665-
key: logger
666-
level: warn
667-
default: info
668-
EOF
669-
- name: Validate database and replay pact transactions
670-
timeout-minutes: 6
671-
run: |
672-
chainweb-node +RTS -T -H1G -A64M -RTS \
673-
--config-file=config.yaml \
674-
--log-level=info \
675-
--disable-pow
569+
# validate-devnet-database:
570+
# name: Validate Devnet Database Snapshot and Replay Pact History
571+
# needs: [config, sync-chain-db, build]
572+
# strategy:
573+
# fail-fast: false
574+
# matrix: ${{ fromJson(needs.config.outputs.matrix) }}
575+
# runs-on: ${{ matrix.os }}
576+
# env:
577+
# ARTIFACTS_NAME: chainweb-applications.${{ matrix.use-freeze-file }}.${{ matrix.ghc }}.${{ matrix.os }}
578+
# steps:
579+
# - uses: actions/checkout@v4
580+
# - name: Download ${{ needs.config.outputs.chainweb-network-version }} chain database artifact
581+
# uses: actions/download-artifact@v4
582+
# with:
583+
# name: chain-db-${{ needs.config.outputs.chainweb-network-version }}
584+
# path: db
585+
# - name: Download build artifacts
586+
# uses: actions/download-artifact@v4
587+
# with:
588+
# name: ${{ env.ARTIFACTS_NAME }}
589+
# path: .
590+
# - name: Install chainweb from artifacts
591+
# uses: ./.github/actions/install-chainweb-from-artifacts
592+
# with:
593+
# os: ${{ matrix.os }}
594+
# ghc: ${{ matrix.ghc }}
595+
# use-freeze-file: ${{ matrix.use-freeze-file }}
596+
# - name: Write chainweb-node configuration
597+
# run: |
598+
# cat >> config.yaml <<EOF
599+
# databaseDirectory: "db"
600+
# chainweb:
601+
# onlySyncPact: true
602+
# logGas: true
603+
# chainwebVersion: ${{ needs.config.outputs.chainweb-network-version }}
604+
# validateHashesOnReplay: true
605+
# p2p:
606+
# peer:
607+
# interface: localhost
608+
# hostaddress:
609+
# port: 4445
610+
# private: true
611+
# ignoreBootstrapNodes: true
612+
# transactionIndex:
613+
# enabled: false
614+
# mempoolP2p:
615+
# enabled: false
616+
# cuts:
617+
# pruneChainDatabase: headers-checked
618+
# logging:
619+
# telemetryBackend:
620+
# enabled: false
621+
# configuration:
622+
# color: 'true'
623+
# backend:
624+
# color: 'true'
625+
# filter:
626+
# rules:
627+
# - value: mempool
628+
# key: component
629+
# level: warn
630+
# - value: connection-manager
631+
# key: component
632+
# level: warn
633+
# - value: sync
634+
# key: sub-component
635+
# level: warn
636+
# - value: MempoolAccess
637+
# key: sub-component
638+
# level: warn
639+
# - value: PactService
640+
# key: logger
641+
# level: warn
642+
# - value: Checkpointer
643+
# key: logger
644+
# level: warn
645+
# default: info
646+
# EOF
647+
# - name: Validate database and replay pact transactions
648+
# timeout-minutes: 6
649+
# run: |
650+
# chainweb-node +RTS -T -H1G -A64M -RTS \
651+
# --config-file=config.yaml \
652+
# --log-level=info \
653+
# --disable-pow
676654

677655
# ########################################################################## #
678656
# Run Unit Tests
@@ -686,7 +664,7 @@ jobs:
686664
matrix: ${{ fromJson(needs.config.outputs.matrix) }}
687665
env:
688666
TEST_RESULT_FILE: test-results.${{ github.run_id }}.${{ github.run_number }}.json
689-
TEST_RESULT_BUCKET: kadena-cabal-cache
667+
TEST_RESULT_BUCKET: kda-community-cabal-cache
690668
TEST_RESULT_FOLDER: chainweb-test-results/ghc-${{ matrix.ghc }}/${{ matrix.os }}
691669
ARTIFACTS_NAME: chainweb-applications.${{ matrix.use-freeze-file }}.${{ matrix.ghc }}.${{ matrix.os }}
692670
steps:
@@ -836,7 +814,7 @@ jobs:
836814
id: meta
837815
uses: docker/metadata-action@v4
838816
with:
839-
images: ghcr.io/kadena-io/chainweb-node
817+
images: ghcr.io/kda-community/chainweb-node
840818
flavor: |
841819
suffix=${{ steps.frozen-tag.outputs.value }}${{ needs.config.outputs.tag-suffix }}
842820
tags: |
@@ -874,29 +852,3 @@ jobs:
874852
labels: ${{ steps.meta.outputs.labels }}
875853
cache-from: type=local,src=/tmp/.buildx-cache
876854
cache-to: type=local,dest=/tmp/.buildx-cache
877-
878-
# ########################################################################## #
879-
# Trigger Integration Tests Run
880-
881-
integration-tests:
882-
name: Run Integration Tests from remote repo
883-
needs: [ config, docker-image ]
884-
runs-on: ubuntu-latest
885-
steps:
886-
- name: Get auth token
887-
uses: Nastaliss/get-github-app-pat@683b0b370911354c411dbbc586b7c64f32b2b850
888-
id: githubAppAuth
889-
with:
890-
app-id: ${{ secrets.GH_KADENAINFRA_APP_ID }}
891-
app-installation-id: ${{ secrets.GH_KADENAINFRA_APP_INSTALLATION_ID }}
892-
app-private-key: ${{ secrets.GH_KADENAINFRA_APP_PRIVATE_KEY }}
893-
- name: Start remote integration tests
894-
uses: the-actions-org/[email protected]
895-
with:
896-
workflow: Integration Tests on devnet chain
897-
token: ${{ steps.githubAppAuth.outputs.access-token }}
898-
inputs: '{ "chainweb_node_container_id" : "sha-${{ needs.config.outputs.git-sha-short }}${{ needs.docker-image.outputs.docker-suffix }}" }'
899-
ref: refs/heads/master
900-
repo: kadena-io/integration-tests
901-
display-workflow-run-url: true
902-
wait-for-completion: true # here you could make this pipeline wait them out

.github/workflows/nix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v3
2121

2222
- name: Set up Nix with caching
23-
uses: kadena-io/setup-nix-with-cache/[email protected]
23+
uses: kda-community/setup-nix-with-cache/[email protected]
2424
with:
2525
cache_url: s3://nixcache.chainweb.com?region=us-east-1
2626
signing_private_key: ${{ secrets.NIX_CACHE_PRIVATE_KEY }}
@@ -34,7 +34,7 @@ jobs:
3434
aws-region: us-east-1
3535

3636
- name: Give root user AWS credentials
37-
uses: kadena-io/setup-nix-with-cache/[email protected]
37+
uses: kda-community/setup-nix-with-cache/[email protected]
3838

3939
- name: Build and cache artifacts
4040
run: |

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
# echo "VERSION_OLD=${{ steps.tag_version.outputs.old_tag }}" >> $GITHUB_OUTPUT
7474
echo "VERSION_NEW=${{ inputs.new_tag }}" >> $GITHUB_OUTPUT
7575
echo "VERSION_OLD=${{ inputs.old_tag }}" >> $GITHUB_OUTPUT
76-
echo "IMAGE=ghcr.io/kadena-io/chainweb-node:sha-$SHORT_REVISION-frozen" >> $GITHUB_OUTPUT
76+
echo "IMAGE=ghcr.io/kda-community/chainweb-node:sha-$SHORT_REVISION-frozen" >> $GITHUB_OUTPUT
7777
7878
- uses: actions/checkout@v4
7979
with:
@@ -98,7 +98,7 @@ jobs:
9898
echo "UBUNTU_VERSION=$VERSION_OS" >> $GITHUB_OUTPUT
9999
100100
chainweb-node-dockerhub:
101-
uses: kadena-io/chainweb-node-docker/.github/workflows/dockerhub_release.yml@master
101+
uses: kda-community/chainweb-node-docker/.github/workflows/dockerhub_release.yml@master
102102
needs: release_vars
103103
with:
104104
SHORT_SHA: ${{ needs.release_vars.outputs.SHORT_REVISION }}
@@ -142,18 +142,18 @@ jobs:
142142
run: |
143143
docker pull $IMAGE
144144
docker run --rm $IMAGE --version
145-
docker tag $IMAGE ghcr.io/kadena-io/chainweb-node/ubuntu:$VERSION_NEW
146-
docker tag $IMAGE ghcr.io/kadena-io/chainweb-node/ubuntu:latest
147-
docker tag $IMAGE ghcr.io/kadena-io/chainweb-node:latest
145+
docker tag $IMAGE ghcr.io/kda-community/chainweb-node/ubuntu:$VERSION_NEW
146+
docker tag $IMAGE ghcr.io/kda-community/chainweb-node/ubuntu:latest
147+
docker tag $IMAGE ghcr.io/kda-community/chainweb-node:latest
148148
149149
docker image ls
150150
151-
docker image push --all-tags ghcr.io/kadena-io/chainweb-node/ubuntu
152-
docker image push --all-tags ghcr.io/kadena-io/chainweb-node
151+
docker image push --all-tags ghcr.io/kda-community/chainweb-node/ubuntu
152+
docker image push --all-tags ghcr.io/kda-community/chainweb-node
153153
154154
digest1=$(docker inspect $IMAGE --format '{{ .RepoDigests }}')
155-
digest2=$(docker inspect ghcr.io/kadena-io/chainweb-node/ubuntu:$VERSION_NEW --format '{{ .RepoDigests }}')
156-
digest3=$(docker inspect ghcr.io/kadena-io/chainweb-node/ubuntu:latest --format '{{ .RepoDigests }}')
155+
digest2=$(docker inspect ghcr.io/kda-community/chainweb-node/ubuntu:$VERSION_NEW --format '{{ .RepoDigests }}')
156+
digest3=$(docker inspect ghcr.io/kda-community/chainweb-node/ubuntu:latest --format '{{ .RepoDigests }}')
157157
if [[ "$digest1" != "$digest2" || "$digest2" != "$digest3" ]]; then
158158
echo "GHCR_DIGEST=GHCR digests do not compare correctly" >> $GITHUB_ENV
159159
exit 1
@@ -193,9 +193,9 @@ jobs:
193193
pwd
194194
ls
195195
sed "/$VERSION_OLD\s/,\$d" CHANGELOG.md | sed "/$VERSION_NEW (20/d" | sed '/\sChangelog/d' | tee CHANGELOG.md
196-
echo 'Official release: https://github.com/kadena-io/chainweb-node/releases/tag/${{ env.VERSION_NEW }}
196+
echo 'Official release: https://github.com/kda-community/chainweb-node/releases/tag/${{ env.VERSION_NEW }}
197197
198-
For full details refer to the [Changelog](https://github.com/kadena-io/chainweb-node/blob/master/CHANGELOG.md)
198+
For full details refer to the [Changelog](https://github.com/kda-community/chainweb-node/blob/master/CHANGELOG.md)
199199
200200
### Container Images:
201201
@@ -205,10 +205,10 @@ jobs:
205205
docker pull kadena/chainweb-node:${{ env.VERSION_NEW }}
206206
```
207207
208-
* [Binary-only $UBUNTU_VERSION ](ghcr.io/kadena-io/chainweb-node/ubuntu:${{ env.VERSION_NEW }})
208+
* [Binary-only $UBUNTU_VERSION ](ghcr.io/kda-community/chainweb-node/ubuntu:${{ env.VERSION_NEW }})
209209
Image Digest: `${{ env.GHCR_DIGEST }}`
210210
```sh
211-
docker pull ghcr.io/kadena-io/chainweb-node/ubuntu:${{ env.VERSION_NEW }}
211+
docker pull ghcr.io/kda-community/chainweb-node/ubuntu:${{ env.VERSION_NEW }}
212212
```
213213
214214
### Ubuntu Binaries:
@@ -225,7 +225,7 @@ jobs:
225225
```sh
226226
apt-get install ca-certificates libgmp10 libssl3 libsnappy1v5 zlib1g liblz4-1 libbz2-1.0 libgflags2.2 zstd libmpfr6 locales
227227
```
228-
228+
229229
' >> CHANGELOG.md
230230
cat CHANGELOG.md
231231

0 commit comments

Comments
 (0)