• Stars
    star
    102
  • Rank 325,399 (Top 7 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TurboTest

Development Status

Proposal

Discourse contains two tools (highly recommend you try them out for context)

  • bin/turbo_rspec a parallel runner with non interleaving forking model. (leverages some of parallel_test โ€ฆ rake parallel:create / migrate to prep the dbs.
  • bin/rake autospec an automatic spec runner, which focuses on failed specs, like guard except that unlike guard it is interruptible.

Enter turbo_test (name TBD, suggestions welcome).

turbo_test will be a slot in replacement for the 2 tools Discourse use in a dedicated gem.

turbo_test is to first be fully functional with rspec runners but longer term should also work with minitest.

Features of the turbo_test gem:

  • MIT license, standard Rails code of conduct
  • Pull based model for forked test runners. Master process manages a queue of tests, forked processes pull from the queue. Transport long term is agnostic though I would recommend initial implementation uses pipes.
  • Pull model ensures that all the workers are running tests at all times. The parallel_test model of splitting up the tests upfront means that workers are often idle for long periods of time.
  • Rake tasks for administration of partitioned test environments turbo_test:create / migrate / drop
  • Non interleaved results (like bin/turbo_rspec)
  • While turbo_rspec is running, if you hit a specific key you can see right away information about the current tests that failed without halting the test process.
  • Documentation about how to handle custom sharding (memcached / redis) and so on.
  • Minimal changes required to Rails projects that decide to use this.
  • A key goal is deprecation of bin/turbo_rspec in Discourse.
  • Minimal dependencies (no explicit rspec, minitest, redis, pg dependencies)
  • Stretch goal, once this is all done โ€ฆ extract bin/rake autospec into this gem as well. (I will do a mini specification if we get there)
  • Extra long term stretch goal, pull these concepts back into Rails proper.

Why not guard?

Guard at the moment does not support interruptible tests, this is a must have feature for turbo_test.

Why not parallel_test?

It does not support a pull model so it would be close to a ground up re-write.

More Repositories

1

covered

Ruby
191
star
2

relaxo

Relaxo is a transactional document database built on top of git.
Ruby
175
star
3

sus

Ruby
148
star
4

jquery-syntax

jQuery.Syntax is a light-weight client-side syntax highlighter.
JavaScript
129
star
5

rack-freeze

A policy framework for implementing thread-safe rack middleware.
Ruby
118
star
6

latinum

Latinum is a framework for resource and currency calculations.
Ruby
109
star
7

bake

An alternative to rake, with all the great stuff and a sprinkling of magic dust.
Ruby
92
star
8

fingerprint

Fingerprint is a simple tool that can be used to verify the contents of a directory.
Ruby
71
star
9

script-runner

This package will run various script files inside of Atom. It currently supports JavaScript, CoffeeScript, Ruby, and Python. You can add more.
JavaScript
61
star
10

trenni

A fast native templating system that compiles directly to Ruby code.
Ruby
50
star
11

ffi-clang

Ruby FFI bindings for libclang 3.4+.
Ruby
43
star
12

samovar

Ruby
31
star
13

markly

Ruby wrapper for libcmark, the CommonMark markdown parser.
C
30
star
14

graphviz

A ruby interface for GraphViz graph visualisation toolkit.
Ruby
29
star
15

process-group

Manages a group of processes which can run concurrently using fibers.
Ruby
24
star
16

github-actions-bin

Arch Linux package for GitHub Actions remote runner.
Shell
20
star
17

relaxo-model

A simple business logic model for Relaxo (git-backed database) written in Ruby.
Ruby
20
star
18

bake-test-external

Ruby
16
star
19

activerecord-migrations

A gem to simplify activerecord migrations in non-rails projects.
Ruby
15
star
20

universal-style-guide

14
star
21

periodical

Periodical is a simple framework for working with durations and periods.
Ruby
14
star
22

rack-test-body

Ruby
13
star
23

activerecord-rack

Ruby
13
star
24

rexec

RExec is a tool for executing ruby processes and code both locally and remotely.
Ruby
13
star
25

process-daemon

Define a daemon using a Ruby class, provides common functionality like start, stop.
Ruby
13
star
26

rubykaigi-2022

Ruby
12
star
27

geospatial

Geospatial provides abstractions for dealing with geographical locations efficiently.
Ruby
12
star
28

plotty

Ruby
12
star
29

decode

Ruby
12
star
30

mapping

Ruby
10
star
31

kai

A simple LISP style interpreter written in C++
C++
10
star
32

vips-thumbnail

Ruby
9
star
33

rubykaigi-2023

Ruby
9
star
34

vips

Ruby extension for the vips image processing library.
Ruby
8
star
35

sus-vscode

TypeScript
8
star
36

boolean

Useful methods for working with Booleans
Ruby
8
star
37

time-zone

Ruby
8
star
38

collada

A Ruby library for loading and manipulating Collada .dae files.
Ruby
7
star
39

dream

Dream is a cross-platform framework for making games with C++.
C++
7
star
40

bake-gem

Ruby
6
star
41

bake-modernize

Ruby
6
star
42

zonestar-p802q-fan-duct

C++
6
star
43

synco

A Ruby DSL for running synchronisation and backup tasks.
Ruby
6
star
44

shell-environment

Provides a hook for accessing the user's login environment, e.g. PATH, etc, even when running from a non-login shell environment.
JavaScript
5
star
45

ffi-native

Ruby
5
star
46

hypercube2

OpenSCAD
5
star
47

parallel-merge-sort

A implementation of a fast lock-free parallel merge sort algorithm.
C++
5
star
48

relaxo-query-server

The Relaxo Query Server provides support for executing CouchDB functions using Ruby.
Ruby
5
star
49

git-heatmap

Ruby
4
star
50

fiber-storage

Ruby
4
star
51

goblin-hacker

Goblin Hacker is a save-game editor for Eschalon.
Objective-C
4
star
52

ioquatix

3
star
53

telescopic-tube-clamp

OpenSCAD
3
star
54

transform-flow-capture-ios

A tool for capturing video stream data sets for iOS devices.
Objective-C
3
star
55

bake-test

Ruby
3
star
56

zork

Python
3
star
57

tileshift

A genetic algorithm based platform game for Ludam Dare 2012.
JavaScript
3
star
58

jquery-xframe

A simple client-side include system using AJAX.
Ruby
3
star
59

transform-flow

Transform Flow is a visualisation tool for mobile outdoor augmented reality data sets.
C++
3
star
60

transform-flow-capture-android

Java
3
star
61

print-agent

PrintAgent is a simple authentication system for CUPS.
Ruby
3
star
62

zonestar-p802q-bracing

OpenSCAD
3
star
63

build-environment

Ruby
3
star
64

jquery-syntax-dokuwiki

jQuery.Syntax DokuWiki Plugin.
PHP
2
star
65

hanging-door-roller

OpenSCAD
2
star
66

trenni-formatters

Formatters for Trenni, to assist with typical views and form based interfaces.
Ruby
2
star
67

xapian-core

The latest Xapian core and Ruby bindings.
Ruby
2
star
68

transform-flow-browser-ios

An augmented reality framework using transform flow motion models for iOS.
Objective-C
2
star
69

activerecord-cursor

Ruby
2
star
70

activerecord-blanks

Ruby
2
star
71

presentations

Ruby
2
star
72

xapian-rack

Easily integrate Xapian with Rack.
Ruby
2
star
73

jquery-syntax-wordpress

jQuery.Syntax WordPress Plugin
PHP
2
star
74

autocoverage

Ruby
2
star
75

fiber-annotation

Ruby
2
star
76

jquery-menu

jQuery.Menu is a simple pop-up menu script.
JavaScript
2
star
77

types

Ruby
2
star
78

vulkan-ruby

Ruby
2
star
79

xapian-indexer

Xapian Indexer is an indexing spider written in Ruby and based on Xapian
Ruby
2
star
80

bake-bundler

Ruby
2
star
81

geospatial-kml

Ruby
2
star
82

utopia-gallery

An extension for utopia for displaying photo galleries.
Ruby
1
star
83

many

Ruby
1
star
84

rack-go-http-client-redirect-bug

Ruby
1
star
85

dispatch-benchmark

Objective-C++
1
star
86

build-files-monitor

Ruby
1
star
87

build-makefile

Ruby
1
star
88

transform-flow-data

Sample data sets for Transform Flow.
1
star
89

ARBrowser-Demo

JavaScript
1
star
90

build-dependency

Ruby
1
star
91

bake-github-pages

Ruby
1
star
92

build-graph

Build::Graph is a framework for build systems, with specific functionality for dealing with file based processes.
Ruby
1
star
93

utopia-analytics

Ruby
1
star
94

activerecord-configurations

Manage multiple databases in Rails 5 and Rails 6 with elegance.
Ruby
1
star
95

eventplayer

EventPlayer is a simple JavaScript class to synchronise external events with <audio> and <video> tags.
JavaScript
1
star
96

matx-case

OpenSCAD
1
star
97

Urban-Navigation

Navigation for urban environments.
Objective-C
1
star
98

www.codeotaku.com

My personal website.
JavaScript
1
star
99

computer-science-posters

1
star
100

post_remote_log

Post Remote Log is a simple multi-destination logging system.
Ruby
1
star