Skip to content

Commit 777a545

Browse files
Merge pull request #8 from ar-io/PE-6818_kinesis_rebase
Kinesis error handling and more robust server restart script
2 parents cec7723 + cfde1ed commit 777a545

File tree

201 files changed

+11247
-4196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+11247
-4196
lines changed

.github/workflows/dev-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
# Releases are performed via a workflow dispatch
7676
if: github.event_name == 'workflow_dispatch'
7777
runs-on: ubuntu-latest
78-
timeout-minutes: 5
78+
timeout-minutes: 30
7979
concurrency:
8080
group: release
8181
steps:
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
name: 🏗️ Build and Push Docker images to devnet ECR
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths:
8+
- "servers/**"
9+
- ".github/workflows/devnet-ecr-push.yml"
10+
11+
jobs:
12+
build-and-push-cu:
13+
runs-on: ubuntu-latest
14+
env:
15+
REPOSITORY: devnet-ecr
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v1
22+
23+
- name: Extract shortened commit hash
24+
id: vars
25+
run: echo "COMMIT_HASH=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
26+
27+
- name: Log in to Amazon ECR
28+
id: login-devnet-ecr
29+
uses: aws-actions/amazon-ecr-login@v1
30+
with:
31+
mask-password: true
32+
skip-logout: true
33+
registry-type: private
34+
registries: ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}
35+
env:
36+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_AO_DEVNET }}
37+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_AO_DEVNET }}
38+
AWS_REGION: ${{ secrets.AWS_REGION_AO_DEVNET }}
39+
40+
- name: Build and push CU Docker image
41+
run: |
42+
docker build -t ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}.dkr.ecr.${{ secrets.AWS_REGION_AO_DEVNET }}.amazonaws.com/$REPOSITORY:ao-cu-$COMMIT_HASH -f servers/cu/Dockerfile servers/cu/
43+
docker push ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}.dkr.ecr.${{ secrets.AWS_REGION_AO_DEVNET }}.amazonaws.com/$REPOSITORY:ao-cu-$COMMIT_HASH
44+
45+
build-and-push-mu:
46+
env:
47+
REPOSITORY: devnet-ecr
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout code
51+
uses: actions/checkout@v2
52+
53+
- name: Set up Docker Buildx
54+
uses: docker/setup-buildx-action@v1
55+
56+
- name: Extract shortened commit hash
57+
id: vars
58+
run: echo "COMMIT_HASH=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
59+
60+
- name: Log in to Amazon ECR
61+
id: login-devnet-ecr
62+
uses: aws-actions/amazon-ecr-login@v1
63+
with:
64+
mask-password: true
65+
skip-logout: true
66+
registry-type: private
67+
registries: ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}
68+
env:
69+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_AO_DEVNET }}
70+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_AO_DEVNET }}
71+
AWS_REGION: ${{ secrets.AWS_REGION_AO_DEVNET }}
72+
73+
- name: Build and push MU Docker image
74+
run: |
75+
docker build -t ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}.dkr.ecr.${{ secrets.AWS_REGION_AO_DEVNET }}.amazonaws.com/$REPOSITORY:ao-mu-$COMMIT_HASH -f servers/mu/Dockerfile servers/mu/
76+
docker push ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}.dkr.ecr.${{ secrets.AWS_REGION_AO_DEVNET }}.amazonaws.com/$REPOSITORY:ao-mu-$COMMIT_HASH
77+
78+
build-and-push-su:
79+
env:
80+
REPOSITORY: devnet-ecr
81+
runs-on: ubuntu-latest
82+
steps:
83+
- name: Checkout code
84+
uses: actions/checkout@v2
85+
86+
- name: Set up Docker Buildx
87+
uses: docker/setup-buildx-action@v1
88+
89+
- name: Extract shortened commit hash
90+
id: vars
91+
run: echo "COMMIT_HASH=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
92+
93+
- name: Log in to Amazon ECR
94+
id: login-devnet-ecr
95+
uses: aws-actions/amazon-ecr-login@v1
96+
with:
97+
mask-password: true
98+
skip-logout: true
99+
registry-type: private
100+
registries: ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}
101+
env:
102+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_AO_DEVNET }}
103+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_AO_DEVNET }}
104+
AWS_REGION: ${{ secrets.AWS_REGION_AO_DEVNET }}
105+
106+
- name: Build and push SU Docker image
107+
run: |
108+
docker build -t ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}.dkr.ecr.${{ secrets.AWS_REGION_AO_DEVNET }}.amazonaws.com/$REPOSITORY:ao-su-$COMMIT_HASH -f servers/su/Dockerfile.x86 servers/su/
109+
docker push ${{ secrets.AWS_ACCOUNT_ID_AO_DEVNET }}.dkr.ecr.${{ secrets.AWS_REGION_AO_DEVNET }}.amazonaws.com/$REPOSITORY:ao-su-$COMMIT_HASH
110+
111+
update-devnet-image-tags:
112+
runs-on: ubuntu-latest
113+
needs:
114+
- build-and-push-cu
115+
- build-and-push-mu
116+
- build-and-push-su
117+
118+
steps:
119+
- name: Checkout Helmfile Repository
120+
run: |
121+
git clone https://$GITHUB_USERNAME:${{ secrets.AO_TO_CHARTS_PAT }}@github.com/permaweb/charts.git
122+
env:
123+
GITHUB_USERNAME: bredamatt
124+
125+
- name: Extract shortened commit hash
126+
id: vars
127+
run: echo "COMMIT_HASH=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
128+
129+
- name: Update commit-sha.yaml
130+
env:
131+
TRUNCATED_SHA: ${{ env.COMMIT_HASH }}
132+
run: |
133+
cd charts
134+
sed -i "s/commitSHA: \".*\"/commitSHA: \"${TRUNCATED_SHA}\"/" helmfile/devnet/commit-sha.yaml
135+
git config user.name "github-actions[bot]"
136+
git config user.email "github-actions[bot]@users.noreply.github.com"
137+
git commit -am "fix: from ao-repo - update commit-sha to ${TRUNCATED_SHA} for syncing latest image tags"
138+
git push https://${{ secrets.AO_TO_CHARTS_PAT }}@github.com/permaweb/charts.git main
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: 🔖🛠 Test & Deploy Protocol Tag Utils
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- "protocol-tag-utils/**"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- "protocol-tag-utils/**"
14+
15+
# Perform a release using a workflow dispatch
16+
workflow_dispatch:
17+
inputs:
18+
version:
19+
description: "semver version to bump to"
20+
required: true
21+
22+
defaults:
23+
run:
24+
shell: bash
25+
26+
jobs:
27+
28+
test:
29+
if: github.event_name != 'workflow_dispatch'
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: ⬇️ Checkout repo
33+
uses: actions/checkout@v4
34+
35+
- name: ⎔ Setup node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
40+
- name: 📥 Download deps
41+
working-directory: protocol-tag-utils
42+
run: |
43+
npm i
44+
45+
- name: ⚡ Run Tests
46+
working-directory: protocol-tag-utils
47+
run: |
48+
npm test
49+
env:
50+
CI: true
51+
52+
release:
53+
# Releases are performed via a workflow dispatch
54+
if: github.event_name == 'workflow_dispatch'
55+
runs-on: ubuntu-latest
56+
concurrency:
57+
group: release
58+
steps:
59+
- name: ⬇️ Checkout repo
60+
uses: actions/checkout@v4
61+
with:
62+
fetch-depth: 0
63+
ref: main
64+
65+
- name: ⎔ Setup node
66+
uses: actions/setup-node@v4
67+
with:
68+
node-version: 20
69+
registry-url: "https://registry.npmjs.org"
70+
71+
- name: 👀 Env
72+
run: |
73+
echo "Event name: ${{ github.event_name }}"
74+
echo "Git ref: ${{ github.ref }}"
75+
echo "GH actor: ${{ github.actor }}"
76+
echo "SHA: ${{ github.sha }}"
77+
VER=`node --version`; echo "Node ver: $VER"
78+
VER=`npm --version`; echo "npm ver: $VER"
79+
80+
- name: 🤓 Set Git User
81+
run: |
82+
git config --global user.name "${{ github.actor }}"
83+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
84+
85+
- name: ✊ Bump
86+
id: bump
87+
uses: hyper63/hyper-ci-bump@v2.0.3
88+
with:
89+
bump-to: ${{ github.event.inputs.version }}
90+
package: protocol-tag-utils
91+
92+
- name: ⬆️ Push
93+
run: |
94+
git push
95+
git push --tags
96+
97+
- name: 📥 Download deps
98+
working-directory: protocol-tag-utils
99+
run: |
100+
npm i
101+
102+
- name: 🦠 Publish to NPM
103+
working-directory: protocol-tag-utils
104+
run: |
105+
npm run build
106+
npm publish --access=public
107+
env:
108+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/su.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ defaults:
1818

1919
jobs:
2020

21-
test:
22-
runs-on: ubuntu-latest
23-
steps:
24-
- name: ⬇️ Checkout repo
25-
uses: actions/checkout@v4
21+
# test:
22+
# runs-on: ubuntu-latest
23+
# steps:
24+
# - name: ⬇️ Checkout repo
25+
# uses: actions/checkout@v4
2626

27-
- name: ⎔ Setup Rust
28-
uses: actions-rs/toolchain@v1
29-
with:
30-
toolchain: stable
27+
# - name: ⎔ Setup Rust
28+
# uses: actions-rs/toolchain@v1
29+
# with:
30+
# toolchain: 1.75.0
3131

32-
- name: Run Tests
33-
working-directory: servers/su
34-
run: cargo test
32+
# - name: Run Tests
33+
# working-directory: servers/su
34+
# run: cargo test
3535

3636

3737
publish:

connect/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
44

5+
## [0.0.63](https://github.com/permaweb/ao/compare/connect@v0.0.62...connect@v0.0.63) (2025-01-15)
6+
7+
8+
### Bug Fixes
9+
10+
* **connect:** support spawn data ArrayBuffer type ([b1e846a](https://github.com/permaweb/ao/commit/b1e846afa5f3071aef3971940c9e3c9472df7fbc))
11+
12+
## [0.0.62](https://github.com/permaweb/ao/compare/connect@v0.0.61...connect@v0.0.62) (2024-11-22)
13+
14+
## [0.0.61](https://github.com/permaweb/ao/compare/connect@v0.0.60...connect@v0.0.61) (2024-10-31)
15+
16+
## [0.0.60](https://github.com/permaweb/ao/compare/connect@v0.0.59...connect@v0.0.60) (2024-10-31)
17+
18+
19+
### Bug Fixes
20+
21+
* **connect:** properly add protocol tags on message and spawn [#1059](https://github.com/permaweb/ao/issues/1059) ([ea9c8f4](https://github.com/permaweb/ao/commit/ea9c8f4cbe457f104c47fb9ad7a4cc0501721fb8))
22+
523
## [0.0.59](https://github.com/permaweb/ao/compare/connect@v0.0.58...connect@v0.0.59) (2024-08-19)
624

725

0 commit comments

Comments
 (0)