Skip to content

Conversation

@dicej
Copy link
Contributor

@dicej dicej commented Oct 17, 2023

This builds on Guy's earlier, unfinished work. I've ported over all the resource tests I wrote for componentize-py and tried to make a minimal number of changes needed to get them passing.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej dicej changed the title Resources implement support for resources Oct 17, 2023
@guybedford guybedford mentioned this pull request Oct 17, 2023
@guybedford
Copy link

This is tremendous work, thank you @dicej for picking it up.

Now that the jco PR has been marged, we can get this CI going against the jco main branch.

Will aim to review further very soon.

@guybedford
Copy link

I've released jco@0.12.2, so we can try that here now.

@dicej
Copy link
Contributor Author

dicej commented Oct 19, 2023

I've released jco@0.12.2, so we can try that here now.

Thanks; I just pushed an update. CI will still fail due to the resource-floats test triggering the name clash in the host bindings, which I believe you're working on.

@guybedford
Copy link

Yeah, that fix will be coming in the next major which will include the WIT updates, so I wanted to get out the patch in the mean time.

@guybedford
Copy link

jco@0.12.3 should fix the remaining resource generation bugs here now.

This builds on Guy's earlier, unfinished work.  I've ported over all the
resource tests I wrote for `componentize-py` and tried to make a minimal number
of changes needed to get them passing.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

switch to upstream `js-component-bindgen`

Note that package.json still uses a relative path to pull in `jco`, and my
attempt to point it to the GitHub repo failed, so I'm not sure what the next
step is there.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

update package.json to use Jco 0.12.2

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

update `jco` dependencies

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej
Copy link
Contributor Author

dicej commented Oct 23, 2023

Just updated to jco 0.12.3. The resource-floats test is fixed, but the resource-alias-redux test is failing now, unfortunately. It seems that the generated host bindings for the test function exported by the component are wrong, but I think the code that jco 0.12.2 was generating was also wrong (just in a way that coincidentally allowed the test to pass).

dicej and others added 4 commits October 23, 2023 16:10
This builds on Guy's earlier, unfinished work.  I've ported over all the
resource tests I wrote for `componentize-py` and tried to make a minimal number
of changes needed to get them passing.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Note that package.json still uses a relative path to pull in `jco`, and my
attempt to point it to the GitHub repo failed, so I'm not sure what the next
step is there.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@guybedford guybedford marked this pull request as ready for review October 24, 2023 03:07
@guybedford
Copy link

@dicej I've pushed an update to this PR for jco@0.13, with the update to the latest WITs for WASI as well. I believe all tests should be passing now.

Guy Bedford and others added 4 commits October 23, 2023 22:59
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej
Copy link
Contributor Author

dicej commented Oct 24, 2023

I've verified that the tests are all passing now. The CI issues seem to be unrelated.

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.

2 participants