git.delta.rocks / unique-network / refs/commits / 246a7cb4abd7

difftreelog

Fixing spoted items.

Alexander Aksenov2022-08-05parent: #f946586.patch.diff
in: master

5 files changed

modified.docker/Dockerfile-parachaindiffbeforeafterboth
23RUN rustup target add wasm32-unknown-unknown --toolchain $RUST_TOOLCHAIN23RUN rustup target add wasm32-unknown-unknown --toolchain $RUST_TOOLCHAIN
2424
2525
26RUN mkdir unique_parachain26RUN mkdir /unique_parachain
27WORKDIR /unique_parachain27WORKDIR /unique_parachain
2828
29# ===== BUILD ======29# ===== BUILD ======
32ARG PROFILE=release32ARG PROFILE=release
33ARG FEATURE=33ARG FEATURE=
3434
35RUN mkdir unique_parachain35RUN mkdir /unique_parachain
36WORKDIR /unique_parachain36WORKDIR /unique_parachain
3737
38RUN git clone $REPO_URL -b $BRANCH38RUN git clone $REPO_URL -b $BRANCH
39RUN cargo build $FEATURE --$PROFILE39RUN cargo build $FEATURE --$PROFILE
40 # && \
41 # cargo test
4240
43# ===== BUILD POLKADOT =====41# ===== BUILD POLKADOT =====
44FROM rust-builder as builder-polkadot42FROM rust-builder as builder-polkadot
4543
46ARG POLKA_VERSION=release-v0.9.2444ARG POLKA_VERSION=release-v0.9.24
47ENV POLKA_VERSION $POLKA_VERSION45ENV POLKA_VERSION $POLKA_VERSION
4846
49RUN mkdir unique_parachain47RUN mkdir /unique_parachain
50WORKDIR /unique_parachain48WORKDIR /unique_parachain
5149
52RUN git clone -b $POLKA_VERSION --depth 1 https://github.com/paritytech/polkadot.git && \50RUN git clone -b $POLKA_VERSION --depth 1 https://github.com/paritytech/polkadot.git && \
77COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/75COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/
78COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/76COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
7977
80COPY ["./launch-config.json", "/polkadot-launch/launch-config.json"]78COPY --from=builder-unique /unique_parachain/launch-config.json /polkadot-launch/launch-config.json
8179
8280
83CMD export NVM_DIR="$HOME/.nvm" && \81CMD export NVM_DIR="$HOME/.nvm" && \
modified.github/workflows/codestyle.ymldiffbeforeafterboth
14 runs-on: self-hosted-ci14 runs-on: self-hosted-ci
1515
16 steps:16 steps:
17 - name: Skip if pull request is in Draft
18 # `if: github.event.pull_request.draft == true` should be kept here, at
19 # the step level, rather than at the job level. The latter is not
20 # recommended because when the PR is moved from "Draft" to "Ready to
21 # review" the workflow will immediately be passing (since it was skipped),
22 # even though it hasn't actually ran, since it takes a few seconds for
23 # the workflow to start. This is also disclosed in:
24 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
25 # That scenario would open an opportunity for the check to be bypassed:
26 # 1. Get your PR approved
27 # 2. Move it to Draft
28 # 3. Push whatever commits you want
29 # 4. Move it to "Ready for review"; now the workflow is passing (it was
30 # skipped) and "Check reviews" is also passing (it won't be updated
31 # until the workflow is finished)
32 if: github.event.pull_request.draft == true
33 run: exit 1
34
17 - uses: actions/checkout@v135 - uses: actions/checkout@v1
18 - name: Install latest nightly36 - name: Install latest nightly
30 runs-on: self-hosted-ci48 runs-on: self-hosted-ci
3149
32 steps:50 steps:
51 - name: Skip if pull request is in Draft
52 # `if: github.event.pull_request.draft == true` should be kept here, at
53 # the step level, rather than at the job level. The latter is not
54 # recommended because when the PR is moved from "Draft" to "Ready to
55 # review" the workflow will immediately be passing (since it was skipped),
56 # even though it hasn't actually ran, since it takes a few seconds for
57 # the workflow to start. This is also disclosed in:
58 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
59 # That scenario would open an opportunity for the check to be bypassed:
60 # 1. Get your PR approved
61 # 2. Move it to Draft
62 # 3. Push whatever commits you want
63 # 4. Move it to "Ready for review"; now the workflow is passing (it was
64 # skipped) and "Check reviews" is also passing (it won't be updated
65 # until the workflow is finished)
66 if: github.event.pull_request.draft == true
67 run: exit 1
68
33 - uses: actions/checkout@v369 - uses: actions/checkout@v3
34 - name: Install substrate dependencies70 - name: Install substrate dependencies
modified.github/workflows/node_build_test.ymldiffbeforeafterboth
69 with:69 with:
70 template: .docker/docker-compose.tmp.j270 template: .docker/docker-compose.tmp.j2
71 output_file: .docker/docker-compose.${{ matrix.network }}.yml71 output_file: .docker/docker-compose.${{ matrix.network }}.yml
72 variables: |72 variables: |
73 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git73 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
74 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}74 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
75 POLKA_VERSION=${{ env.POLKA_VERSION }}75 POLKA_VERSION=${{ env.POLKA_VERSION }}
76 FEATURE=${{ matrix.features }}76 FEATURE=${{ matrix.features }}
77 BRANCH=${{ github.head_ref }}77 BRANCH=${{ github.event.pull_request.head.sha }}
7878
79 - name: Show build configuration79 - name: Show build configuration
80 run: cat .docker/docker-compose.${{ matrix.network }}.yml80 run: cat .docker/docker-compose.${{ matrix.network }}.yml
87 node-version: 1687 node-version: 16
8888
89 - name: Run tests89 - name: Run tests
90 run: |90 run: |
91 cd tests91 cd tests
92 yarn install92 yarn install
93 yarn add mochawesome93 yarn add mochawesome
94 yarn --pure-lockfile94 echo "Ready to start tests"
95 echo "Ready to start tests"95 node scripts/readyness.js
96 node scripts/readyness.js96 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
97 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
98 env:97 env:
99 RPC_URL: http://127.0.0.1:9933/98 RPC_URL: http://127.0.0.1:9933/
10099
modified.github/workflows/tests_codestyle.ymldiffbeforeafterboth
13 runs-on: self-hosted-ci13 runs-on: self-hosted-ci
1414
15 steps:15 steps:
16 - name: Skip if pull request is in Draft
17 # `if: github.event.pull_request.draft == true` should be kept here, at
18 # the step level, rather than at the job level. The latter is not
19 # recommended because when the PR is moved from "Draft" to "Ready to
20 # review" the workflow will immediately be passing (since it was skipped),
21 # even though it hasn't actually ran, since it takes a few seconds for
22 # the workflow to start. This is also disclosed in:
23 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
24 # That scenario would open an opportunity for the check to be bypassed:
25 # 1. Get your PR approved
26 # 2. Move it to Draft
27 # 3. Push whatever commits you want
28 # 4. Move it to "Ready for review"; now the workflow is passing (it was
29 # skipped) and "Check reviews" is also passing (it won't be updated
30 # until the workflow is finished)
31 if: github.event.pull_request.draft == true
32 run: exit 1
33
16 - uses: actions/checkout@v334 - uses: actions/checkout@v3
17 35
modifiedtests/scripts/readyness.jsdiffbeforeafterboth
24 break;24 break;
25 }25 }
26 catch(e) {26 catch(e) {
27 await sleep(60000);27 await sleep(10000);
28 }28 }
29 }29 }
30}30}