-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Move rust-sdk wasm artifact into bundles
directory
#28624
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this script isn't used for most deployments, its pretty much only used for app.element.io, staging.element.io, and even there it will not be used anymore soon once we switch to CFP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on your changes to deploy.py - do we need any changes for our development deploy automation?
I wouldn't think so, but can you point me to how that stuff works, so I can check? |
@richvdh |
Yeah, so that only looks at bundles which contain a |
abandoning this in favour of #28718 |
As of matrix-org/matrix-rust-sdk-crypto-wasm#167, the wasm build of matrix-sdk-crypto is actually shipped as a
.wasm
file, rather than base64-ed into Javascript. Our current webpack config then dumps it into the top level of the build directory, which will be a problem on redeployment (specifically, if you try to fetch the wasm artifact for vN after vN+1 has been deployed, you'll get a 404 and sadness).So, we need to move the wasm artifact into the
bundles
directory. We also tweak thedeploy
script slightly: it'll be fine as-is but touching the mtime might prevent confusion later.Fixes: #28632