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

test(cli): remove v2 fixtures and bump timeouts #7974

Merged
merged 4 commits into from
Dec 9, 2024
Merged

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Dec 6, 2024

Description

Given that v2 has been EOL for a while, we can now safely remove v2 test and v2 specific code paths in our CLI test suite.

I started out debugging CI test failures, initially suspecting it had something to do with our old v2 tests still being run, but found out that it was caused simply by the tests taking longer to complete than usual, and now seem to have exceeded the default test timeout of 30s the cli tests are using. This PR also includes bumping the default timeouts to 60s.

Also includes a small change to make it easier to run CLI tests locally.

lmk if I should split these changes into separate PRs.

What to review

Does it look sensible? Are CI passing now?

Testing

n/a - this is improving tests

Notes for release

n/a - internal

Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 9:08am
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 9:08am
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 9:08am
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 9:08am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 9:08am

Copy link
Contributor

github-actions bot commented Dec 6, 2024

No changes to documentation

Copy link

socket-security bot commented Dec 6, 2024

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/[email protected], npm/[email protected]

View full report↗︎

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Component Testing Report Updated Dec 9, 2024 9:04 AM (UTC)

✅ All Tests Passed -- expand for details
File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 1m 10s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 12s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 37s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 52s 11 7 0
formBuilder/inputs/PortableText/copyPaste/CopyPasteFields.spec.tsx ✅ Passed (Inspect) 0s 0 12 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 26s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 15s 3 0 0
formBuilder/inputs/PortableText/DragAndDrop.spec.tsx ✅ Passed (Inspect) 2m 33s 1 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 1m 6s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 2m 51s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 49s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 14s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 39s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 27s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 54s 12 0 0
formBuilder/tree-editing/TreeEditing.spec.tsx ✅ Passed (Inspect) 0s 0 3 0
formBuilder/tree-editing/TreeEditingNestedObjects.spec.tsx ✅ Passed (Inspect) 0s 0 3 0

Copy link
Contributor

github-actions bot commented Dec 6, 2024

⚡️ Editor Performance Report

Updated Mon, 09 Dec 2024 09:05:47 GMT

Benchmark reference
latency of sanity@latest
experiment
latency of this branch
Δ (%)
latency difference
article (title) 23.3 efps (43ms) 23.3 efps (43ms) +0ms (-/-%)
article (body) 56.2 efps (18ms) 59.9 efps (17ms) -1ms (-6.2%)
article (string inside object) 25.0 efps (40ms) 24.4 efps (41ms) +1ms (+2.5%)
article (string inside array) 22.2 efps (45ms) 21.3 efps (47ms) +2ms (+4.4%)
recipe (name) 50.0 efps (20ms) 47.6 efps (21ms) +1ms (+5.0%)
recipe (description) 55.6 efps (18ms) 55.6 efps (18ms) +0ms (-/-%)
recipe (instructions) 99.9+ efps (6ms) 99.9+ efps (6ms) +0ms (-/-%)
synthetic (title) 18.5 efps (54ms) 18.5 efps (54ms) +0ms (-/-%)
synthetic (string inside object) 18.2 efps (55ms) 17.9 efps (56ms) +1ms (+1.8%)

efps — editor "frames per second". The number of updates assumed to be possible within a second.

Derived from input latency. efps = 1000 / input_latency

Detailed information

🏠 Reference result

The performance result of sanity@latest

Benchmark latency p75 p90 p99 blocking time test duration
article (title) 43ms 45ms 61ms 243ms 220ms 12.0s
article (body) 18ms 21ms 29ms 103ms 252ms 6.0s
article (string inside object) 40ms 42ms 48ms 163ms 160ms 6.8s
article (string inside array) 45ms 46ms 55ms 186ms 147ms 7.4s
recipe (name) 20ms 22ms 25ms 47ms 0ms 7.7s
recipe (description) 18ms 19ms 20ms 36ms 0ms 4.6s
recipe (instructions) 6ms 8ms 9ms 9ms 0ms 3.1s
synthetic (title) 54ms 57ms 62ms 190ms 383ms 14.3s
synthetic (string inside object) 55ms 56ms 58ms 113ms 350ms 7.8s

🧪 Experiment result

The performance result of this branch

Benchmark latency p75 p90 p99 blocking time test duration
article (title) 43ms 47ms 77ms 193ms 284ms 12.1s
article (body) 17ms 20ms 25ms 187ms 181ms 5.5s
article (string inside object) 41ms 44ms 47ms 225ms 235ms 7.2s
article (string inside array) 47ms 51ms 59ms 169ms 165ms 7.3s
recipe (name) 21ms 22ms 24ms 58ms 3ms 7.0s
recipe (description) 18ms 20ms 21ms 31ms 0ms 4.6s
recipe (instructions) 6ms 8ms 9ms 10ms 0ms 3.2s
synthetic (title) 54ms 59ms 65ms 124ms 351ms 14.4s
synthetic (string inside object) 56ms 60ms 72ms 281ms 748ms 8.5s

📚 Glossary

column definitions

  • benchmark — the name of the test, e.g. "article", followed by the label of the field being measured, e.g. "(title)".
  • latency — the time between when a key was pressed and when it was rendered. derived from a set of samples. the median (p50) is shown to show the most common latency.
  • p75 — the 75th percentile of the input latency in the test run. 75% of the sampled inputs in this benchmark were processed faster than this value. this provides insight into the upper range of typical performance.
  • p90 — the 90th percentile of the input latency in the test run. 90% of the sampled inputs were faster than this. this metric helps identify slower interactions that occurred less frequently during the benchmark.
  • p99 — the 99th percentile of the input latency in the test run. only 1% of sampled inputs were slower than this. this represents the worst-case scenarios encountered during the benchmark, useful for identifying potential performance outliers.
  • blocking time — the total time during which the main thread was blocked, preventing user input and UI updates. this metric helps identify performance bottlenecks that may cause the interface to feel unresponsive.
  • test duration — how long the test run took to complete.

@bjoerge bjoerge force-pushed the fix/remove-v2-fixtures branch from 5e43a2c to d6cdc47 Compare December 6, 2024 16:10
@bjoerge bjoerge changed the title Fix/remove v2 fixtures test(cli) remove v2 fixtures and bump timeouts Dec 6, 2024
@bjoerge bjoerge force-pushed the fix/remove-v2-fixtures branch from d6cdc47 to 038b610 Compare December 6, 2024 16:30
@bjoerge bjoerge changed the title test(cli) remove v2 fixtures and bump timeouts test(cli): remove v2 fixtures and bump timeouts Dec 6, 2024
@bjoerge bjoerge marked this pull request as ready for review December 6, 2024 16:50
@bjoerge bjoerge requested a review from a team as a code owner December 6, 2024 16:50
@bjoerge bjoerge requested review from juice49 and rexxars and removed request for a team December 6, 2024 16:50
@bjoerge bjoerge enabled auto-merge December 6, 2024 16:52
@@ -27,23 +27,7 @@ describeCliTest('CLI: `sanity build` / `sanity deploy`', () => {
expect(result.code).toBe(0)

// These _could_ theoretically change, but is unlikely to with v2 being in support mode
Copy link
Contributor

Choose a reason for hiding this comment

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

Tiny nit: this comment looks to be redundant now?

Copy link
Contributor

@juice49 juice49 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@bjoerge bjoerge added this pull request to the merge queue Dec 9, 2024
Merged via the queue into next with commit 583bb6f Dec 9, 2024
57 checks passed
@bjoerge bjoerge deleted the fix/remove-v2-fixtures branch December 9, 2024 09:23
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