Skip to content

Improve logging runtime packaging and naming#869

Merged
bkchr merged 15 commits into
polkadot-fellows:mainfrom
raymondkfcheung:ray-rename-zip
Nov 5, 2025
Merged

Improve logging runtime packaging and naming#869
bkchr merged 15 commits into
polkadot-fellows:mainfrom
raymondkfcheung:ray-rename-zip

Conversation

@raymondkfcheung

@raymondkfcheung raymondkfcheung commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

Updates job name and archive naming for better clarity of logging-enabled runtime builds.

Continues #767, closes #268

  • Does not require a CHANGELOG entry

@raymondkfcheung raymondkfcheung changed the title Name logging enabled runtimes Improve logging runtime packaging and naming Aug 27, 2025
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Comment thread .github/workflows/release.yml Outdated
@github-actions github-actions Bot requested review from acatangiu and bkontur August 30, 2025 00:34
@github-actions

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename all these "compact-wasm" stuff to "debug-builds". "Compact" makes no sense and is really confusing when reading this file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed.

@bkontur

bkontur commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

@raymondkfcheung we should also rename (remove/change compact):

COMPACT_FEATURES: "--features try-runtime,metadata-hash"
...
- name: Build ${{ matrix.runtime.name }} (compact)
...
- name: Upload ${{ matrix.runtime.name }} Wasm (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"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkontur renamed

${{ steps.srtool_build.outputs.wasm_compressed }}

- name: Build ${{ matrix.runtime.name }} (compact)
- name: Build ${{ matrix.runtime.name }} (try-runtime & logging)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkontur renamed

uses: chevdor/srtool-actions@v0.8.0
env:
BUILD_OPTS: ${{ env.COMPACT_FEATURES }}
BUILD_OPTS: ${{ env.TRY_RUNTIME_LOGGING_FEATURES }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkontur renamed

profile: "release"

- name: Upload ${{ matrix.runtime.name }} Wasm (compact)
- name: Upload ${{ matrix.runtime.name }} Wasm (try-runtime & logging)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkontur renamed

chain: ${{ matrix.runtime.name }}
package: ${{ matrix.runtime.package }}
runtime_dir: ${{ matrix.runtime.path }}
profile: "release"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkontur & @ggwpez Regarding to your question about release, production is without logging, we need release or debug.

#767 (comment)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@raymondkfcheung raymondkfcheung Sep 26, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

production is without logging, why/where is this configured?

This is a feature enabled for the runtimes.

@github-actions github-actions Bot requested a review from bkontur September 26, 2025 13:54
@bkchr bkchr enabled auto-merge (squash) November 5, 2025 12:07
@bkchr bkchr merged commit c49b4bf into polkadot-fellows:main Nov 5, 2025
90 of 169 checks passed
@raymondkfcheung raymondkfcheung deleted the ray-rename-zip branch November 5, 2025 14:09
pepoviola pushed a commit to pepoviola/polkadot-fellows-runtimes that referenced this pull request Nov 12, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve the runtime release process to include debug wasm in artifacts

4 participants