mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-10 00:08:52 +02:00
[GH-ISSUE #638] [Bug] Spurious errors in some tests, possibly due to synchronisation #474
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#474
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cyqsimon on GitHub (Feb 26, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/638
I recently re-enabled tests on my COPR repo, and I've noticed some random and spurious test errors.
It seems to happen randomly on all chroots I've selected, so I assume it's an issue with the tests. Also interesting is that there seems to be a higher likelihood of errors when the build service is under heavy load, which leads me to speculate that this is some kind of multithreading synchronisation issue.
The specific tests that are erroring are
TestAccount_Reservation_Add_Kills_Other_SubscribersandTestAccount_Persist_UserStats_After_Tier_Change, and the errors in both cases are assertion NEQ errors.An example:
See attached for build logs of all errored builds in the screenshot above.
build-logs.tar.gz
@binwiederhier commented on GitHub (Feb 27, 2023):
I have always had issues with intermittent test failures. Tests that rely on time are hard to get right without either taking forever or intense changes in the main code.
Especially
TestAccount_Reservation_Add_Kills_Other_Subscribersis quite annoying. I thought I had them all solid now though. But apparently not...@cyqsimon commented on GitHub (Feb 27, 2023):
I am not very familiar with Go so I cannot help fix the tests; sorry about that.
Is it possible to disable individual tests? Maybe I can skip these two trouble-makers for the time being.
@binwiederhier commented on GitHub (Feb 27, 2023):
Well: https://github.com/binwiederhier/ntfy/actions/runs/4284367614/jobs/7461222100
I removed TestAccount_Reservation_Add_Kills_Other_Subscribers and replaced it with something simpler. It is not a full end-to-end test anymore, but I guess that's fine.....
The other one I gave a little more time. Let me know if it doesnt work. I'm gonna close this for now. If it happens again feel free to comment again and I'll reopen.
@binwiederhier commented on GitHub (Mar 1, 2023):
I think I fixed the other one too. Let me know if it doesnt work for you.