Stream: cranelift

Topic: How to subscribe only to cranelift things


view this post on Zulip fitzgen (he/him) (Mar 10 2020 at 23:01):

After the repo merge, some folks have been swamped in github emails for wasmtime things, when they only want to keep an eye on cranelift things. Well, now you can do that!

  1. We now automatically label pull requests that touch cranelift/* files with the "cranelift" label. See https://github.com/bytecodealliance/wasmtime/blob/master/.github/labeler.yml for more paths that get automatically labeled, and feel free to add new ones!

  2. You can opt into getting @'d by a bot whenever a pull request or issue is labeled with a label that you care about. Add your username and list of labels you want to subscribe to here: https://github.com/bytecodealliance/wasmtime/blob/master/.github/subscribe-to-label.json

The one gap is that this doesn't cover triaging new issues that didn't use an issue template (which automatically apply labels). I think you'll have to lean on those of us who are watching the full repo to triage and label new issues correctly.

Standalone JIT-style runtime for WebAssembly, using Cranelift - bytecodealliance/wasmtime
Standalone JIT-style runtime for WebAssembly, using Cranelift - bytecodealliance/wasmtime

view this post on Zulip fitzgen (he/him) (Mar 11 2020 at 17:27):

quick update:

it looks like the subscribe-to-label action is working: https://github.com/bytecodealliance/wasmtime/issues/1220#issuecomment-597763152

however, it looks like the automatic labeler action is not working. for example, I would have expected this pull request to automatically have been labeled "fuzzing" but it wasn't: https://github.com/bytecodealliance/wasmtime/pull/1277

I'll look into this some more and see if I can figure out what's going on. stay tuned for updates.

For the new wasi.h we can create own wasi_instance_t* wasi_instance_new. But there is no away to access the wasm API using the wasi_instance_t handle. E.g. for getting the export table with wasm_in...
I plan on adding all the spec tests to the corpora as well, but I want to wait until after we merge this so that they look like new interesting inputs that cover new code paths.

view this post on Zulip Pat Hickey (Mar 11 2020 at 17:44):

thank you for your work on this!

view this post on Zulip fitzgen (he/him) (Mar 11 2020 at 18:11):

I overlooked this in the README of the labeler action:

Note that only pull requests being opened from the same repository can be labeled. This action will not currently work for pull requests from forks -- like is common in open source projects -- because the token for forked pull request workflows does not have write permissions.

D'oh.

There is an open PR that makes the labeler run on a cron schedule, rather than on pull requests, and it should have the base repo's permissions when run then. I'll look into forking the labeler action and rebasing that PR onto our fork.

view this post on Zulip fitzgen (he/him) (Mar 11 2020 at 19:57):

Looks like we need to also run the subscribe-to-label action on a cron schedule for pull requests (as opposed to when a label is added to an issue): https://github.com/bytecodealliance/wasmtime/pull/1290/checks?check_run_id=501503929#step:2:25

This commit is a continuation of #1237 and updates the API of Func to allow defining host functions which have easy access to a caller's memory in particular. The new APIs look like so: The Fu...

view this post on Zulip fitzgen (he/him) (Mar 11 2020 at 21:03):

Okay the labeler is working now: https://github.com/bytecodealliance/wasmtime/pull/920#event-3120495952

Still working on a cron schedule mode for the subscribe-to-label action

Depends on / will need a rebase once it lands: #919

view this post on Zulip Alex Crichton (Mar 11 2020 at 21:56):

@fitzgen (he/him) looks like it works! - https://github.com/bytecodealliance/wasmtime/pull/1294#event-3120631746

prior to this change, they were relative to CARGO_MANIFEST_DIR for the wiggle-generate crate.

view this post on Zulip fitzgen (he/him) (Mar 11 2020 at 21:57):

yeah, the automatic labeler works, the @-notifier for label subscriptions is still a WIP

view this post on Zulip fitzgen (he/him) (Mar 11 2020 at 21:57):

(the @-notifier is a WIP for PRs; it works for issues already)

view this post on Zulip Alex Crichton (Mar 12 2020 at 17:06):

@fitzgen (he/him) you may be interested in this failure -- https://github.com/bytecodealliance/wasmtime/runs/503783076?check_suite_focus=true

Standalone JIT-style runtime for WebAssembly, using Cranelift - bytecodealliance/wasmtime

view this post on Zulip fitzgen (he/him) (Mar 12 2020 at 17:07):

yeah, I'm debugging now

github actions are very fun where you push and see what happens and then wait 5 minutes for the next run to find the next bug...

view this post on Zulip Alex Crichton (Mar 12 2020 at 17:18):

@fitzgen (he/him) er I assume you see the torrent of notifications?

view this post on Zulip Alex Crichton (Mar 12 2020 at 17:18):

https://github.com/bytecodealliance/wasmtime/pull/1013#issuecomment-598306884 e.g.

This commit is the start of the modernization of the implementation of interface types in wasmtime. This has a long way to go, and like the previous iteration, chunks of it are already destined to ...

view this post on Zulip fitzgen (he/him) (Mar 12 2020 at 17:19):

oh god... I didn't see the comments

I'll disable temporarily

view this post on Zulip fitzgen (he/him) (Mar 12 2020 at 17:22):

https://github.com/bytecodealliance/wasmtime/pull/1300

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

view this post on Zulip fitzgen (he/him) (Mar 12 2020 at 18:12):

ok I think I fixed the bot: https://github.com/fitzgen/wasmtime/pull/2#issuecomment-598342193

going to wait to re-enable on bytecodealliance/wasmtime until I verify that it isn't making duplicate comments next time it is scheduled

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

view this post on Zulip Pat Hickey (Mar 12 2020 at 18:15):

just curious, where did the quoting every letter bug come from? ive made that bug in a bunch of different programming languages but never before in javascript :)

view this post on Zulip fitzgen (he/him) (Mar 12 2020 at 18:16):

I did new Set(...arrayOfLabels) when I should have done new Set(arrayOfLabels) :-/

view this post on Zulip Pat Hickey (Mar 12 2020 at 18:17):

right on. its a super easy bug to make

view this post on Zulip fitzgen (he/him) (Mar 12 2020 at 18:17):

typescript would have caught this, maybe I should be using that

view this post on Zulip fitzgen (he/him) (Mar 12 2020 at 19:55):

ok, I've fixed the bot! it now parses labels correctly and understands when it has already left a comment notifying folks about a certain label subscription.

going to re-enable it now


Last updated: Dec 23 2024 at 13:07 UTC