Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
e60597d
fix local variable names (#8450)
gui1117 Mar 25, 2021
2e34d47
Remove redundant libp2p dependency from test runner (#8455)
ascjones Mar 25, 2021
06ac563
Upgrade pallet atomic swap (#8452)
gui1117 Mar 26, 2021
c983207
Change companion check order (#8460)
bkchr Mar 26, 2021
84360e1
Migrate `pallet-sudo` to `pallet!` (#8448)
ascjones Mar 26, 2021
f16abda
Fix companion check (#8464)
bkchr Mar 26, 2021
e3a864a
Add NetworkService::add_known_address (#8467)
tomaka Mar 26, 2021
56b9d48
Fix &mut self -> &self in add_known_address (#8468)
tomaka Mar 26, 2021
0f6b573
Repot frame_support::traits; introduce some new currency stuff (#8435)
gavofyork Mar 27, 2021
b4e27ee
Use `async_trait` in sc-consensus-slots (#8461)
bkchr Mar 27, 2021
ec8a661
[pallet-staking] Refund unused weight for `payout_stakers` (#8458)
emostov Mar 28, 2021
505a8d6
make types within `generate_solution_type` macro explicit (#8447)
coriolinus Mar 28, 2021
13bea77
Implement `fungible::*` for Balances (#8454)
gavofyork Mar 28, 2021
f13a7f3
Bring back the on_finalize weight of staking. (#8463)
kianenigma Mar 29, 2021
099ee14
Use pathbuf for remote externalities (#8480)
hardliner66 Mar 29, 2021
2125b50
Benchmarking pallet-example (#8301)
Mar 29, 2021
c6ba793
Prepare UI tests for Rust 1.51 & new CI image (#8474)
bkchr Mar 29, 2021
a2fdd15
Add Social Network (#8065)
sangheraio Mar 29, 2021
9768df2
Enhancement on Substrate Node Template (#8473)
Mar 29, 2021
f3b3e62
Get rid of `test-helpers` feature in sc-consensus-babe (#8486)
bkchr Mar 30, 2021
d3f2044
Make `BlockImport` and `Verifier` async (#8472)
bkchr Mar 30, 2021
aa33441
helper macro to create storage types on the fly (#8456)
kianenigma Mar 30, 2021
88243c1
client: fix justifications migration (#8489)
andresilva Mar 30, 2021
3e96c69
Fix sync restart (#8497)
arkpar Mar 31, 2021
70f1b61
Duplicate logging to stdout (#8495)
arkpar Mar 31, 2021
bf200cc
Migrate `pallet-indices` to `pallet!` (#8465)
ascjones Mar 31, 2021
753187e
Fixed sync skipping some block announcements (#8459)
arkpar Mar 31, 2021
f794140
Expose key_owner(), so other pallets can look up validator ID by the …
en Mar 31, 2021
18e8b21
grandpa: always store justification for the latest finalized block (#…
andresilva Apr 1, 2021
67f882c
Introduce `OnSetCode` type into system config trait. (#8496)
gavofyork Apr 1, 2021
9f5a73f
Add ChildTriePrefixIterator and methods (#8478)
KiChjang Apr 1, 2021
b597818
Add a feedback when response is successfully sent (#8510)
tomaka Apr 1, 2021
619947e
tests for assets pallet (#8487)
ferrell-code Apr 1, 2021
3dc169d
Make `SetCode::set_code` return a result (#8515)
bkchr Apr 1, 2021
fb8b68f
Another tweak to GrandPa warp sync (#8514)
tomaka Apr 2, 2021
14b3030
upgrade wasmtime to 0.24.0 (#8356)
ordian Apr 2, 2021
2789fed
Fixes `storage_hash` caching issue and enables better caching for Cum…
bkchr Apr 2, 2021
52d5e19
Pin jsonrpsee (#8524)
c410-f3r Apr 3, 2021
d19c0e1
Properly declare errors in pallets that use decl_module (#8523)
KiChjang Apr 3, 2021
2ab715f
Fixed restoring state-db journals on startup (#8494)
arkpar Apr 3, 2021
67adfea
Use `log::error!` for bad mandatory (#8521)
bkchr Apr 4, 2021
cdc1bb1
Add nominators option to chain-spec-builder (#8502)
kianenigma Apr 5, 2021
89a1c7b
Adjust number of slots in sync requests channel (#8492)
tomaka Apr 5, 2021
701ff6f
Clean up log levels in sc_network (#8529)
tomaka Apr 5, 2021
22193e0
Add some trivial improvements to primitives runtime (#8528)
liuchengxu Apr 5, 2021
d5f992f
add more notes on changing epoch duration (#8491)
apopiak Apr 6, 2021
1a6f537
Revert storage cache optimization (#8535)
arkpar Apr 6, 2021
63f09f4
Don't report confusing unsupported protocol errors (#8482)
tomaka Apr 6, 2021
3362659
Require `FullCodec` on frame_system::Call (#8540)
bkchr Apr 6, 2021
a80b00a
Add `check --features try-runtime` CI job (#8532)
rcny Apr 6, 2021
4973e7e
Fix account ref-counting in session (#8538)
gavofyork Apr 6, 2021
97f1b63
Opt-out from fast instance reuse and foundation for other refactoring…
pepyakin Apr 6, 2021
f379cbe
Bump codec. (#8548)
gavofyork Apr 6, 2021
28dfa0b
Remove node-runtime dependency from node-rpc. (#8539)
ethernomad Apr 7, 2021
4cdecaf
Let's put up monthly pre-release tags (#8552)
gnunicorn Apr 7, 2021
49330a5
fix monthly tags (#8554)
s3krit Apr 7, 2021
7bb59a6
Fix monthly tags #2 (#8557)
s3krit Apr 7, 2021
f296656
Drain blocks on peer disconnect (#8553)
arkpar Apr 7, 2021
a1574d3
Clean test runner up (#8485)
Apr 7, 2021
7eb671f
Add an INDEX to the Instance trait (#8555)
shawntabrizi Apr 7, 2021
6c5b63a
Support code blobs compressed with zstd (#8549)
rphmeier Apr 7, 2021
05445dc
Add more asserts and debug_asserts (#8541)
hirschenberger Apr 7, 2021
fea6aa2
Add PoV Tracking to Benchmarking Pipeline (#8559)
shawntabrizi Apr 8, 2021
2690873
Add DefaultNoBound (#8542)
kianenigma Apr 8, 2021
c865c1e
remove real-overseer from polkadot compilation flags (#8560)
rphmeier Apr 8, 2021
a566661
Check every minute whether authority-discovery key has changed (#8575)
tomaka Apr 8, 2021
3297b9a
Introduce `node-bench-regression-guard` to Substrate's pipeline (#8519)
rcny Apr 8, 2021
b5c1c81
Allow lossless matching for Origin (#8576)
gavofyork Apr 8, 2021
4898eb3
Disallow failure for `node-bench-regression-guard` job (#8577)
rcny Apr 8, 2021
35b74db
`ModuleId` to `PalletId` - part of #8372 (#8477)
aurexav Apr 9, 2021
787ea59
Backing/GetBacking: Abstraction over pluralistic origins for XCM. (#8…
gavofyork Apr 9, 2021
4ec1f7b
Add trivial improvements to transaction pool (#8572)
liuchengxu Apr 9, 2021
e186f7c
clean arithmetic and unify names with the new api (#8581)
kianenigma Apr 9, 2021
2425d14
Cap the warp sync proof by size, not by fragments (#8578)
tomaka Apr 9, 2021
f6d19fa
Benchmark Transfer PoV Size with Increasing Numbers of Users (#8571)
shawntabrizi Apr 10, 2021
524b086
Purify `Contains`, add `IsInVec`, `All` and `SortedMembers` (#8589)
gavofyork Apr 10, 2021
44433f7
Fix `parameter_types!` macro (#8594)
bkchr Apr 12, 2021
e31813b
Fix buggy string comparison in OCW pallet example (#8602)
KiChjang Apr 12, 2021
fa21ba6
#8597 Update features resolver wasm build (#8598)
chrisdcosta Apr 12, 2021
3a8f1df
Pallet macro support `frame_system::Config` with args (#8606)
bkchr Apr 12, 2021
a382d70
WIP: fix Simnet trigger (#8493)
TriplEight Apr 12, 2021
c80cc4e
Ensure inherent are first (#8173)
gui1117 Apr 13, 2021
2201282
Change i8 to u8 on WithdrawReasons #8586 (#8591)
chrisdcosta Apr 13, 2021
62eca6c
Change assert(is_err()) to assert_noop to check state consistency on …
hirschenberger Apr 13, 2021
dcce8b4
contracts: Add RPC that allows instantiating of a contract (#8451)
athei Apr 13, 2021
e09d142
expose set_timestamp for runtime benchmarks (#8601)
xlc Apr 13, 2021
565078a
Trim compact solution for length during preparation (#8317)
coriolinus Apr 13, 2021
94ea191
build: update shell.nix (#8616)
andresilva Apr 14, 2021
99f8e8c
Add Sora network SS58 Address (#8261)
vmarkushin Apr 14, 2021
46049fc
Make non-validators listen on /ws by default (#8609)
tomaka Apr 14, 2021
bb799f4
Increase metric only if actually publishing (#8618)
tomaka Apr 14, 2021
3b0c289
Fix debug_assertion failing in authority discovery (#8599)
tomaka Apr 14, 2021
a76aadc
Introduce a "dynamic" block size limit for proposing (#8588)
bkchr Apr 14, 2021
c93ef27
Properly close notification substreams (#8534)
tomaka Apr 15, 2021
8c4e296
BoundedVec + Shims for Append/DecodeLength (#8556)
kianenigma Apr 16, 2021
0ce623a
Make pallet Assets instantiable (#8483)
olanod Apr 16, 2021
982df17
Remove `serde` requirement from FRAME macros (#8628)
bkchr Apr 16, 2021
22f09c6
CI updates (#8633)
TriplEight Apr 16, 2021
9531a1a
fix doc and dyn (#8631)
gui1117 Apr 17, 2021
6a76627
Authority Discovery to FRAME v2 (#8620)
ferrell-code Apr 18, 2021
46a64ac
Add benchmarks for pallet-membership (#8596)
kianenigma Apr 18, 2021
4b9a6bb
Update to libp2p 0.37 (#8625)
tomaka Apr 18, 2021
3a19eb6
Make pallet macro generate accessor to PalletInfo information on pall…
gui1117 Apr 19, 2021
282d57c
Update dependencies of pallet_contracts (#8637)
athei Apr 19, 2021
c550680
client: remove time unit from block time loaded message (#8639)
andresilva Apr 19, 2021
ebf2591
Enable --no-private-ipv4 by default for live chains (#8642)
tomaka Apr 20, 2021
681f188
Authority-discovery no longer publishes non-global IP addresses (#8643)
tomaka Apr 20, 2021
322b26a
Revert "Properly close notification substreams (#8534)" (#8646)
tomaka Apr 20, 2021
bc022b4
update jsonrpsee to 0.2.0-alpha.5 (#8644)
niklasad1 Apr 21, 2021
788b0bf
contracts: Allow () -> (i32) for backwards compatibility (#8656)
athei Apr 22, 2021
c580df6
Off-chain indexing is independent from workers (#8659)
tomusdrw Apr 22, 2021
4551b3c
impl Zero and One for fixed point numbers (#8647)
xlc Apr 22, 2021
20b1a0e
migrate pallet-elections-phragmen to attribute macros (#8044)
kianenigma Apr 23, 2021
bb22414
Use host max log level when initializing the `RuntimeLogger` (#8655)
bkchr Apr 23, 2021
8060a43
Simplify some Option / Result / ? operator patterns (#8653)
huitseeker Apr 23, 2021
4cbeeca
Add BoundedVec to Treasury Pallet (#8665)
shawntabrizi Apr 26, 2021
926c1ec
Upgrade `cargo_metadata` to 0.13.1 (#8670)
Apr 27, 2021
0856e07
Introduce macro for building Contains impl based on a match (#8675)
gavofyork Apr 27, 2021
acd1741
Update slashing.rs (#8676)
Apr 28, 2021
6181e37
Support sending and receiving multiple Justifications (#8266)
octol Apr 28, 2021
37e97cf
grandpa-rpc: allow proving finality of blocks from latest authority s…
octol Apr 28, 2021
febdc30
Remove unneeded `Ord` bound from All, Contains supports tuples (#8691)
gavofyork Apr 28, 2021
3c216fa
Bump `jsonrpsee` to `alpha.6` release (#8690)
HCastano Apr 28, 2021
dc9acd2
Fix reliance on non-empty NodeInfo::endpoints (#8684)
Apr 29, 2021
9514e93
Merge commit 'dc9acd2d74a5451a63e34060a4c7869021780b3e' of github.com…
MRamanenkau Sep 16, 2022
ac496c8
Clean up
MRamanenkau Sep 16, 2022
15dc326
Make it build
MRamanenkau Sep 16, 2022
e442e98
Make tests build
MRamanenkau Sep 16, 2022
7d1ab21
Update ddc-pallet
MRamanenkau Sep 16, 2022
759a749
Update spec version and add release notes
MRamanenkau Sep 19, 2022
d16d22c
Self review
MRamanenkau Sep 19, 2022
ffd5442
Merge branch 'feature/update-to-polkadot-v0-8-30' into feature/update…
MRamanenkau Sep 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
43 changes: 43 additions & 0 deletions .github/workflows/monthly-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Monthly Snapshot Tag

on:
schedule:
- cron: "0 1 1 * *"
workflow_dispatch:

jobs:
build:
name: Take Snapshot
runs-on: ubuntu-latest
steps:
- name: Get the tags by date
id: tags
run: |
echo "::set-output name=new::$(date +'monthly-%Y-%m')"
echo "::set-output name=old::$(date -d'1 month ago' +'monthly-%Y-%m')"
- name: Checkout branch "master"
uses: actions/checkout@v2
with:
ref: 'master'
fetch-depth: 0
- name: Generate changelog
id: changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "# Automatic snapshot pre-release ${{ steps.tags.outputs.new }}" > Changelog.md
echo "" >> Changelog.md
echo "## Changes since last snapshot (${{ steps.tags.outputs.old }})" >> Changelog.md
echo "" >> Changelog.md
./.maintain/gitlab/generate_changelog.sh ${{ steps.tags.outputs.old }} >> Changelog.md
- name: Release snapshot
id: release-snapshot
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tags.outputs.new }}
release_name: ${{ steps.tags.outputs.new }}
draft: false
prerelease: true
body_path: Changelog.md
128 changes: 92 additions & 36 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ stages:
- build
- publish
- deploy
- flaming-fir

workflow:
rules:
Expand Down Expand Up @@ -60,12 +59,15 @@ default:
- kubernetes-parity-build
interruptible: true

.rust-info-script: &rust-info-script
- rustup show
- cargo --version
- sccache -s

.docker-env: &docker-env
image: "${CI_IMAGE}"
before_script:
- rustup show
- cargo --version
- sccache -s
- *rust-info-script
retry:
max: 2
when:
Expand All @@ -81,7 +83,6 @@ default:
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1

Expand All @@ -92,38 +93,49 @@ default:
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1

.build-refs: &build-refs
.test-refs-no-trigger-prs-only: &test-refs-no-trigger-prs-only
rules:
# .publish-refs with manual on PRs
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
when: manual
allow_failure: true

.publish-refs: &publish-refs
.build-refs: &build-refs
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1

.nightly-pipeline: &nightly-pipeline
rules:
# this job runs only on nightly pipeline with the mentioned variable, against `master` branch
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "nightly"

.merge-ref-into-master-script: &merge-ref-into-master-script
- if [ $CI_COMMIT_REF_NAME != "master" ]; then
git fetch origin +master:master;
git fetch origin +$CI_COMMIT_REF_NAME:$CI_COMMIT_REF_NAME;
git checkout master;
git config user.email "ci@gitlab.parity.io";
git merge $CI_COMMIT_REF_NAME --verbose --no-edit;
fi

.cargo-check-benches-script: &cargo-check-benches-script
- mkdir -p artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
- SKIP_WASM_BUILD=1 time cargo +nightly check --benches --all
- 'cargo run --release -p node-bench -- ::node::import::native::sr25519::transfer_keep_alive::paritydb::small --json
| tee artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA/::node::import::native::sr25519::transfer_keep_alive::paritydb::small.json'
- 'cargo run --release -p node-bench -- ::trie::read::small --json
| tee artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA/::trie::read::small.json'
- sccache -s

#### stage: .pre

skip-if-draft:
Expand Down Expand Up @@ -222,12 +234,37 @@ cargo-deny:
cargo-check-benches:
stage: test
<<: *docker-env
<<: *test-refs-no-trigger
<<: *test-refs
<<: *collect-artifacts
before_script:
# merges in the master branch on PRs
- *merge-ref-into-master-script
- *rust-info-script
script:
- SKIP_WASM_BUILD=1 time cargo +nightly check --benches --all
- cargo run --release -p node-bench -- ::node::import::native::sr25519::transfer_keep_alive::paritydb::small
- cargo run --release -p node-bench -- ::trie::read::small
- sccache -s
- *cargo-check-benches-script

node-bench-regression-guard:
# it's not belong to `build` semantically, but dag jobs can't depend on each other
# within the single stage - https://gitlab.com/gitlab-org/gitlab/-/issues/30632
# more: https://github.com/paritytech/substrate/pull/8519#discussion_r608012402
stage: build
<<: *docker-env
<<: *test-refs-no-trigger-prs-only
needs:
# this is a DAG
- job: cargo-check-benches
artifacts: true
# this does not like a DAG, just polls the artifact
- project: $CI_PROJECT_PATH
job: cargo-check-benches
ref: master
artifacts: true
variables:
CI_IMAGE: "paritytech/node-bench-regression-guard:latest"
before_script: [""]
script:
- 'node-bench-regression-guard --reference artifacts/benches/master-*
--compare-with artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA'

cargo-check-subkey:
stage: test
Expand All @@ -238,6 +275,14 @@ cargo-check-subkey:
- SKIP_WASM_BUILD=1 time cargo check --release
- sccache -s

cargo-check-try-runtime:
stage: test
<<: *docker-env
<<: *test-refs
script:
- time cargo check --features try-runtime
- sccache -s

test-deterministic-wasm:
stage: test
<<: *docker-env
Expand Down Expand Up @@ -272,7 +317,7 @@ test-linux-stable: &test-linux
script:
# this job runs all tests in former runtime-benchmarks, frame-staking and wasmtime tests
- time cargo test --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml
- time cargo test -p frame-support-test --features=conditional-storage --manifest-path frame/support/test/Cargo.toml
- time cargo test -p frame-support-test --features=conditional-storage --manifest-path frame/support/test/Cargo.toml # does not reuse cache 1 min 44 sec
- SUBSTRATE_TEST_TIMEOUT=1 time cargo test -p substrate-test-utils --release --verbose --locked -- --ignored timeout
- sccache -s

Expand All @@ -283,7 +328,6 @@ unleash-check:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
Expand Down Expand Up @@ -336,7 +380,7 @@ check-web-wasm:
# Note: we don't need to test crates imported in `bin/node/cli`
- time cargo build --manifest-path=client/consensus/aura/Cargo.toml --target=wasm32-unknown-unknown --features getrandom
# Note: the command below is a bit weird because several Cargo issues prevent us from compiling the node in a more straight-forward way.
- time cargo +nightly build --manifest-path=bin/node/cli/Cargo.toml --no-default-features --features browser --target=wasm32-unknown-unknown -Z features=itarget
- time cargo +nightly build --manifest-path=bin/node/cli/Cargo.toml --no-default-features --features browser --target=wasm32-unknown-unknown
# with-tracing must be explicitly activated, we run a test to ensure this works as expected in both cases
- time cargo +nightly test --manifest-path primitives/tracing/Cargo.toml --no-default-features
- time cargo +nightly test --manifest-path primitives/tracing/Cargo.toml --no-default-features --features=with-tracing
Expand Down Expand Up @@ -407,7 +451,7 @@ test-browser-node:
CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER: "wasm-bindgen-test-runner"
WASM_BINDGEN_TEST_TIMEOUT: 120
script:
- cargo +nightly test --target wasm32-unknown-unknown -p node-browser-testing -Z features=itarget
- cargo +nightly test --target wasm32-unknown-unknown -p node-browser-testing

build-linux-substrate: &build-binary
stage: build
Expand Down Expand Up @@ -491,7 +535,7 @@ build-rust-doc:
#### stage: publish

.build-push-docker-image: &build-push-docker-image
<<: *publish-refs
<<: *build-refs
<<: *kubernetes-build
image: quay.io/buildah/stable
variables: &docker-build-vars
Expand Down Expand Up @@ -519,15 +563,16 @@ build-rust-doc:
- buildah info
- buildah push --format=v2s2 "$IMAGE_NAME:$VERSION"
- buildah push --format=v2s2 "$IMAGE_NAME:latest"
# pass artifacts to the trigget-simnet job
- echo "VERSION=${VERSION}" > build.env
- echo "TRIGGERER=${CI_PROJECT_NAME}" >> build.env
after_script:
- buildah logout "$IMAGE_NAME"
# pass artifacts to the trigger-simnet job
- echo "IMAGE_NAME=${IMAGE_NAME}" > ./artifacts/$PRODUCT/build.env
- echo "IMAGE_TAG=${VERSION}" >> ./artifacts/$PRODUCT/build.env

publish-docker-substrate:
stage: publish
<<: *build-push-docker-image
<<: *build-refs
needs:
- job: build-linux-substrate
artifacts: true
Expand All @@ -538,7 +583,7 @@ publish-docker-substrate:
reports:
# this artifact is used in trigger-simnet job
# https://docs.gitlab.com/ee/ci/multi_project_pipelines.html#with-variable-inheritance
dotenv: artifacts/substrate/build.env
dotenv: ./artifacts/substrate/build.env

publish-docker-subkey:
stage: publish
Expand All @@ -552,7 +597,7 @@ publish-docker-subkey:

publish-s3-release:
stage: publish
<<: *publish-refs
<<: *build-refs
<<: *kubernetes-build
needs:
- job: build-linux-substrate
Expand Down Expand Up @@ -581,7 +626,7 @@ publish-s3-doc:
artifacts: true
- job: build-linux-substrate
artifacts: false
<<: *publish-refs
<<: *build-refs
<<: *kubernetes-build
variables:
GIT_STRATEGY: none
Expand Down Expand Up @@ -651,10 +696,21 @@ deploy-prometheus-alerting-rules:

trigger-simnet:
stage: deploy
<<: *nightly-pipeline
image: paritytech/tools:latest
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "master"
needs:
- job: publish-docker-substrate
trigger:
project: parity/simnet
branch: master
strategy: depend
# `build.env` brings here `$IMAGE_NAME` and `$IMAGE_TAG` (`$VERSION` here,
# i.e. `2643-0.8.29-5f689e0a-6b24dc54`).
variables:
TRGR_PROJECT: ${CI_PROJECT_NAME}
TRGR_REF: ${CI_COMMIT_REF_NAME}
# simnet project ID
DWNSTRM_ID: 332
script:
# API trigger for a simnet job
- ./scripts/gitlab/trigger_pipeline.sh
5 changes: 1 addition & 4 deletions .maintain/gitlab/check_polkadot_companion_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,4 @@ fi
diener patch --crates-to-patch ../ --substrate --path Cargo.toml

# Test Polkadot pr or master branch with this Substrate commit.
time cargo test --all --release --verbose --features=real-overseer

cd parachain/test-parachains/adder/collator/
time cargo test --release --verbose --locked --features=real-overseer
time cargo test --all --release --verbose
31 changes: 15 additions & 16 deletions .maintain/gitlab/check_polkadot_companion_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,14 @@ fi
boldprint "companion pr: #${pr_companion}"

# check the status of that pull request - needs to be
# mergable and approved
# approved and mergable

curl -H "${github_header}" -sS -o companion_pr.json \
${github_api_polkadot_pull_url}/${pr_companion}

pr_head_sha=$(jq -r -e '.head.sha' < companion_pr.json)
boldprint "Polkadot PR's HEAD SHA: $pr_head_sha"

if jq -e .merged < companion_pr.json >/dev/null
then
boldprint "polkadot pr #${pr_companion} already merged"
exit 0
fi

if jq -e '.mergeable' < companion_pr.json >/dev/null
then
boldprint "polkadot pr #${pr_companion} mergeable"
else
boldprint "polkadot pr #${pr_companion} not mergeable"
exit 1
fi

curl -H "${github_header}" -sS -o companion_pr_reviews.json \
${github_api_polkadot_pull_url}/${pr_companion}/reviews

Expand All @@ -98,6 +84,19 @@ if [ -z "$(jq -r -e '.[].state | select(. == "APPROVED")' < companion_pr_reviews
fi

boldprint "polkadot pr #${pr_companion} state APPROVED"
exit 0

if jq -e .merged < companion_pr.json >/dev/null
then
boldprint "polkadot pr #${pr_companion} already merged"
exit 0
fi

if jq -e '.mergeable' < companion_pr.json >/dev/null
then
boldprint "polkadot pr #${pr_companion} mergeable"
else
boldprint "polkadot pr #${pr_companion} not mergeable"
exit 1
fi

exit 0
2 changes: 1 addition & 1 deletion .maintain/gitlab/generate_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $line"
runtime_changes="$runtime_changes
$line"
fi
if has_label 'paritytech/substrate' "$pr_id" 'D1-runtime-migration'; then
if has_label 'paritytech/substrate' "$pr_id" 'E1-runtime-migration'; then
migrations="$migrations
$line"
fi
Expand Down
Loading