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

Sync #2910

Closed

Sync #2910

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d20cff3
dockerfile fix (#2853)
m1iktea Jul 2, 2024
644ffd7
client-api: package update for publishing (#2850)
jonalvarezz Jul 2, 2024
d318e66
close ws connection in case of BrokenPipe error (#2854)
kziemianek Jul 3, 2024
e5f9e40
fix: add developer committee to basefilter (#2855)
felixfaisal Jul 3, 2024
6691a68
Continuous Websocket Message Reading on Readiness Event (#2852)
Jayanring Jul 3, 2024
05bbdd4
Bump syn from 2.0.66 to 2.0.68 (#2839)
dependabot[bot] Jul 4, 2024
c8f1d87
Adjust logging level and messages (#2857)
Kailai-Wang Jul 4, 2024
81da304
Deprecate `ScheduledEnclave` and introduce `AuthorizedEnclave` (#2856)
Kailai-Wang Jul 4, 2024
736e545
Use new keys from env setting (#2858)
Kailai-Wang Jul 4, 2024
8e64491
Add teebag and bitacross to litentry runtime (#2859)
Kailai-Wang Jul 4, 2024
fc1994c
P-872 basic tests for contracts (#2845)
0xverin Jul 5, 2024
f40d5f6
feat: P-860 add logging support for dynamic contract (#2848)
higherordertech Jul 5, 2024
217637f
reuse websocket connection for ceremony rounds (#2861)
kziemianek Jul 5, 2024
3f206f7
Adding force-migrate-shard flag to run worker command (#2862)
silva-fj Jul 5, 2024
610ea48
fix dynamic assertion integration test (#2864)
kziemianek Jul 5, 2024
c33b860
Add remove_vault in pallet-bitacross (#2863)
Kailai-Wang Jul 5, 2024
83f3f73
Improve shard migration (#2866)
silva-fj Jul 6, 2024
467cfbc
Disable docker build record upload (#2867)
Kailai-Wang Jul 7, 2024
660f468
feat: add a parachain event for completion of contract sync (#2870)
felixfaisal Jul 9, 2024
dd0b31e
feat: P-914 implemented NFT token holder VC for MFAN on Polygon (#2877)
higherordertech Jul 9, 2024
d37eea1
Disable issue creation GHA (#2881)
Kailai-Wang Jul 9, 2024
b3082f7
fix: request-vc in cli with ii and stf fails to decode (#2882)
felixfaisal Jul 9, 2024
427b1df
An and tuna holding amount vc (#2884)
higherordertech Jul 10, 2024
9eda63d
Update dependabot deps (#2880)
Kailai-Wang Jul 10, 2024
c758c30
Support DCAP RA (#2869)
Kailai-Wang Jul 10, 2024
0e33ee3
Fixing state provisioning without skip_ra flag (#2883)
silva-fj Jul 11, 2024
711a9c1
validation_data: support prettified challenge codes (#2885)
jonalvarezz Jul 11, 2024
555315d
feat: P-924 implemented NFT token holder VC for MVP on Ethereum (#2889)
higherordertech Jul 12, 2024
aae4e24
Fix wrong if in release script (#2891)
Kailai-Wang Jul 12, 2024
8b6a76e
Bump runtime versions
Kailai-Wang Jul 12, 2024
dd80e7d
Bug fix: wrong call_index type and use recv_timeout (#2893)
Kailai-Wang Jul 12, 2024
b6611be
client-api: sync npm versions (#2892)
jonalvarezz Jul 13, 2024
2c80fdd
Fix the issue of handling decimals. (#2886)
0xverin Jul 15, 2024
fba506c
Add rpc method for checking `sign_bitcoin` (#2871)
kziemianek Jul 15, 2024
26acdc2
fix: P-927 refactor brc20 contract to configure tokens and networks i…
higherordertech Jul 16, 2024
311ba6d
Bump syn from 2.0.68 to 2.0.71 (#2898)
dependabot[bot] Jul 16, 2024
b40c7cd
client-api: release latest versions (#2899)
jonalvarezz Jul 17, 2024
f62f875
P-876 add azure-cli (#2844)
m1iktea Jul 17, 2024
31bcf9b
add new platform user VC: daren market (#2903)
BillyWooo Jul 17, 2024
8c760bb
fix: A8 wrong network in VC (#2904)
higherordertech Jul 18, 2024
024e3ff
chore(client-api): update parachain-api package to include DarenMark…
jonalvarezz Jul 18, 2024
64c3357
Add pallet-score-staking (#2896)
Kailai-Wang Jul 18, 2024
6d7bc4d
feat: P-926 support rest 4 bitcoin networks for brc20 contract (#2907)
higherordertech Jul 19, 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
34 changes: 22 additions & 12 deletions .github/workflows/benchmark-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,27 @@ on:
required: true

env:
INSTANCE_ID: ${{ secrets.BENCHMARK_INSTANCE_ID }} # remote AWS host to run benchmarking
INSTANCE_ID: ${{ secrets.BENCHMARK_INSTANCE_ID }}
BENCHMARK_SSH_USER: ${{ secrets.BENCHMARK_SSH_USER }}
BENCHMARK_SSH_KEYPATH: ${{ secrets.BENCHMARK_SSH_KEYPATH }}
BENCHMARK_SSH_KEY: ${{ secrets.BENCHMARK_SSH_KEY }}

jobs:
## run the benchmarking remotely
benchmark-machine:
runs-on: jumphost
runs-on: ubuntu-latest
steps:
- name: Checkout codes on ${{ github.ref }}
uses: actions/checkout@v4
with:
fetch-depth: 0

# TODO: maybe use GHA to start/stop remote instance
- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Start remote instance
timeout-minutes: 10
id: start_instance
Expand All @@ -38,26 +44,30 @@ jobs:
break
else
sleep 20
SECONDS=$((SECONDS + 20))
fi
done
echo "Remote instance reachable now after $SECONDS seconds"
remote_ip=`aws ec2 describe-instances --filters 'Name=instance-state-name,Values=running' 'Name=instance-id,Values=${{ env.INSTANCE_ID }}' --query 'Reservations[*].Instances[*].[PublicIpAddress]' --output text`
echo "Running instances ip address: $remote_ip"
remote_ip=$(aws ec2 describe-instances --filters 'Name=instance-state-name,Values=running' 'Name=instance-id,Values=${{ env.INSTANCE_ID }}' --query 'Reservations[*].Instances[*].[PublicIpAddress]' --output text)
echo "Running instances IP address: $remote_ip"
echo "remote_ip=$remote_ip" >> $GITHUB_OUTPUT

# exit status should propagate through ssh
- name: Remotely benchmark machine
timeout-minutes: 10
run: |
echo "Running instances ip address: ${{ steps.start_instance.outputs.remote_ip }}"
ssh -x -o StrictHostKeychecking=no "${{ steps.start_instance.outputs.remote_ip }}" -l ${{ env.BENCHMARK_SSH_USER }} -i ${{ env.BENCHMARK_SSH_KEYPATH }} \
docker pull litentry/litentry-parachain:${{ github.event.inputs.docker_tag }} && \
docker run --rm litentry/litentry-parachain:${{ github.event.inputs.docker_tag }} benchmark machine --allow-fail --chain=litmus-dev
echo "Running instance's IP address: ${{ steps.start_instance.outputs.remote_ip }}"
cat << EOF > ./benchmark-server-key.pem
${{ env.BENCHMARK_SSH_KEY }}
EOF
chmod 600 ./benchmark-server-key.pem
ssh -o StrictHostKeyChecking=no -i ./benchmark-server-key.pem "${{ env.BENCHMARK_SSH_USER }}@${{ steps.start_instance.outputs.remote_ip }}" \
"docker pull litentry/litentry-parachain:${{ github.event.inputs.docker_tag }} && \
docker run --rm litentry/litentry-parachain:${{ github.event.inputs.docker_tag }} benchmark machine --allow-fail --chain=litmus-dev"

- name: Stop remote instance
if: always()
run: |
aws ec2 stop-instances --instance-ids ${{ env.INSTANCE_ID }}
sleep 5
ret=`aws ec2 describe-instance-status --instance-ids ${{ env.INSTANCE_ID }} | jq '.InstanceStatuses[0].InstanceState.Name'`
ret=$(aws ec2 describe-instance-status --instance-ids ${{ env.INSTANCE_ID }} --query 'InstanceStatuses[0].InstanceState.Name' --output text)
echo "Remote instance running state: $ret"
34 changes: 23 additions & 11 deletions .github/workflows/benchmark-runtime-weights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ on:
required: true

env:
INSTANCE_ID: ${{ secrets.BENCHMARK_INSTANCE_ID }} # remote AWS host to run benchmarking
INSTANCE_ID: ${{ secrets.BENCHMARK_INSTANCE_ID }}
BENCHMARK_SSH_USER: ${{ secrets.BENCHMARK_SSH_USER }}
BENCHMARK_SSH_KEYPATH: ${{ secrets.BENCHMARK_SSH_KEYPATH }}
BENCHMARK_SSH_KEY: ${{ secrets.BENCHMARK_SSH_KEY }}
DOCKER_BUILDKIT: 1

jobs:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

## run the benchmarking remotely
benchmark:
runs-on: jumphost
runs-on: ubuntu-latest
needs: build-docker
# see https://github.com/actions/runner/issues/491
if: |
Expand Down Expand Up @@ -111,25 +111,33 @@ jobs:
run: |
docker pull litentry/litentry-parachain:runtime-benchmarks

- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

# TODO: maybe use GHA to start/stop remote instance
- name: Start remote instance
timeout-minutes: 10
id: start_instance
run: |
aws ec2 start-instances --region ap-southeast-1 --instance-ids ${{ env.INSTANCE_ID }}
aws ec2 start-instances --instance-ids ${{ env.INSTANCE_ID }}
sleep 5
instance_status="aws ec2 describe-instance-status --region ap-southeast-1 --instance-ids ${{ env.INSTANCE_ID }} --query 'InstanceStatuses[0].InstanceStatus.Status' --output text"
system_status="aws ec2 describe-instance-status --region ap-southeast-1 --instance-ids ${{ env.INSTANCE_ID }} --query 'InstanceStatuses[0].SystemStatus.Status' --output text"
instance_status="aws ec2 describe-instance-status --instance-ids ${{ env.INSTANCE_ID }} --query 'InstanceStatuses[0].InstanceStatus.Status' --output text"
system_status="aws ec2 describe-instance-status --instance-ids ${{ env.INSTANCE_ID }} --query 'InstanceStatuses[0].SystemStatus.Status' --output text"
SECONDS=0
while : ; do
if [ "$(eval $instance_status)" = "ok" ] && [ "$(eval $system_status)" = "ok" ]; then
break
else
sleep 20
SECONDS=$((SECONDS + 20))
fi
done
echo "Remote instance reachable now after $SECONDS seconds"
remote_ip=`aws ec2 describe-instances --region ap-southeast-1 --filters 'Name=instance-state-name,Values=running' 'Name=instance-id,Values=${{ env.INSTANCE_ID }}' --query 'Reservations[*].Instances[*].[PublicIpAddress]' --output text`
remote_ip=`aws ec2 describe-instances --filters 'Name=instance-state-name,Values=running' 'Name=instance-id,Values=${{ env.INSTANCE_ID }}' --query 'Reservations[*].Instances[*].[PublicIpAddress]' --output text`
echo "Running instances ip address: $remote_ip"
echo "remote_ip=$remote_ip" >> $GITHUB_OUTPUT

Expand All @@ -144,20 +152,24 @@ jobs:
if [ "$arg" = "*" ]; then
arg="\\$arg";
fi
cat << EOF > ./benchmark-server-key.pem
${{ env.BENCHMARK_SSH_KEY }}
EOF
chmod 600 ./benchmark-server-key.pem
for c in $chain; do
ssh -x -o StrictHostKeychecking=no ${{ secrets.BENCHMARK_INSTANCE_IP }} -l ${{ env.BENCHMARK_SSH_USER }} 'bash -s' < scripts/benchmark-weight-remote.sh "$c" "${GITHUB_REF#refs/heads/}" "$arg"
ssh -x -i ./benchmark-server-key.pem -o StrictHostKeychecking=no "${{ steps.start_instance.outputs.remote_ip }}" -l ${{ env.BENCHMARK_SSH_USER }} 'bash -s' < scripts/benchmark-weight-remote.sh "$c" "${GITHUB_REF#refs/heads/}" "$arg"
echo "copy generated weights files back ..."
scp -o StrictHostKeychecking=no "${{ env.BENCHMARK_SSH_USER }}"@"${{ secrets.BENCHMARK_INSTANCE_IP }}":/tmp/litentry-parachain/runtime/$c/src/weights/*.rs runtime/$c/src/weights/
scp -o StrictHostKeychecking=no -i ./benchmark-server-key.pem "${{ env.BENCHMARK_SSH_USER }}"@"${{ steps.start_instance.outputs.remote_ip }}":/tmp/litentry-parachain/runtime/$c/src/weights/*.rs runtime/$c/src/weights/
done
echo "======================"
git status

- name: Stop remote instance
if: always()
run: |
aws ec2 stop-instances --region ap-southeast-1 --instance-ids ${{ env.INSTANCE_ID }}
aws ec2 stop-instances --instance-ids ${{ env.INSTANCE_ID }}
sleep 5
ret=`aws ec2 describe-instance-status --region ap-southeast-1 --instance-ids ${{ env.INSTANCE_ID }} | jq '.InstanceStatuses[0].InstanceState.Name'`
ret=`aws ec2 describe-instance-status --instance-ids ${{ env.INSTANCE_ID }} | jq '.InstanceStatuses[0].InstanceState.Name'`
echo "Remote instance running state: $ret"

- name: Create auto PR
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,10 @@ jobs:
- test_name: lit-dr-vc-test
- test_name: lit-parentchain-nonce
- test_name: lit-test-failed-parentchain-extrinsic
- test_name: lit-scheduled-enclave-test
- test_name: lit-twitter-identity-test
- test_name: lit-discord-identity-test
- test_name: lit-assertion-contracts-test

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -732,7 +733,6 @@ jobs:
- test_name: lit-di-vc-multiworker-test
- test_name: lit-dr-vc-multiworker-test
- test_name: lit-resume-worker
- test_name: lit-scheduled-enclave-multiworker-test
steps:
- uses: actions/checkout@v4

Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,17 @@ jobs:
# see https://docs.docker.com/build/drivers/
driver: docker

# the key for identity worker enclave shall be renewed when switching to sdk-v2.0.0
- name: Write enclave signing key
run: |
cat << EOF > tee-worker/enclave_key.pem
${{ secrets.IDENTITY_ENCLAVE_SIGNING_KEY }}
${{ secrets.IDENTITY_ENCLAVE_STAGING_SIGNING_KEY }}
EOF

- name: Build local builder
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_RECORD_UPLOAD: false
with:
context: .
file: tee-worker/build.Dockerfile
Expand All @@ -205,6 +208,8 @@ jobs:

- name: Build worker
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_RECORD_UPLOAD: false
with:
context: .
file: tee-worker/build.Dockerfile
Expand Down Expand Up @@ -253,11 +258,13 @@ jobs:
- name: Write enclave signing key
run: |
cat << EOF > bitacross-worker/enclave_key.pem
${{ secrets.BITACROSS_ENCLAVE_SIGNING_KEY }}
${{ secrets.BITACROSS_ENCLAVE_PROD_SIGNING_KEY }}
EOF

- name: Build local builder
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_RECORD_UPLOAD: false
with:
context: .
file: bitacross-worker/build.Dockerfile
Expand All @@ -273,6 +280,8 @@ jobs:

- name: Build worker
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_RECORD_UPLOAD: false
with:
context: .
file: bitacross-worker/build.Dockerfile
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/create-release-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Create release issue
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-[0-9]+'
- 'p[0-9]+.[0-9]+.[0-9]+-[0-9]+-w[0-9]+.[0-9]+.[0-9]+-[0-9]+'
- 'disabled-v[0-9]+.[0-9]+.[0-9]+'
- 'disabled-v[0-9]+.[0-9]+.[0-9]+-[0-9]+'
- 'disabled-p[0-9]+.[0-9]+.[0-9]+-[0-9]+-w[0-9]+.[0-9]+.[0-9]+-[0-9]+'

jobs:
create-release-issue:
Expand Down
Loading
Loading