-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix commit_status problem when testing #29672
Conversation
I want to know why the CI PASS when tests in PR. https://github.com/go-gitea/gitea/actions/runs/8198780164/job/22422906368 |
The problem is related to the behavior of the for range loop with map structures in Go. The order of iteration is not the same every time, so not every test will fail. |
The code itself does not depend on order, right? If it does we may need something like https://github.com/iancoleman/orderedmap. |
Maybe the test cases can be merged together, instead of using the index?
|
Yes , it doesn't depend . |
This sounds like a great change. However, should I make this change in this PR? It seems like an unrelated change. |
I agree, let's do that in another PR. |
Close go-gitea#29661 fix go-gitea#29656 Co-authored-by: Giteabot <teabot@gitea.io>
Backport #29672 by @charles7668 Close #29661 fix #29656 Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
* giteaofficial/main: Fix commit_status problem when testing (go-gitea#29672) Support pasting URLs over markdown text (go-gitea#29566) bump python version to 3.12 in dev container (go-gitea#29670)
Close #29661
fix #29656