Skip to content

Commit dabaa45

Browse files
authored
Merge pull request #5165 from Joystream/petra
Petra runtime release
2 parents fca2800 + 4fcb2e6 commit dabaa45

Some content is hidden

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

66 files changed

+6264
-3696
lines changed

.github/workflows/joystream-cli.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
uses: actions/setup-node@v3
4040
with:
4141
node-version: ${{ matrix.node-version }}
42+
- name: python setuptools
43+
run: brew install python-setuptools
4244
- name: checks
4345
run: |
4446
yarn install --frozen-lockfile --network-timeout 120000

.github/workflows/joystream-types.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ jobs:
99
matrix:
1010
node-version: [18.x]
1111
steps:
12-
- uses: actions/checkout@v3
13-
- name: Use Node.js ${{ matrix.node-version }}
14-
uses: actions/setup-node@v3
15-
with:
16-
node-version: ${{ matrix.node-version }}
17-
- name: checks
18-
run: |
19-
yarn install --frozen-lockfile
20-
yarn workspace @joystream/types build
21-
- name: npm pack test
22-
run: |
23-
cd types
24-
npm pack | tail -1 | xargs tar xzf
25-
cd package && npm install
26-
node ./lib/cjs/index.js
12+
- uses: actions/checkout@v3
13+
- name: Use Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: checks
18+
run: |
19+
yarn install --frozen-lockfile
20+
yarn workspace @joystream/types build
21+
- name: npm pack test
22+
run: |
23+
cd types
24+
npm pack | tail -1 | xargs tar xzf
25+
cd package && npm install
26+
node ./lib/cjs/index.js
2727
2828
types_checks_osx:
2929
name: MacOS Checks
@@ -32,18 +32,20 @@ jobs:
3232
matrix:
3333
node-version: [18.x]
3434
steps:
35-
- uses: actions/checkout@v3
36-
- name: Use Node.js ${{ matrix.node-version }}
37-
uses: actions/setup-node@v3
38-
with:
39-
node-version: ${{ matrix.node-version }}
40-
- name: checks
41-
run: |
42-
yarn install --frozen-lockfile --network-timeout 120000
43-
yarn workspace @joystream/types build
44-
- name: npm pack test
45-
run: |
46-
cd types
47-
npm pack | tail -1 | xargs tar xzf
48-
cd package && npm install
49-
node ./lib/cjs/index.js
35+
- uses: actions/checkout@v3
36+
- name: Use Node.js ${{ matrix.node-version }}
37+
uses: actions/setup-node@v3
38+
with:
39+
node-version: ${{ matrix.node-version }}
40+
- name: python setuptools
41+
run: brew install python-setuptools
42+
- name: checks
43+
run: |
44+
yarn install --frozen-lockfile --network-timeout 120000
45+
yarn workspace @joystream/types build
46+
- name: npm pack test
47+
run: |
48+
cd types
49+
npm pack | tail -1 | xargs tar xzf
50+
cd package && npm install
51+
node ./lib/cjs/index.js

.github/workflows/lint-typescript.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
matrix:
1010
node-version: [18.x]
1111
steps:
12-
- uses: actions/checkout@v3
13-
- name: Use Node.js ${{ matrix.node-version }}
14-
uses: actions/setup-node@v3
15-
with:
16-
node-version: ${{ matrix.node-version }}
17-
- name: lint
18-
run: |
19-
yarn build
20-
yarn lint
12+
- uses: actions/checkout@v3
13+
- name: Use Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: lint
18+
run: |
19+
yarn build
20+
yarn lint
2121
2222
lint_osx:
2323
name: MacOS Checks
@@ -26,12 +26,14 @@ jobs:
2626
matrix:
2727
node-version: [18.x]
2828
steps:
29-
- uses: actions/checkout@v3
30-
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
32-
with:
33-
node-version: ${{ matrix.node-version }}
34-
- name: lint
35-
run: |
36-
yarn build
37-
yarn lint
29+
- uses: actions/checkout@v3
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- name: python setuptools
35+
run: brew install python-setuptools
36+
- name: lint
37+
run: |
38+
yarn build
39+
yarn lint

.github/workflows/query-node.yml

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ jobs:
99
matrix:
1010
node-version: [18.x]
1111
steps:
12-
- uses: actions/checkout@v3
13-
- name: Use Node.js ${{ matrix.node-version }}
14-
uses: actions/setup-node@v3
15-
with:
16-
node-version: ${{ matrix.node-version }}
17-
- name: checks
18-
run: |
19-
yarn install --frozen-lockfile
20-
yarn workspace @joystream/types build
21-
yarn workspace @joystream/metadata-protobuf build
22-
yarn workspace @joystream/js build
23-
yarn workspace query-node-root build
12+
- uses: actions/checkout@v3
13+
- name: Use Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: checks
18+
run: |
19+
yarn install --frozen-lockfile
20+
yarn workspace @joystream/types build
21+
yarn workspace @joystream/metadata-protobuf build
22+
yarn workspace @joystream/js build
23+
yarn workspace query-node-root build
2424
2525
query_node_build_osx:
2626
name: MacOS Checks
@@ -29,15 +29,17 @@ jobs:
2929
matrix:
3030
node-version: [18.x]
3131
steps:
32-
- uses: actions/checkout@v3
33-
- name: Use Node.js ${{ matrix.node-version }}
34-
uses: actions/setup-node@v3
35-
with:
36-
node-version: ${{ matrix.node-version }}
37-
- name: checks
38-
run: |
39-
yarn install --frozen-lockfile --network-timeout 120000
40-
yarn workspace @joystream/types build
41-
yarn workspace @joystream/metadata-protobuf build
42-
yarn workspace @joystream/js build
43-
yarn workspace query-node-root build
32+
- uses: actions/checkout@v3
33+
- name: Use Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
- name: python setuptools
38+
run: brew install python-setuptools
39+
- name: checks
40+
run: |
41+
yarn install --frozen-lockfile --network-timeout 120000
42+
yarn workspace @joystream/types build
43+
yarn workspace @joystream/metadata-protobuf build
44+
yarn workspace @joystream/js build
45+
yarn workspace query-node-root build

.github/workflows/run-network-tests.yml

Lines changed: 22 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
matrix:
1515
node-version: [18.x]
1616
steps:
17-
- uses: actions/checkout@v3
18-
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: ${{ matrix.node-version }}
22-
- name: checks
23-
run: |
24-
yarn build
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: checks
23+
run: |
24+
yarn build
2525
2626
tests_build_osx:
2727
name: MacOS Checks
@@ -30,14 +30,16 @@ jobs:
3030
matrix:
3131
node-version: [18.x]
3232
steps:
33-
- uses: actions/checkout@v3
34-
- name: Use Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@v3
36-
with:
37-
node-version: ${{ matrix.node-version }}
38-
- name: checks
39-
run: |
40-
yarn build
33+
- uses: actions/checkout@v4
34+
- name: Use Node.js ${{ matrix.node-version }}
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
- name: python setuptools
39+
run: brew install python-setuptools
40+
- name: checks
41+
run: |
42+
yarn build
4143
4244
build_images:
4345
name: Build joystream/node
@@ -54,8 +56,8 @@ jobs:
5456
sudo rm -rf /opt/ghc
5557
sudo rm -rf "/usr/local/share/boost"
5658
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
57-
- uses: actions/checkout@v3
58-
- uses: actions/setup-node@v3
59+
- uses: actions/checkout@v4
60+
- uses: actions/setup-node@v4
5961
with:
6062
node-version: '18.x'
6163

@@ -159,8 +161,8 @@ jobs:
159161
- scenario: 'setupNewChainMultiStorage'
160162
no_storage: 'true'
161163
steps:
162-
- uses: actions/checkout@v3
163-
- uses: actions/setup-node@v3
164+
- uses: actions/checkout@v4
165+
- uses: actions/setup-node@v4
164166
with:
165167
node-version: '18.x'
166168
- name: Get artifacts
@@ -181,78 +183,3 @@ jobs:
181183
export RUNTIME=${{ needs.build_images.outputs.runtime }}
182184
export NO_STORAGE=${{ matrix.no_storage }}
183185
tests/network-tests/run-tests.sh ${{ matrix.scenario }}
184-
185-
runtime_upgrade:
186-
name: Runtime Upgrade from production runtime
187-
needs: build_images
188-
runs-on: ubuntu-latest
189-
# Disabling until we find a workaround
190-
# as it is no longer practical to start the node
191-
# while importing huge state from production network in genesis block.
192-
# if: github.ref != 'refs/heads/master'
193-
if: false
194-
steps:
195-
# Checkout master branch
196-
- name: check out master repo
197-
uses: actions/checkout@v3
198-
with:
199-
repository: Joystream/joystream
200-
ref: master
201-
202-
- name: pull base runtime image
203-
id: pull_base_image
204-
env:
205-
RUNTIME_PROFILE: 'TESTING'
206-
run: |
207-
export RUNTIME=`scripts/runtime-code-shasum.sh`
208-
echo "::set-output name=shasum::${RUNTIME}"
209-
docker pull joystream/node:$RUNTIME
210-
docker images
211-
212-
# Get new runtime built for this workflow (target runtime)
213-
# tagged in local repo as joystream/node:latest
214-
- name: Get artifacts
215-
uses: actions/download-artifact@v3
216-
with:
217-
name: ${{ needs.build_images.outputs.use_artifact }}
218-
- name: Install artifacts
219-
run: |
220-
docker load --input joystream-node-docker-image.tar.gz
221-
docker images
222-
223-
# Checkout workflow's branch/tag/commit
224-
- name: checkout workflow branch
225-
uses: actions/checkout@v3
226-
227-
# Look only for changes that would indicate possible change in runtime version
228-
# This is not the best way to check. Ideally the script "run-runtime-upgrade-tests.sh" should
229-
# look for the change of `spec_version`, and exit gracefully.
230-
- name: Check for runtime version change
231-
uses: technote-space/get-diff-action@v3
232-
with:
233-
PREFIX_FILTER: |
234-
runtime
235-
runtime-modules
236-
SUFFIX_FILTER: |
237-
.rs
238-
- name: setup node
239-
uses: actions/setup-node@v3
240-
with:
241-
node-version: '18.x'
242-
- name: Install packages and dependencies
243-
if: env.GIT_DIFF
244-
run: |
245-
yarn build
246-
- name: Ensure tests are runnable
247-
if: env.GIT_DIFF
248-
run: yarn workspace network-tests build
249-
- name: Execute network tests
250-
if: env.GIT_DIFF
251-
env:
252-
TARGET_RUNTIME: ${{ needs.build_images.outputs.runtime }}
253-
RUNTIME: ${{ steps.pull_base_image.outputs.shasum }}
254-
run: |
255-
export HOME=${PWD}
256-
mkdir -p ${HOME}/.local/share/joystream-cli
257-
yarn joystream-cli api:setUri ws://localhost:9944
258-
tests/network-tests/run-runtime-upgrade-tests.sh

0 commit comments

Comments
 (0)