Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable use of preexisting weval binary #156

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

vados-cosmonic
Copy link
Contributor

This commit enables using a pre-existing weval binary -- this is mostly to try to avoid some flaky tests in jco downstream, but this is probably a reasonable thing to have in general.

I also shuffled around some instructions/docs while I was in there.

This commit adds the ability to use a pre-existing `weval` binary as
an option to `componentize`.

This should enable builds without internet but hopefully also cut down
on failures due to being unable to fetch the binary dynamically.

Signed-off-by: Victor Adossi <[email protected]>
Copy link
Collaborator

@guybedford guybedford left a comment

Choose a reason for hiding this comment

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

Looks great, thanks.

.nvmrc Outdated Show resolved Hide resolved
@vados-cosmonic vados-cosmonic force-pushed the feat=enable-use-of-preexisting-weval-binary branch 24 times, most recently from 61e63f8 to 729001d Compare November 9, 2024 09:31
@vados-cosmonic vados-cosmonic force-pushed the feat=enable-use-of-preexisting-weval-binary branch 16 times, most recently from 210d9b0 to a8f74f5 Compare November 9, 2024 12:41
This commit heavily refactors the CI build pipeline to separate
different build steps to improve build times and caching.

It *should* be easier to see the dependency between the builds:

- splicer (jit/AOT independent)
- StarlingMonkey JIT
- StarlingMonkey AOT (Weval)

Along with these builds, JIT/AOT tests that should come after can pull
the relevant cached artifacts.

Signed-off-by: Victor Adossi <[email protected]>
@vados-cosmonic vados-cosmonic force-pushed the feat=enable-use-of-preexisting-weval-binary branch from a8f74f5 to 13203d4 Compare November 9, 2024 12:42
@vados-cosmonic
Copy link
Contributor Author

Hey @guybedford requesting another review just because of the dramatic change to the CI stuff 🙇 -- took a while but it's finally 🟢

I'm pretty sure I covered the dependency graph properly, the build should now be much faster. We'll have to pay extra attention to cache keys for the three builds in the future, though IMO the current set should work for a while.

Right now we build against latest (22, for now) and 20 -- I'm happy to only build against latest if you'd like!

@guybedford
Copy link
Collaborator

What happened to the Weval-specific update to just use the direct release URLs? If that doesn't require API gating that sounds ideal to me.

Is this PR still needed if that lands?

@vados-cosmonic
Copy link
Contributor Author

Hey @guybedford sorry a bit late getting to this, but I was hoping that the update to use direct URLs and this could land -- this PR would enable using a pre-existing weval binary (which would remove our need to pull the URLs at all -- though we should still pick the more direct URL)

@guybedford
Copy link
Collaborator

@vados-cosmonic thanks for the confirmation - I don't mean to be pedantic, but I feel that it's important to get this one fixed upstream first, before landing the alternative paths, as that solves the issue for all Weval users instead of just us.

@guybedford
Copy link
Collaborator

I've posted bytecodealliance/weval#13 for clarity.

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