Improve logging runtime packaging and naming#869
Conversation
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
|
Review required! Latest push from author must always be reviewed |
| pattern: '*-compact' | ||
|
|
||
| - name: Create compact-wasms.zip | ||
| - name: Create try-runtime and logging enabled runtimes |
There was a problem hiding this comment.
Please rename all these "compact-wasm" stuff to "debug-builds". "Compact" makes no sense and is really confusing when reading this file.
|
@raymondkfcheung we should also rename (remove/change compact): |
| env: | ||
| PROD_FEATURES: "--features on-chain-release-build" | ||
| COMPACT_FEATURES: "--features try-runtime,metadata-hash" | ||
| TRY_RUNTIME_LOGGING_FEATURES: "--features try-runtime,metadata-hash" |
| ${{ steps.srtool_build.outputs.wasm_compressed }} | ||
|
|
||
| - name: Build ${{ matrix.runtime.name }} (compact) | ||
| - name: Build ${{ matrix.runtime.name }} (try-runtime & logging) |
| uses: chevdor/srtool-actions@v0.8.0 | ||
| env: | ||
| BUILD_OPTS: ${{ env.COMPACT_FEATURES }} | ||
| BUILD_OPTS: ${{ env.TRY_RUNTIME_LOGGING_FEATURES }} |
| profile: "release" | ||
|
|
||
| - name: Upload ${{ matrix.runtime.name }} Wasm (compact) | ||
| - name: Upload ${{ matrix.runtime.name }} Wasm (try-runtime & logging) |
| chain: ${{ matrix.runtime.name }} | ||
| package: ${{ matrix.runtime.package }} | ||
| runtime_dir: ${{ matrix.runtime.path }} | ||
| profile: "release" |
There was a problem hiding this comment.
just out of curiosity, production is without logging, why/where is this configured?
[profile.release]
# Polkadot runtime requires unwinding.
panic = "unwind"
opt-level = 3
[profile.production]
inherits = "release"
lto = true
codegen-units = 1
There was a problem hiding this comment.
I've no ideas where the config is. When I download production runtimes, there is no logging-enabled. But with release runtimes, there are logging-enabled.
There was a problem hiding this comment.
productionis without logging, why/where is this configured?
This is a feature enabled for the runtimes.
Updates job name and archive naming for better clarity of logging-enabled runtime builds. Continues polkadot-fellows#767, closes polkadot-fellows#268 - [x] Does not require a CHANGELOG entry --------- Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Adrian Catangiu <adrian@parity.io> Co-authored-by: Bastian Köcher <git@kchr.de>
Updates job name and archive naming for better clarity of logging-enabled runtime builds.
Continues #767, closes #268