Update CI node count (#19174)

This commit is contained in:
Mac Siri 2023-02-27 12:54:05 -05:00 committed by GitHub
parent 1d60c5ff77
commit 09291b4205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 28 deletions

View file

@ -7,20 +7,23 @@ on:
pull_request:
branches:
- main
env:
COVERAGE: true
RAILS_ENV: test
NODE_ENV: test
DATABASE_URL_TEST: postgres://postgres:postgres@localhost:5432/Forem_test
DATABASE_NAME_TEST: Forem_test
KNAPSACK_PRO_FIXED_QUEUE_SPLIT: true
POSTGRES_PASSWORD: postgres
jobs:
RSpec:
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 20
env:
COVERAGE: true
RAILS_ENV: test
KNAPSACK_PRO_CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
KNAPSACK_PRO_CI_NODE_INDEX: ${{ matrix.ci_node_index }}
KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC: ${{ secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC }}
KNAPSACK_PRO_FIXED_QUEUE_SPLIT: true
DATABASE_URL_TEST: postgres://postgres:postgres@localhost:5432/Forem_test
DATABASE_NAME_TEST: Forem_test
services:
postgres:
@ -37,8 +40,8 @@ jobs:
strategy:
fail-fast: false
matrix:
ci_node_total: [9]
ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8]
ci_node_total: [6]
ci_node_index: [0, 1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v3
@ -82,10 +85,7 @@ jobs:
Jest:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
RAILS_ENV: test
NODE_ENV: test
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
@ -118,9 +118,8 @@ jobs:
Build-test:
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 20
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/Forem_prod_test
DATABASE_NAME: Forem_prod_test
APP_PROTOCOL: http://
@ -129,7 +128,6 @@ jobs:
SECRET_KEY_BASE: dummydummydummy
GITHUB_KEY: dummy
GITHUB_SECRET: dummy
KNAPSACK_PRO_FIXED_QUEUE_SPLIT: true
services:
postgres:
@ -166,12 +164,7 @@ jobs:
Cypress:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
RAILS_ENV: test
DATABASE_URL_TEST: postgres://postgres:postgres@localhost:5432/Forem_test
DATABASE_NAME_TEST: Forem_test
KNAPSACK_PRO_FIXED_QUEUE_SPLIT: true
timeout-minutes: 20
services:
postgres:
@ -188,8 +181,8 @@ jobs:
strategy:
fail-fast: false
matrix:
ci_node_total: [9]
ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, non-seed]
ci_node_total: [6]
ci_node_index: [0, 1, 2, 3, 4, 5, non-seed]
steps:
- uses: actions/checkout@v3

View file

@ -1,8 +1,3 @@
codecov:
notify:
after_n_builds: 10
comment:
after_n_builds: 10
ignore:
- "vendor"
- "bin"
@ -11,7 +6,10 @@ ignore:
- "lib/generators"
flag_management:
default_rules:
carryforward: true
statuses:
- type: project
target: auto
threshold: 1%
- type: patch
target: 90%