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

Tests never saved and error: Test invalid - inconsistent test duration #5401

Open
2 tasks done
gonsen71 opened this issue May 15, 2024 · 22 comments
Open
2 tasks done
Labels
bug Something isn't working can't reproduce We can't replicate this, might be environment specific waiting for update Pull requests or issues that require changes/comments before continuing

Comments

@gonsen71
Copy link

Did you clear cache before opening an issue?

  • I have cleared my cache

Is there an existing issue for this?

  • I have searched the existing issues

Does the issue happen when logged in?

Yes

Does the issue happen when logged out?

No

Does the issue happen in incognito mode when logged in?

Yes

Does the issue happen in incognito mode when logged out?

No

Account name

gonsen1

Account config

{"theme":"catppuccin","themeLight":"serika","themeDark":"serika_dark","autoSwitchTheme":false,"customTheme":false,"customThemeColors":["#323437","#e2b714","#e2b714","#646669","#2c2e31","#d1d0c5","#ca4754","#7e2a33","#ca4754","#7e2a33"],"favThemes":["catppuccin"],"showKeyTips":true,"smoothCaret":"medium","quickRestart":"off","punctuation":false,"numbers":false,"words":100,"time":300,"mode":"words","quoteLength":[1],"language":"english_1k","fontSize":2,"freedomMode":false,"difficulty":"normal","blindMode":false,"quickEnd":false,"caretStyle":"default","paceCaretStyle":"default","flipTestColors":false,"layout":"default","funbox":"none","confidenceMode":"off","indicateTypos":"off","timerStyle":"mini","liveSpeedStyle":"off","liveAccStyle":"off","liveBurstStyle":"off","colorfulMode":false,"randomTheme":"off","timerColor":"main","timerOpacity":"1","stopOnError":"off","showAllLines":false,"keymapMode":"off","keymapStyle":"staggered","keymapLegendStyle":"lowercase","keymapLayout":"overrideSync","keymapShowTopRow":"layout","fontFamily":"Roboto_Mono","smoothLineScroll":false,"alwaysShowDecimalPlaces":false,"alwaysShowWordsHistory":true,"singleListCommandLine":"manual","capsLockWarning":true,"playSoundOnError":"off","playSoundOnClick":"off","soundVolume":"0.5","startGraphsAtZero":true,"showOutOfFocusWarning":true,"paceCaret":"off","paceCaretCustomSpeed":100,"repeatedPace":true,"accountChart":["on","on","on","on"],"minWpm":"off","minWpmCustomSpeed":100,"highlightMode":"letter","typingSpeedUnit":"wpm","ads":"result","hideExtraLetters":false,"strictSpace":false,"minAcc":"off","minAccCustom":90,"monkey":false,"repeatQuotes":"off","oppositeShiftMode":"off","customBackground":"","customBackgroundSize":"cover","customBackgroundFilter":[0,1,1,1,1],"customLayoutfluid":"qwerty#dvorak#colemak","monkeyPowerLevel":"off","minBurst":"off","minBurstCustomSpeed":100,"burstHeatmap":true,"britishEnglish":false,"lazyMode":false,"showAverage":"off","tapeMode":"off","maxLineWidth":70}

Current Behavior

I always do the 1k english 100 words test. Recently when I finish a pop up appears saying 'Test invalid - inconsistent test duration and my test is not saved'. According to the site this started happening on 5 May or after, because none of the tests I've done since then have been saved.

Expected Behavior

I expect my tests to be saved.

Steps To Reproduce

No response

Environment

  • OS: Linux
  • Browser: Firefox ESR
  • Browser Version: 115.10.0esr (64-bit)

Anything else?

Looking on github could be due to 80e0af7 or e9a83d5, but maybe is something else.

I have also tested it on Chromium incognito and I have the same issue.

I also tested time and quote, it happens the same also.

Thanks.

@gonsen71 gonsen71 added the bug Something isn't working label May 15, 2024
@Miodec
Copy link
Member

Miodec commented May 20, 2024

Are you saying the tests literally never save? Have you tried no extensions or different browsers?

@Miodec Miodec added the waiting for update Pull requests or issues that require changes/comments before continuing label May 20, 2024
@gonsen71
Copy link
Author

Yes, as I said already I also tried on Chromium apart from Firefox.

Maybe you missed this part:

Anything else?

Looking on github could be due to 80e0af7 or e9a83d5, but maybe is something else.

I have also tested it on Chromium incognito and I have the same issue.

Anyways, on incognito I only had one extension enabled on both Firefox and Chromium. I tried today without any extensions on both browsers on incognito, and didn't work at first. Then I tried smaller tests like 10 words and 15 seconds, and started working on both browsers, but it was a hit and miss (I mean with this that sometimes it worked sometimes it didn't). Then I enabled the extensions and then I tried on Firefox NOT Incognito with extensions, and it also worked hit and miss. So in the end, what it matters is the kind of test, I suspect the longer the test the higher the probability to not work and to not be saved.

Thank you!

@Miodec
Copy link
Member

Miodec commented May 23, 2024

Are you modifying anything relating to time / date in your system? This error only shows up when the duration of the test calcultaed based on date is different to the duration caculated based on performance metrics. I really dont know why it would fail for every test for you (and youre the only person complaining about this)

@PHPirates
Copy link

I just saw the error "Test invalid - inconsistent test duration" as well, but it was only once so far and I cannot reproduce. Using Windows.
image

Untitled

@gonsen71
Copy link
Author

Are you modifying anything relating to time / date in your system?

No I don't, but javascript is not very reliable for that. For example, if you compress or extract a big file, or you compile some software (all cores involved) while doing a test I think is very probable you'll hit this error.

I wasn't compiling anything though. I will try later the test with only the browser open, only one tab and nothing else.

I just saw the error "Test invalid - inconsistent test duration" as well, but it was only once so far and I cannot reproduce. Using Windows.

Could you try a longer test? like 50 or 100 words? I think it might be easier to hit this error.

@Ottaviocr
Copy link

I have just had the exact issue. I landed to this page after googling the error. I didn't capture the screenshot. I can post more details if needed. This is the first time it happens to me, but I only use MT every now and again.

@Miodec Miodec added the can't reproduce We can't replicate this, might be environment specific label May 29, 2024
@MightyGamesDan
Copy link

MightyGamesDan commented Jun 20, 2024

This happens to me most times after I skip (click the restart button) on a test shortly after starting it. E.g. when I mess up early in a test and want to start fresh. I also noticed this happen when I had autofail at 95% on, because it would stop the test if I messed up on the first few characters.
Browser: Chrome on Mac, with AdBlock

@MAdrianMattocks
Copy link

MAdrianMattocks commented Jul 10, 2024

I'm getting this now too.
It did not happen yesterday and the first test I did today was saved but the next 2 were not saved.
Browser: Edge on Windows. Adblock is off.

@zal-ua
Copy link

zal-ua commented Jul 16, 2024

I have the same issue. I am doing 10 min custom test once per day, and it's the third time that Monkeytype doesn't save the result because of this error. I have no clue what I should do to resolve this issue.

@Miodec
Copy link
Member

Miodec commented Jul 16, 2024

Added a log when this error occurs. Can you guys check the console and let me know what numbers you get?
image

@tokudayo
Copy link

tokudayo commented Jul 17, 2024

@Miodec I have been getting more of these recently, here is the log of what happened just now. It first happened to me like a month ago when I had a flawless run and got my PR :( The result was discarded.

inconsistent log

Browser: Chrome on MacOS

@MAdrianMattocks
Copy link

@Miodec Got it again. Attached is the full console. Line 4415 is where your log line is.
monkeytype.com-1721218829347.log
Edge on Windows 10

@kizzull
Copy link

kizzull commented Jul 17, 2024

I get this error constantly, it is super annoying. Seems to throw this error whenever I get a decent score, as if to troll me.

Miodec added a commit that referenced this issue Jul 17, 2024
@Miodec
Copy link
Member

Miodec commented Jul 17, 2024

I made the check less strict. Bit of a dirty fix but im not sure what to do right now.

@4itor
Copy link

4itor commented Oct 14, 2024

When it happens, it happens a lot; 5 times in a row today.
Finally googled the error and arrived here.
Will try to get console output next, this is super annoying when it appears.

@everman32
Copy link

everman32 commented Nov 2, 2024

This happens with me on Windows 7, Chrome with uBlock Origin.
Безымянный
image

@bensums
Copy link

bensums commented Nov 29, 2024

Just got this as well. Really annoying. Daily 10-minute test down the drain. Isn't the fix here to save but marked as invalid, rather than not save? Then we can just filter for valid/invalid/etc as needed. I personally don't care if my tests are "valid" or not, whatever that means (and I imagine most people also don't care, but could be wrong).

@bensums
Copy link

bensums commented Nov 29, 2024

Looking at the code, you could just save ce.testDuration and dateDur as two properties of the saved test, rather than discard the test.

@zal-ua
Copy link

zal-ua commented Dec 3, 2024 via email

@Miodec
Copy link
Member

Miodec commented Dec 11, 2024

When you guys get this issue again, on the result page, could you press esc, search for copy result stats, press enter, then send the data here or to [email protected]

@bensums
Copy link

bensums commented Dec 11, 2024

Will do, but why not just save the test anyway? Can always filter them out later if needed. It's a really annoying experience to just lose the test due to some consideration you don't even care about.

@everman32
Copy link

everman32 commented Dec 14, 2024

@Miodec
results.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't reproduce We can't replicate this, might be environment specific waiting for update Pull requests or issues that require changes/comments before continuing
Projects
None yet
Development

No branches or pull requests