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

Set vite base #1297

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Set vite base #1297

merged 3 commits into from
Apr 16, 2024

Conversation

geichelberger
Copy link
Contributor

Vite does not honor the PUBLIC_URL environment variable; we need to set the base via that variable to support building versions with a path different from the root.

@geichelberger geichelberger added the type:bug Something isn't working label Mar 18, 2024
Copy link

This pull request is deployed at test.editor.opencast.org/1297/2024-03-18_11-38-54/ .
It might take a few minutes for it to become available.

Copy link

This pull request is deployed at test.editor.opencast.org/1297/2024-03-18_15-16-04/ .
It might take a few minutes for it to become available.

@geichelberger
Copy link
Contributor Author

Do you have any idea why the playwright tests are failing?

@Arnei
Copy link
Member

Arnei commented Mar 21, 2024

Not really, no. I kinda hoped it would be chromium just having a hiccup or something, and that the test would work if I simply reran them the next day, but that does not seem to be the case.

Copy link

This pull request is deployed at test.editor.opencast.org/1297/2024-03-21_19-43-21/ .
It might take a few minutes for it to become available.

@geichelberger
Copy link
Contributor Author

With my last commit, the playwright tests are working locally; there was a duration mismatch. The tests are using the develop instance, and I guess opencast/opencast#5669 changed the metadata 😄

@Arnei
Copy link
Member

Arnei commented Mar 25, 2024

Can confirm tests running locally (Quite unexpected to get an actual duration value in the metadata :D). Still running into timeouts in gh actions though.

Vite does not honor the PUBLIC_URL environment variable; we need to set
the base via that variable to support building versions with a path
different from the root.
The metadata of the video used for the tests changed and caused a test
case to fail.
Copy link

github-actions bot commented Apr 3, 2024

This pull request is deployed at test.editor.opencast.org/1297/2024-04-03_13-30-09/ .
It might take a few minutes for it to become available.

@geichelberger
Copy link
Contributor Author

Could it be caused by the problem that sometimes the i18n system is not loaded correctly?

grafik

Copy link

github-actions bot commented Apr 3, 2024

This pull request is deployed at test.editor.opencast.org/1297/2024-04-03_17-31-29/ .
It might take a few minutes for it to become available.

Copy link

github-actions bot commented Apr 3, 2024

This pull request is deployed at test.editor.opencast.org/1297/2024-04-03_18-51-07/ .
It might take a few minutes for it to become available.

@geichelberger
Copy link
Contributor Author

geichelberger commented Apr 3, 2024

The commit Remove unknown fallback language should solve the problem that sometimes that langstrings are not shown. At least after that change, I was not able to reproduce it. It never happened locally but immediately with the deployed version 🙈

However, that did not solve the problem with the playwright tests; it was caused by a problem with the constructed settings URL that needed to be corrected.

Since the basepath is a relative path `./` by default, merging with the
window location does not work. The location origin is
http://localhost:5173 concatenated with the basepath `./`, and the
settings path `editor-settings.toml` results in an invalid URL
`http://localhost:5173./editor-settings.toml`
Copy link

github-actions bot commented Apr 3, 2024

This pull request is deployed at test.editor.opencast.org/1297/2024-04-03_19-14-16/ .
It might take a few minutes for it to become available.

@Arnei
Copy link
Member

Arnei commented Apr 4, 2024

Amazing find!

@KatrinIhler KatrinIhler merged commit c84a20e into opencast:main Apr 16, 2024
6 checks passed
@KatrinIhler KatrinIhler mentioned this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants