Feature #17283

In thread executor for testing inside transactions

Added by Ivan Necas 9 months ago. Updated 8 months ago.

Status:Closed
Priority:Normal
Assigned To:Ivan Necas
Category:-
Target version:Foreman - Team Ivan Iteration 6
Difficulty:medium Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman-tasks/pull/214, https://github.com/theforeman/foreman-tasks/pull/211, https://github.com/Dynflow/dynflow/pull/209
Story points-
Velocity based estimate-
Releaseforeman-tasks-0.8.4Release relationshipAuto

Description

In foreman, we heavily depend on db transactions in our test suite, which makes it next to impossible to do continuous transition of some actions to async mode. The plan is to provide an inthread executor for testing, that would perform the task execution in the same thread as the test is running, so that everything runs in the same transaction at the end.


Related issues

Blocks Foreman - Feature #15779: Make report, puppet classes and environments importing as... Closed 07/22/2016

Associated revisions

Revision 2b1f37e6
Added by Ivan Necas 8 months ago

Fixes #17283 - helpers for test in thread executor

Revision 5efeffbd
Added by Ivan Necas 8 months ago

Fixes #17283 - improve caching to test world

Every time somebody asked for InThreadExecutor, new connection was
created, leading to getting out of available connections eventually.

Revision 91f35bba
Added by adamruzicka 8 months ago

Merge pull request #214 from iNecas/fix-test-world-caching

Fixes #17283 - improve caching to test world

History

#1 Updated by Ivan Necas 9 months ago

  • Blocks Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasks added

#2 Updated by Ivan Necas 9 months ago

  • Pull request https://github.com/Dynflow/dynflow/pull/209 added

#3 Updated by The Foreman Bot 9 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/211 added

#4 Updated by Ivan Necas 8 months ago

  • Release set to foreman-tasks-0.8.4

#5 Updated by Ivan Necas 8 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by The Foreman Bot 8 months ago

  • Pull request https://github.com/theforeman/foreman-tasks/pull/214 added

Also available in: Atom PDF