[PR #5125] [MERGED] Retry test-fixtures loading in case of transaction rollback #17656

Closed
opened 2025-11-02 14:47:32 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5125
Author: @typeless
Created: 10/19/2018
Status: Merged
Merged: 10/20/2018
Merged by: @techknowlogick

Base: masterHead: avoid-rollback


📝 Commits (3)

  • bc4776b Retry test-fixtures loading in case of transaction rollback
  • e323a13 Merge branch 'master' into avoid-rollback
  • 2c38df2 Merge branch 'master' into avoid-rollback

📊 Changes

1 file changed (+10 additions, -1 deletions)

View changed files

📝 models/test_fixtures.go (+10 -1)

📄 Description

In some circumstances, the transaction in the test fixture loading function would rollback when a transaction conflict occurs.
Retry it five times to at least reduce the chance of failures.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5125 **Author:** [@typeless](https://github.com/typeless) **Created:** 10/19/2018 **Status:** ✅ Merged **Merged:** 10/20/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `avoid-rollback` --- ### 📝 Commits (3) - [`bc4776b`](https://github.com/go-gitea/gitea/commit/bc4776ba59c070c3e8cce232340d66f138ef1dad) Retry test-fixtures loading in case of transaction rollback - [`e323a13`](https://github.com/go-gitea/gitea/commit/e323a1322178898159254bb1015444e3565b7e3f) Merge branch 'master' into avoid-rollback - [`2c38df2`](https://github.com/go-gitea/gitea/commit/2c38df204d24d4f0ef5355c4e3caf8ffb9baf733) Merge branch 'master' into avoid-rollback ### 📊 Changes **1 file changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/test_fixtures.go` (+10 -1) </details> ### 📄 Description In some circumstances, the transaction in the test fixture loading function would rollback when a transaction conflict occurs. Retry it five times to at least reduce the chance of failures. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:47:32 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17656