Skip to content

Commit 69e69f0

Browse files
authored
fix: remove bad log (#519)
2 parents 58c24bb + c5b3012 commit 69e69f0

File tree

22 files changed

+916
-2670
lines changed

22 files changed

+916
-2670
lines changed

.github/workflows/reusable-build-and-test.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
- name: Authenticate to Google Cloud
3939
uses: google-github-actions/auth@v1
4040
with:
41-
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
42-
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
41+
workload_identity_provider: "${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
42+
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"
4343

4444
- name: Cache the Cargo dependencies
4545
uses: mansagroup/gcs-cache-action@v1.0.3
@@ -127,8 +127,8 @@ jobs:
127127
- name: Authenticate to Google Cloud
128128
uses: google-github-actions/auth@v1
129129
with:
130-
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
131-
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
130+
workload_identity_provider: "${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
131+
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"
132132
- name: Cache the Cargo dependencies
133133
uses: mansagroup/gcs-cache-action@v1.0.3
134134
with:
@@ -151,8 +151,8 @@ jobs:
151151
- name: Authenticate to Google Cloud
152152
uses: google-github-actions/auth@v1
153153
with:
154-
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
155-
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
154+
workload_identity_provider: "${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
155+
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"
156156
- name: Cache the Cargo dependencies
157157
uses: mansagroup/gcs-cache-action@v1.0.3
158158
with:
@@ -178,8 +178,8 @@ jobs:
178178
- name: Authenticate to Google Cloud
179179
uses: google-github-actions/auth@v1
180180
with:
181-
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
182-
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
181+
workload_identity_provider: "${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
182+
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"
183183
- name: Cache the Cargo dependencies
184184
uses: mansagroup/gcs-cache-action@v1.0.3
185185
with:
@@ -204,8 +204,8 @@ jobs:
204204
- name: Authenticate to Google Cloud
205205
uses: google-github-actions/auth@v1
206206
with:
207-
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
208-
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
207+
workload_identity_provider: "${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
208+
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"
209209
- name: Cache the Cargo dependencies
210210
uses: mansagroup/gcs-cache-action@v1.0.3
211211
with:
@@ -221,7 +221,7 @@ jobs:
221221
run: cargo run --release --features=try-runtime,mangata-rococo try-runtime --chain=rococo --runtime=target/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.wasm on-runtime-upgrade live --uri wss://collator-01-ws-rococo.mangata.online:443
222222

223223
- name: Run try-runtime Kusama Mainnet
224-
run: cargo run --release --features=try-runtime try-runtime --chain=kusama --runtime=target/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.wasm on-runtime-upgrade live --uri wss://prod-kusama-collator-01.mangatafinance.cloud:443
224+
run: cargo run --release --features=try-runtime try-runtime --chain=kusama --runtime=target/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.wasm on-runtime-upgrade live --uri wss://kusama-rpc.mangata.online:443
225225

226226
- name: Fix permissions on self-hosted runner
227227
if: always()
@@ -240,8 +240,8 @@ jobs:
240240
- name: Authenticate to Google Cloud
241241
uses: google-github-actions/auth@v1
242242
with:
243-
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
244-
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
243+
workload_identity_provider: "${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
244+
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"
245245

246246
- name: Cache the Cargo dependencies
247247
uses: mansagroup/gcs-cache-action@v1.0.3
@@ -281,7 +281,7 @@ jobs:
281281
run: |
282282
target/release/mangata-node benchmark overhead --execution native --chain kusama-local -lblock_builder=debug --max-ext-per-block 50000 --base-path .
283283
cp block_weights.rs extrinsic_weights.rs ./benchmarks
284-
284+
285285
- name: Upload logs and docker images to GitHub
286286
if: ${{ contains(github.event.pull_request.labels.*.name, 'full-benchmarks') }}
287287
uses: actions/upload-artifact@v3.1.1

.github/workflows/reusable-e2e-tests.yml

Lines changed: 84 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,45 @@ permissions:
5151
checks: write
5252

5353
jobs:
54+
setup-report:
55+
runs-on: [ubuntu-latest]
56+
outputs:
57+
testmo-run-id: ${{ steps.setTestRun.outputs.testmo-run-id }}
58+
steps:
59+
- name: Install testmo
60+
run: npm install --no-save @testmo/testmo-cli
61+
- name: Add url
62+
run: |
63+
npx testmo automation:resources:add-field --name git --type string \
64+
--value ${GITHUB_SHA:0:7} --resources resources.json
65+
RUN_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
66+
npx testmo automation:resources:add-link --name build \
67+
--url $RUN_URL --resources resources.json
68+
69+
- name: Create test run
70+
run: |
71+
npx testmo automation:run:create \
72+
--instance https://mangata-finance.testmo.net \
73+
--project-id 2 \
74+
--name "BE tests from node-repo" \
75+
--resources resources.json \
76+
--source "unit-tests" > testmo-run-id.txt
77+
ID=$(cat testmo-run-id.txt)
78+
echo "testmo-run-id=$ID" >> $GITHUB_OUTPUT
79+
echo "ID=$ID" >> $GITHUB_ENV
80+
81+
env:
82+
TESTMO_URL: ${{ secrets.TESTMO_URL }}
83+
TESTMO_TOKEN: ${{ secrets.TESTMO_TOKEN }}
84+
id: setTestRun
85+
86+
5487
e2e-test-matrix:
88+
needs: [setup-report]
5589
strategy:
5690
matrix:
5791
include:
58-
- command: "yarn test-parallel --max-workers=32"
92+
- command: "yarn test-parallel --max-workers=10"
5993
fast: false
6094
- command: "yarn test-sequential-no-bootstrap"
6195
fast: false
@@ -75,6 +109,10 @@ jobs:
75109
fast: true
76110
- command: "yarn test-governance"
77111
fast: true
112+
- command: "yarn test-multiswap"
113+
fast: false
114+
- command: "yarn test-experimentalStaking"
115+
fast: true
78116

79117
runs-on: [self-hosted, compile]
80118
timeout-minutes: 180
@@ -89,16 +127,15 @@ jobs:
89127
E2EBRANCHNAME: "main"
90128
PARACHAIN_DOCKER_IMAGE: ${{ inputs.parachainDocker || format('mangatasolutions/mangata-node:{0}', inputs.globalVersion) }}
91129
steps:
92-
93130
- uses: actions/checkout@v3 ####IDK, but this is neccesary for reports
94131
- name: Adapt if fast runtime
95132
if: ${{ !contains(env.PARACHAIN_DOCKER_IMAGE, 'fast') && matrix.fast == true }}
96133
run: echo "PARACHAIN_DOCKER_IMAGE=${{ env.PARACHAIN_DOCKER_IMAGE }}-fast" >> $GITHUB_ENV
97-
134+
98135
- name: Adapt if fast runtime
99136
if: ${{ !contains(env.PARACHAIN_DOCKER_IMAGE, 'fast') && matrix.fast == true }}
100137
run: echo "PARACHAIN_DOCKER_IMAGE=${{ env.PARACHAIN_DOCKER_IMAGE }}-fast" >> $GITHUB_ENV
101-
138+
102139
- name: Download node Docker image
103140
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-build') && inputs.skipBuild != 'true' }}
104141
run: docker pull ${{ env.PARACHAIN_DOCKER_IMAGE }}
@@ -144,28 +181,24 @@ jobs:
144181
echo ${{ env.PARACHAIN_DOCKER_IMAGE }}
145182
146183
- name: Replace parachain docker image reference in config
147-
working-directory: launch
184+
working-directory: devops/parachain-launch
148185
run: sed -i 's+mangatasolutions/mangata-node:.*+${{ env.PARACHAIN_DOCKER_IMAGE }}+g' config.yml
149186

150-
- name: Install parachain launch dependencies
151-
working-directory: launch
152-
run: yarn
153-
154187
- name: Install e2e tests dependencies
155188
working-directory: e2eTests
156189
run: yarn
157190

158-
- name: Generate parachain launch config
159-
working-directory: launch
160-
run: yarn gen
191+
- name: Run parachain launch
192+
working-directory: devops/parachain-launch
193+
run: npx @open-web3/parachain-launch generate config.yml
161194

162195
- name: Stop previous parachain if running
163-
working-directory: launch
164-
run: yarn down
196+
working-directory: devops/parachain-launch/output
197+
run: docker-compose down -v
165198

166199
- name: Start mangata-node parachain
167-
working-directory: launch
168-
run: yarn up
200+
working-directory: devops/parachain-launch/output
201+
run: docker-compose up -d --build
169202

170203
- name: Docker ps
171204
run: docker ps --no-trunc
@@ -185,6 +218,19 @@ jobs:
185218
name: E2E report ${{ matrix.command }} # Name of the check run which will be created
186219
path: e2eTests/reports/junit-*.xml # Path to test results
187220
reporter: jest-junit # Format of test results
221+
- name: Install testmo
222+
run: npm install --no-save @testmo/testmo-cli
223+
- name: Submit results to the testmo-run
224+
if: always()
225+
run: |
226+
npx testmo automation:run:submit-thread \
227+
--instance https://mangata-finance.testmo.net \
228+
--run-id ${{needs.setup-report.outputs.testmo-run-id}} \
229+
--results e2eTests/reports/*.xml
230+
env:
231+
TESTMO_URL: ${{ secrets.TESTMO_URL }}
232+
TESTMO_TOKEN: ${{ secrets.TESTMO_TOKEN }}
233+
continue-on-error: true
188234

189235
- name: Collect docker logs on failure
190236
if: failure()
@@ -216,9 +262,27 @@ jobs:
216262
217263
- name: Stop mangata-node parachain
218264
if: always()
219-
working-directory: launch
220-
run: yarn down
221-
265+
working-directory: devops/parachain-launch/output
266+
run: docker-compose down -v
222267
- name: Fix permissions on self-hosted runner
223268
if: always()
224-
run: chown -R 1100:1100 $GITHUB_WORKSPACE
269+
run: chown -R 1100:1100 $GITHUB_WORKSPACE
270+
test-complete:
271+
needs: [setup-report, e2e-test-matrix]
272+
if: always()
273+
runs-on: ubuntu-latest
274+
275+
steps:
276+
- name: Install testmo
277+
run: npm install --no-save @testmo/testmo-cli
278+
279+
- name: Complete test run
280+
run: |
281+
npx testmo automation:run:complete \
282+
--instance https://mangata-finance.testmo.net \
283+
--run-id ${{needs.setup-report.outputs.testmo-run-id}} \
284+
env:
285+
TESTMO_URL: ${{ secrets.TESTMO_URL }}
286+
TESTMO_TOKEN: ${{ secrets.TESTMO_TOKEN }}
287+
continue-on-error: true
288+

.github/workflows/reusable-perfomance-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Run performance tests
7070
working-directory: e2e/performance
7171
run: |
72-
npx ts-node index.ts \
72+
node --experimental-specifier-resolution=node --loader ts-node/esm --experimental-vm-modules index.ts \
7373
transfer \
7474
nodes="wss://node-01-ws-${{ env.ENV_REF }}.mangata.online" \
7575
testCaseName=ConcurrentTest \

0 commit comments

Comments
 (0)