Skip to content

Commit

Permalink
Initial commit for open-sourcing
Browse files Browse the repository at this point in the history
Co-Authored-By: Evgenii Pecherkin  <[email protected]>
Co-Authored-By: Phil Pirozhkov <[email protected]>
Co-Authored-By: Ale ∴ <[email protected]>
Co-Authored-By: Aleksandr Kariakin <[email protected]>
Co-Authored-By: Vasyl Melnychuk <[email protected]>
Co-Authored-By: Diego Guerra <[email protected]>
Co-Authored-By: Jaimerson Araújo <[email protected]>
Co-Authored-By: Michał Młoźniak <[email protected]>
Co-Authored-By: Ebeagu Samuel <[email protected]>
Co-Authored-By: Sasha Alexandrov <[email protected]>
Co-Authored-By: Velichko Stoev <[email protected]>
Co-Authored-By: Danilo Resende <[email protected]>
Co-Authored-By: Danil Nurgaliev <[email protected]>
Co-Authored-By: Oleg Polivannyi <[email protected]>
Co-Authored-By: Achilles Charmpilas <[email protected]>
Co-Authored-By: Oleh Adam Dubnytskyy <[email protected]>
Co-Authored-By: Alex Rodionov <[email protected]>
Co-Authored-By: Bartek Bułat <[email protected]>
Co-Authored-By: Bartek Wilczek <[email protected]>
Co-Authored-By: Denis Usanov <[email protected]>
Co-Authored-By: Ilya Denisov <[email protected]>
  • Loading branch information
0 parents commit 16b5fa5
Show file tree
Hide file tree
Showing 175 changed files with 7,096 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @toptal/devx
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Bug report
description: Report a bug to help us improve
title: "[BUG] Brief description of the issue"
labels: [bug]
body:
- type: markdown
attributes:
value: |
**Describe the bug**
A clear and concise description of what the bug is.
- type: textarea
id: steps-to-reproduce
attributes:
label: "Steps to reproduce"
description: "Steps to reproduce the behavior"
placeholder: "1. Go to '...'\n2. Run '....'\n3. See error"

- type: textarea
id: expected-behavior
attributes:
label: "Expected behavior"
description: "A clear and concise description of what you expected to happen"
placeholder: "Expected behavior"

- type: textarea
id: screenshots
attributes:
label: "Screenshots"
description: "If applicable, add screenshots to help explain your problem"
placeholder: "Add screenshots here"

- type: textarea
id: additional-context
attributes:
label: "Additional context"
description: "Add any other context about the problem here"
placeholder: "Additional context"
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Feature request
description: Suggest an idea for this project
title: "[FEATURE] Brief description of the feature"
labels: [enhancement]
body:
- type: markdown
attributes:
value: |
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
- type: textarea
id: solution
attributes:
label: "Describe the solution you'd like"
description: "A clear and concise description of what you want to happen"
placeholder: "Describe the solution"

- type: textarea
id: alternatives
attributes:
label: "Describe alternatives you've considered"
description: "A clear and concise description of any alternative solutions or features you've considered"
placeholder: "Describe alternatives"

- type: textarea
id: additional-context
attributes:
label: "Additional context"
description: "Add any other context or screenshots about the feature request here"
placeholder: "Additional context"
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Question
description: Ask a question or start a discussion
title: "[QUESTION] Brief description of the question"
labels: [question]
body:
- type: markdown
attributes:
value: |
**Your question**
Describe your question or topic for discussion.
- type: textarea
id: additional-context
attributes:
label: "Additional context"
description: "Add any other context or information that might be useful to answer your question"
placeholder: "Additional context"
69 changes: 69 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
version: 2

updates:
- package-ecosystem: bundler
directory: "/distrib-core"
schedule:
interval: "weekly"
day: "wednesday"
time: "07:00"
pull-request-branch-name:
separator: "-"
labels:
- "no-jira"
- "ruby"
- "dependencies"
reviewers:
- "toptal/devx"
insecure-external-code-execution: allow
open-pull-requests-limit: 2

- package-ecosystem: bundler
directory: "/rspec-distrib"
schedule:
interval: "weekly"
day: "wednesday"
time: "07:00"
pull-request-branch-name:
separator: "-"
labels:
- "no-jira"
- "ruby"
- "dependencies"
reviewers:
- "toptal/devx"
insecure-external-code-execution: allow
open-pull-requests-limit: 2

- package-ecosystem: bundler
directory: "/features-parser"
schedule:
interval: "weekly"
day: "wednesday"
time: "07:00"
pull-request-branch-name:
separator: "-"
labels:
- "no-jira"
- "ruby"
- "dependencies"
reviewers:
- "toptal/devx"
insecure-external-code-execution: allow
open-pull-requests-limit: 2

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "wednesday"
time: "07:00"
pull-request-branch-name:
separator: "-"
labels:
- "no-jira"
- "dependencies"
- "gha"
reviewers:
- "toptal/devx"
open-pull-requests-limit: 2
32 changes: 32 additions & 0 deletions .github/workflows/distrib-core-linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

env:
BUNDLE_FROZEN: true

jobs:
rubocop:
name: distrib-core - Linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: distrib-core

- name: Run RuboCop
run: bundle exec rubocop
working-directory: distrib-core

- name: Run yardoc
run: bundle exec yardoc --fail-on-warning
working-directory: distrib-core
29 changes: 29 additions & 0 deletions .github/workflows/distrib-core-specs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
test:
name: distrib-core - Specs
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: distrib-core

- name: Run tests
run: bundle exec rspec
working-directory: distrib-core
26 changes: 26 additions & 0 deletions .github/workflows/features-parser-specs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
name: features-parser - Specs
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: features-parser

- name: Run specs
run: bundle exec rspec
working-directory: features-parser
32 changes: 32 additions & 0 deletions .github/workflows/rspec-distrib-linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

env:
BUNDLE_ONLY: linters

jobs:
linters:
name: rspec-distrib - Linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: rspec-distrib

- name: Run RuboCop
run: bundle exec rubocop
working-directory: rspec-distrib

- name: Run yardoc
run: bundle exec yardoc --fail-on-warning
working-directory: rspec-distrib
29 changes: 29 additions & 0 deletions .github/workflows/rspec-distrib-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
tests:
name: rspec-distrib - Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: rspec-distrib

- name: Run specs
run: bundle exec rspec spec/
working-directory: rspec-distrib

- name: Run features
run: bundle exec rspec features/
working-directory: rspec-distrib
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
# Ignore generated credentials from google-github-actions/auth
gha-creds-*.json
.DS_Store
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# test-distrib

## What's *-distrib?

This is a collection of gems for running test in parallel on
multiple machines/processes.

* [distrib-core](./distrib-core/README.md)
* [features-parser](./features-parser/README.md)
* [rspec-distrib](./rspec-distrib/README.md)
12 changes: 12 additions & 0 deletions distrib-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.gem
# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
.ruby-gemset
.bundle
distrib.log
/bundle
/coverage/
/.yardoc/
/doc/
/.idea/*
3 changes: 3 additions & 0 deletions distrib-core/.rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--color
--require spec_helper
--require pry
47 changes: 47 additions & 0 deletions distrib-core/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
require:
- rubocop-rspec

AllCops:
DisplayCopNames: true
NewCops: enable
Exclude:
- coverage/**/*
- bundle/**/*
- vendor/**/*

Layout/LineLength:
Max: 120
Exclude:
- lib/distrib_core/configuration.rb

Metrics/BlockLength:
Exclude:
- spec/**/*
- lib/distrib_core/spec/**/*

RSpec/MessageSpies:
Enabled: false

RSpec/MultipleExpectations:
Enabled: false

RSpec/ExampleLength:
Enabled: false

RSpec/NestedGroups:
Max: 4

RSpec/StubbedMock:
Enabled: false

RSpec/MultipleMemoizedHelpers:
Enabled: false

Naming/FileName:
Exclude:
- lib/distrib-core.rb

Style/FrozenStringLiteralComment:
Enabled: true
Include:
- spec/**/*
1 change: 1 addition & 0 deletions distrib-core/.ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.4
Loading

0 comments on commit 16b5fa5

Please sign in to comment.