Stream: wasmtime

Topic: Merge Queue


view this post on Zulip Alex Crichton (Feb 16 2023 at 18:51):

I'm about to enable the merge queue which means that no one will be able to merge anything until the first PR merges, and after the first PR merges everyone will have to rebase on that PR to ensure that their PR CI is running the right CI to get added to the queue.

I'll post here once I actually update the branch protections.

view this post on Zulip Alex Crichton (Feb 16 2023 at 18:52):

I plan to do it within the next half hour though

view this post on Zulip Alex Crichton (Feb 16 2023 at 18:58):

hm ok, actually gonna update the settings now, so nothing will be able to merge for a bit while https://github.com/bytecodealliance/wasmtime/pull/5766 is testing

GitHub recently made its merge queue feature available for use in public repositories owned by organizations meaning that the Wasmtime repository is a candidate for using this. GitHub's Merge Queue...

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:03):

I'm realizing now I forgot to write up documentation, so I'll do that once this merges as well

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:19):

ok queue is turned on and 5766 is in the queue

view this post on Zulip Chris Fallin (Feb 16 2023 at 19:31):

Is there a way to actually watch the CI run for the merge queue? It doesn't seem like the "Merge Queue" view provides it

view this post on Zulip Chris Fallin (Feb 16 2023 at 19:32):

ah, nevermind, you can get to it from the toplevel actions list

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:33):

once you make it to the merge queue page which is itself hard to find:

but on that page you can click the little icon that looks like a paper with a checkmark to...

GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects.
A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.
A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:33):

ok I forget that it doesn't actually show it there any more

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:34):

in any case you can click on the "Actions" tab and this is the build for the merge

A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:34):

none of this is surfaced in the PR UI AFAIK

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:35):

ok I just added "Rustfmt" as a required check

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:35):

so if you click the paper-with-checkmark icon the "Rustfmt" job should always be there if it's been queued up and you can click "Details" to go to the full build

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:35):

(I don't think that the UI is great here)

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:56):

CI has passed now, waiting for the queue to pick it up

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:56):

and it's merged!

view this post on Zulip Alex Crichton (Feb 16 2023 at 19:58):

I've rebased and queued https://github.com/bytecodealliance/wasmtime/pull/5797 now

I stumbled across this working on #5795 and figured this was a nice opportunity to improve the codegen here.

view this post on Zulip Alex Crichton (Feb 16 2023 at 20:11):

CInis failing due to rate limits. I need to go to the vet right now so I'll be back in a bit. I think this is the issue labeler job eating all our capacity. I'll try disabling that when I get back

view this post on Zulip Chris Fallin (Feb 16 2023 at 20:14):

ah, I didn't realize the labeler took away CI capacity. Slightly spicy hot take: if we're CI-bound and talking about finding funding for additional resources etc, maybe we disable it permanently?

view this post on Zulip Chris Fallin (Feb 16 2023 at 20:14):

(I wonder if there are other ways to get labels, external bots or somesuch; alternately it's not the worst thing in the world to apply labels when creating a PR)

view this post on Zulip Ralph (Feb 16 2023 at 20:22):

I am supposed to be engaged in finding you all more capacity in some form. I have failed in the current "who's leaving their job" environment. I'll see what I can do here.

view this post on Zulip Alex Crichton (Feb 16 2023 at 20:32):

I'm not certain the labeler is the issue it's just a hunch at this point. If it's the problem I'll give it its own dedicated token which should have a separate rate limit

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:04):

Ok looking like fewer failures so I'll look into a separate token for the labeler job

view this post on Zulip fitzgen (he/him) (Feb 16 2023 at 21:04):

We can also turn down the frequency of the issue labeler to every hour or something, fwiw. The jobs last like a couple minutes last time I checked though, so it would be surprising if they were using up any significant amount of our capacity...

view this post on Zulip fitzgen (he/him) (Feb 16 2023 at 21:05):

oh its about API rate limits? in that case, in addition to scheduling it less often, we can make it process fewer issues per run

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:06):

The labeler scrapes all open prs and issues right?

view this post on Zulip fitzgen (he/him) (Feb 16 2023 at 21:06):

not all, there is a configurable number, 40 by default iirc

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:06):

I'm not sure of the interval of the rate limit and if it's blowing the whole limit in one run or repeated runs in the interval

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:07):

Wow if it's just 40 we shouldn't be anywhere near rate limits

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:07):

We've had a lot of historical issues with rate limits that are transient that I've never bottomed out

view this post on Zulip fitzgen (he/him) (Feb 16 2023 at 21:08):

https://github.com/bytecodealliance/label-messager-action/blob/main/action.yml#L10-L12

Automatically leave a message when an issue or pull request has a certain label - label-messager-action/action.yml at main · bytecodealliance/label-messager-action

view this post on Zulip fitzgen (he/him) (Feb 16 2023 at 21:08):

https://github.com/bytecodealliance/subscribe-to-label-action/blob/main/action.yml#L10-L12

A GitHub action that allows users to subscribe to a label and automatically get @'d when the label is applied - subscribe-to-label-action/action.yml at main · bytecodealliance/subscribe-to-labe...

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:14):

Hm ok the rate issue is probably totally unrelated then

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:14):

I'll reenable the labeler later

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:15):

Actually if that's not on the v1 tag we aren't using that

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:15):

And our triage workflow has other actions too

view this post on Zulip Alex Crichton (Feb 16 2023 at 21:16):

So I'd need to dig into all of them

view this post on Zulip Alex Crichton (Feb 16 2023 at 22:54):

so this job prints out headers which tells us that:

so once every 5m with 200+ calls per run I think could account for these issues

A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.
A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip Alex Crichton (Feb 16 2023 at 22:54):

I'll send a PR to run once an hour

view this post on Zulip fitzgen (he/him) (Feb 16 2023 at 23:06):

fwiw github turned down how frequent cron actions could be, so it was effectively set at 15 minutes

all that stuff should be on the v1 branch too, fwiw


Last updated: Nov 22 2024 at 17:03 UTC