Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 2
    • Merge requests 2
  • Requirements
    • Requirements
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !9846

Merged
Created Mar 10, 2017 by Rémy Coutable@rymaiMaintainer

Introduce a new middleware for the test environment that can block requests

  • Overview 12
  • Commits 4
  • Pipelines 4
  • Changes 7

What does this MR do?

After digging into https://gitlab.com/gitlab-org/gitlab-ce/issues/28307#note_24958837, I thought there is probably a clean and robust solution to this issue other than tweaking assertions on a case-by-case basis...

And then I found http://www.salsify.com/blog/engineering/tearing-capybara-ajax-tests. I implemented what's described in the article and I've never experienced a PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_routes_on_source_type_and_source_id" error again!

Are there points in the code the reviewer needs to double check?

I don't there is any downside with this technique.

Closes #28307 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 28307-fix-sporadic-feature-spec-failures

Enable Gitpod?

To use Gitpod you must first enable the feature in the integrations section of your user preferences.

Cancel Enable Gitpod