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

Move rust-sdk wasm artifact into bundles directory #28624

Closed
wants to merge 1 commit into from

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Dec 3, 2024

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 the deploy script slightly: it'll be fine as-is but touching the mtime might prevent confusion later.

Fixes: #28632

@richvdh richvdh requested a review from a team as a code owner December 3, 2024 13:55
@richvdh richvdh requested review from dbkr and t3chguy December 3, 2024 13:55
Copy link
Member

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.

Copy link
Member

@t3chguy t3chguy left a 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?

@richvdh
Copy link
Member Author

richvdh commented Dec 3, 2024

I wouldn't think so, but can you point me to how that stuff works, so I can check?

@richvdh richvdh added the T-Task Tasks for the team like planning label Dec 3, 2024
@t3chguy
Copy link
Member

t3chguy commented Dec 3, 2024

@richvdh
https://github.com/element-hq/element-web/blob/develop/.github/workflows/build_develop.yml populating _redirects being quite some magic sauce

@richvdh
Copy link
Member Author

richvdh commented Dec 4, 2024

Yeah, so that only looks at bundles which contain a bundle.css file, which is going to break.

@richvdh
Copy link
Member Author

richvdh commented Dec 11, 2024

abandoning this in favour of #28718

@richvdh richvdh closed this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

matrix-sdk-crypto-wasm 12 will break redeployment of element-web
2 participants