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

Prevent intermittent failures in RepoIndexerTest (#19225 #19229) #19228

Merged
merged 3 commits into from
Mar 27, 2022

Commits on Mar 27, 2022

  1. Prevent intermittent failures in RepoIndexerTest (go-gitea#19225)

    Backport go-gitea#19225
    
    The RepoIndexerTest is failing with considerable frequency due to a race inherrent in
    its design. This PR adjust this test to avoid the reliance on waiting for the populate
    repo indexer to run and forcibly adds the repo to the queue. It then flushes the queue.
    
    It may be worth separating out the tests somewhat by testing the Index function
    directly away from the queue however, this forceful method should solve the current
    problem.
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    6afe913 View commit details
    Browse the repository at this point in the history
  2. Prevent intermittent failures in RepoIndexerTest (2)

    So whilst go-gitea#19225 fixes one issue it caused another. We need to initialise the Git
    module first.
    
    Related go-gitea#19225
    Fix go-gitea#19162
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    32315f8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7dca6d6 View commit details
    Browse the repository at this point in the history