Skip to content

Commit 03916a5

Browse files
stevenjno30bitbkioshn
authored
feat(hermes): dynamic init constuctor fix. (#527)
* feat(hermes): New runtime extension initialization/finalization traits. * fix(hermes): remove file made when debugging * fix(hermes): spelling * fix(hermes): dependencies * fix(hermes): format * Update hermes/bin/src/runtime_extensions/init/errors.rs Co-authored-by: Artur Helmanau <[email protected]> * fix(hermes): Update the runtime init errors and executor based on suggestions * fix(hermes): Add TODO and comment to linked issue for making a key locked concurrent map. * fix(hermes): bump wasmtime * fix(hermes): recreated module id, instead of using the one we already created. * fix(hermes): comments * Update hermes/bin/src/runtime_extensions/init/errors.rs Co-authored-by: bkioshn <[email protected]> * Update hermes/bin/src/runtime_extensions/init/errors.rs Co-authored-by: bkioshn <[email protected]> * fix(hermes): ignore hermes target artifacts * fix(hermes): bump earthfiles to latest cat-ci to fix build issues * docs(hermes): Put commented out line in tun-athena showing how to enable debug level logs. * fix(hermes): Error message now properly explains whats wrong. * fix(hermes): put back missing constructor argument for traitreg traits * fix(hermes): Fixup the app name inconsistencies and move app initialization to try and move it before modules * fix(general): rust standard configs * fix(hermes): add unit tests to detect improperly configured runtime extension initialization * fix(general): cleanup CODEOWNERS for all team members * fix(general): typo * fix(general): spelling --------- Co-authored-by: Artur Helmanau <[email protected]> Co-authored-by: bkioshn <[email protected]>
1 parent ee36a24 commit 03916a5

File tree

42 files changed

+146
-55
lines changed

Some content is hidden

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

42 files changed

+146
-55
lines changed

.config/dictionaries/project.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ aarch
33
abnf
44
addrr
55
adminer
6+
aido
67
apskhem
78
asat
89
asyncio

.github/CODEOWNERS

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
/dashboard/ @minikin
1+
* @stevenj @cong-or @rafal-ch @no30bit @bkioshn @aido-mth
22

3-
/hermes/ @stevenj @cong-or @rafal-ch
3+
/dashboard/ @minikin @stevenj
44

5-
/wasm/ @stevenj @cong-or @rafal-ch @no30bit
6-
7-
.md @stevenj @minikin
5+
.md @stevenj @minikin

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ Cargo.lock
9797
*.hmod
9898
*.wasm
9999
*.happ
100-
100+
**/target/**/*

Earthfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.5.4 AS mdlint-ci
4-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.5.4 AS cspell-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.5.14 AS mdlint-ci
4+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.5.14 AS cspell-ci
55

66
# cspell: words livedocs sitedocs
77

docs/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.5.4 AS docs-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.5.14 AS docs-ci
44

55
IMPORT .. AS repo
66
IMPORT ../hermes AS hermes

hermes/.config/nextest.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ store-success-output = true
4747
# Note that if a description can be extracted from the output, it is always stored in the
4848
# <description> element.
4949
store-failure-output = true
50+
51+
[test-groups]
52+
serial-integration = { max-threads = 1 }
53+
54+
[[profile.default.overrides]]
55+
filter = 'test(/^serial::/)'
56+
test-group = 'serial-integration'
57+
58+
[[profile.ci.overrides]]
59+
filter = 'test(/^serial::/)'
60+
test-group = "serial-integration"

hermes/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.5.11 AS rust-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.5.14 AS rust-ci
44
#IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:feat/disallow-debug-format AS rust-ci
55

66
# Use when debugging cat-ci locally.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hermes

hermes/apps/athena/modules/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ VERSION 0.8
77

88
# Catalyst CI Rust Environment - provides pre-configured Rust toolchain with WASM support
99
# This includes: rustc, cargo, wasm32-wasip2 target, optimization tools, and build utilities
10-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.4.5 AS rust-ci
10+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.5.14 AS rust-ci
1111

1212
# Alternative for local catalyst-ci debugging (uncomment when needed):
1313
# IMPORT ../../../catalyst-ci/earthly/rust AS rust-ci

hermes/bin/src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Application {
5151
/// Create a new Hermes app
5252
#[must_use]
5353
pub(crate) fn new(
54-
app_name: String,
54+
app_name: ApplicationName,
5555
vfs: Vfs,
5656
modules: Vec<Module>,
5757
) -> Self {
@@ -60,7 +60,7 @@ impl Application {
6060
.map(|module| (module.id().clone(), module))
6161
.collect();
6262
Self {
63-
name: ApplicationName(app_name),
63+
name: app_name,
6464
indexed_modules,
6565
vfs: Arc::new(vfs),
6666
}

0 commit comments

Comments
 (0)