Skip to content

Final durability related refactorings#1278

Merged
vigoo merged 8 commits intomainfrom
vigoo/final-durability-refactoring
Jan 30, 2025
Merged

Final durability related refactorings#1278
vigoo merged 8 commits intomainfrom
vigoo/final-durability-refactoring

Conversation

@vigoo
Copy link
Contributor

@vigoo vigoo commented Jan 29, 2025

The useful parts of #1240 that we decided to not finish:

  • Test dsl improvements (store component builder api)
  • Changed how wit dependencies are fetched - this allows a single wit-deps based fetch and then creating separate subsets for various purposes. In the original PR this was required to create the wit/deps directory of durable-wasi, but even without that I think it is better than the previous, custom build.rs based solution.
  • Some changes in the feature-controlled parts of golem-common that were used to minimize the dependencies used by durable-wasi, but it makes sense to have them anyway

Resolves #1225

vigoo added 3 commits January 29, 2025 17:35
Test dsl improvements
Adjust to latest golem-wit changes (host side)
Adjust to latest golem-wit changes
Changed how wit dependencies are fetched
@vigoo vigoo mentioned this pull request Jan 29, 2025
dependencies = ["wit-host"]
script_runner = "@duckscript"
script = """
rm -r wasm-rpc/wit/deps
Copy link
Contributor

Choose a reason for hiding this comment

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

do we really want to delete and re-get the deps on basically every command? (i know that wit-deps uses a cache, and probably not a huge performance problem, still feels wasteful)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not "regetting" them just copying them from the project root's wit/deps. We can try to make a better script for it but

  • it needs to be working on all platforms - that's why i used this 🦆 thing
  • it needs to remove things that are no longer there - i already ran into that multiple times as i was trying to figure out the proper name for the new wit package

Copy link
Contributor

Choose a reason for hiding this comment

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

by "regetting" i meant wit-host also runs on everything now, and yes, i understand that it would need a "task checker", will think about it (ironically golem-cli app could do it :D)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The wit-dep update is designed to be runnable every time. That's why it keeps a lock file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(Based on bytecodealliance/wit-deps#202 being closed)

@vigoo vigoo merged commit 48ee6a6 into main Jan 30, 2025
19 checks passed
@vigoo vigoo deleted the vigoo/final-durability-refactoring branch January 30, 2025 08:51
vigoo added a commit that referenced this pull request Aug 15, 2025
* Final durability related refactorings

Test dsl improvements
Adjust to latest golem-wit changes (host side)
Adjust to latest golem-wit changes
Changed how wit dependencies are fetched

* Undo some more

* Fix

* Revert test change

* Fix metadata check

* Fix
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.

Move the durable WASI wrappers into a separate WASM crate

2 participants