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

Upgrade most dependencies but vitest and eslint #1650

Merged
merged 4 commits into from
Feb 13, 2025

Conversation

peaBerberian
Copy link
Collaborator

@peaBerberian peaBerberian commented Feb 13, 2025

Turns out following the seemingly mininal vitest 3 migration guide did not work for our case: when running on a browser, none of our test would run and just an exit code 1 would be returned. Running in a Node.js env however did work.

I also tried to restart from their config-generating tool, but nope, I did not succeed to run any tests even there, nor did I found how to output logs that would explain what's going on internally leading to this situation.

Consequently, I'm keeping open the other PR which tries to update vitest for the long term but I also opened this one which updates vitest while staying in v2.x.x.

(Also small rant, but the weird introduction brag in their v3 release note about having released vitest v2 "half a year ago" seems kind of tone-deaf to me, I would guess most developers are generally far from happy to see a library doing new major versions, let alone so fast after the last one! - And yes I'm salty I did not succeed to migrate to it.).

Like eslint 9, this is the second library I'm not succeeding to upgrade though, we will have to find a solution at some point for both of those.

This is one of our regular dependency update commit, most importantly
esbuild to `0.25` and vitest to `3.x.x`.
Turns out following the seemingly mininal [vitest 3 migration
guide](https://vitest.dev/guide/migration) did not work for our case:
when running on a browser, none of our test would run and just an exit
code 1 would be returned. Running in a Node.js env however did work.

I also tried to restart from their config-generating tool, but nope, I
did not succeed to run it, nor did I found how to output logs that would
explain what's going on internally leading to this situation.

Consequently, I'm keeping open the other PR which tries to update vitest
for the long term but I also opened this one which updates vitest while
staying in v2.x.x.

(Also small rant, but the weird introduction brag in their [v3 release
note](https://vitest.dev/blog/vitest-3) about having released vitest v2
"half a year ago" seems kind of tone-deaf to me, I would guess most developers
are generally far from happy to see a library doing new major versions, let
alone so fast after the last one! - And yes I'm salty I did not succeed to
migrate to it.).

Like eslint 9, this is the second library I'm not succeeding to upgrade
though, we will have to find a solution at some point for both of those.
@peaBerberian peaBerberian merged commit da92138 into dev Feb 13, 2025
9 checks passed
Copy link

Automated performance checks have been performed on commit dc80ac8b768750de5ef2ccbfbd447c7687e7707c with the base branch dev.

Tests results

✅ Tests have passed.

Performance tests 1st run output

No significative change in performance for tests:

Name Mean Median
loading 19.54ms -> 19.56ms (-0.020ms, z: 0.30454) 26.85ms -> 26.85ms
seeking 15.34ms -> 17.40ms (-2.056ms, z: 1.68972) 11.25ms -> 11.25ms
audio-track-reload 26.58ms -> 26.50ms (0.079ms, z: 0.58992) 38.55ms -> 38.55ms
cold loading multithread 48.07ms -> 47.14ms (0.927ms, z: 11.05234) 70.05ms -> 69.00ms
seeking multithread 14.58ms -> 16.57ms (-1.983ms, z: 0.90059) 10.35ms -> 10.35ms
audio-track-reload multithread 26.26ms -> 26.09ms (0.165ms, z: 2.69267) 38.70ms -> 38.30ms
hot loading multithread 16.46ms -> 16.43ms (0.025ms, z: 1.34387) 24.00ms -> 23.85ms

If you want to skip performance checks for latter commits, add the skip-performance-checks label to this Pull Request.

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.

1 participant