-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Check for valid user token in integration tests #21520
Conversation
My bad. fixed. |
Will it fix #19961? Not sure I understand correctly, but I think this won't reduce random failures, but will change the point of failure to this new assertion, right? |
Yes, #19961 is the same problem. I think i found a root cause of this problem. My last commit changed counter to random value. This should prevent duplicate token ids. |
Use an atomic maybe better. Random cannot ensure there is no duplicated token name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we run tests generally in parallel - many things would be broken in that case - but I do suspect that there are things that are run in parallel and so do suspect that this will solve the problem.
* upstream/main: [skip ci] Updated translations via Crowdin Check for valid user token in integration tests (go-gitea#21520) Ignore error when retrieving changed PR review files (go-gitea#21487) move invite by mail to services package (go-gitea#21513) Enable Monaco automaticLayout (go-gitea#21515) Update macOS install command (go-gitea#21507) [skip ci] Updated translations via Crowdin Suppress `ExternalLoginUserNotExist` error (go-gitea#21504) Revert increased width on pull pages (go-gitea#21470) Add team member invite by email (go-gitea#20307) Disable the 'Add File' button when not able to edit repo (go-gitea#21503) Remove vitest globals (go-gitea#21505) Fix branch dropdown shifting on page load (go-gitea#21428)
Please send backport to v1.17 |
Added checks for logged user token. Some builds fail at unrelated tests, due to missing token. Example: https://drone.gitea.io/go-gitea/gitea/62011/2/14 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* src/release/v1.17: (48 commits) Fix repository adoption on Windows (go-gitea#21646) (go-gitea#21651) Sync git hooks when config file path changed (go-gitea#21619) (go-gitea#21625) Fix package access for admins and inactive users (go-gitea#21580) (go-gitea#21592) Fix `Timestamp.IsZero` (go-gitea#21593) (go-gitea#21604) Added check for disabled Packages (go-gitea#21540) (go-gitea#21614) Fix issues count bug (go-gitea#21600) Update milestone counters when issue is deleted (go-gitea#21459) (go-gitea#21586) Suppress `ExternalLoginUserNotExist` error (go-gitea#21504) (go-gitea#21572) support binary deploy in npm packages (go-gitea#21589) SessionUser protection against nil pointer dereference (go-gitea#21581) Case-insensitive NuGet symbol file GUID (go-gitea#21409) (go-gitea#21575) Prevent Authorization header for presigned LFS urls (go-gitea#21531) (go-gitea#21569) Update binding to fix bugs (go-gitea#21560) Check for valid user token in integration tests (go-gitea#21520) (go-gitea#21529) Fix generating compare link (go-gitea#21519) (go-gitea#21530) Ignore error when retrieving changed PR review files (go-gitea#21487) (go-gitea#21524) Enable Monaco automaticLayout (go-gitea#21516) Fix incorrect notification commit url (go-gitea#21479) (go-gitea#21483) Display total commit count in hook message (go-gitea#21400) (go-gitea#21481) Enforce grouped NuGet search results (go-gitea#21442) (go-gitea#21480) ...
Added checks for logged user token.
Some builds fail at unrelated tests, due to missing token.
Example:
https://drone.gitea.io/go-gitea/gitea/62011/2/14