Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39,511
    • Issues 39,511
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,222
    • Merge requests 1,222
  • Requirements
    • Requirements
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Merge requests
  • !15479

Merged
Created Aug 21, 2019 by Rémy Coutable@rymaiMaintainer6 of 11 tasks completed6/11 tasks

Change Sidekiq testing mode to `fake` instead of `inline`

  • Overview 15
  • Commits 4
  • Pipelines 29
  • Changes 191

What does this MR do?

This changes the Sidekiq mode from inline to fake in the test environment.

This should hopefully make RSpec jobs run faster.

Documentation has been updated:

Sidekiq jobs are typically not run in specs, but this behaviour can be altered in each spec through the use of perform_enqueued_jobs blocks. Any spec that causes Sidekiq jobs to be pushed to Redis should use the :sidekiq_inline trait, to ensure that they are removed once the spec completes.

The :sidekiq_might_not_need_inline trait was added when Sidekiq inline mode was changed to fake mode to all the examples that needed Sidekiq to actually process jobs. Examples with this trait should be either fixed to not rely on Sidekiq processing jobs, or their :sidekiq_might_not_need_inline trait should be updated to :sidekiq_inline if the processing of background jobs is needed/expected.

Does this MR meet the acceptance criteria?

Conformity

  • [-] Changelog entry for user-facing changes, or community contribution. Check the link for other scenarios.
  • Documentation created/updated or follow-up review issue created
  • Code review guidelines
  • Merge request performance guidelines
  • Style guides
  • Database guides
  • Separation of EE specific content

Performance and testing

  • Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
  • Tested in all supported browsers

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/16098.

Edited Oct 10, 2019 by Rémy Coutable
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: ee-22992-default-sidekiq-to-fake-mode-in-test-env

Enable Gitpod?

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

Cancel Enable Gitpod