Skip to content

Commit

Permalink
Create knapsack_pro_queue_rspec_split_by_test_examples_above_threshold (
Browse files Browse the repository at this point in the history
#71)

* Update knapsack_pro_all.rb
  • Loading branch information
ArturT authored Oct 31, 2024
1 parent c0862ed commit 53f21c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/knapsack_pro_all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'./bin/knapsack_pro_queue_rspec_record_first_run' => ['0 2', '1 2'],
'./bin/knapsack_pro_queue_rspec_record_first_run_junit' => ['0 2 COMMIT_HASH BUILD_ID', '1 2 COMMIT_HASH BUILD_ID'],
'./bin/knapsack_pro_queue_rspec_split_by_test_examples' => ['0 2 BUILD_ID', '1 2 BUILD_ID'],
'./bin/knapsack_pro_queue_rspec_split_by_test_examples_above_threshold' => ['0 2 BUILD_ID', '1 2 BUILD_ID'],
'./bin/knapsack_pro_queue_rspec_split_by_test_examples_spec_opts' => ['0 2 BUILD_ID', '1 2 BUILD_ID'],
'./bin/knapsack_pro_queue_rspec_split_by_test_examples_test_example_detector_prefix' => ['0 2 BUILD_ID', '1 2 BUILD_ID'],
'./bin/knapsack_pro_queue_rspec_split_by_test_examples_unique_build' => ['0 2 BUILD_ID', '1 2 BUILD_ID'],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

export EXTRA_TEST_FILES_DELAY=10 # seconds
CI_BUILD_ID=$(openssl rand -base64 32)

KNAPSACK_PRO_ENDPOINT=http://api.knapsackpro.test:3000 \
KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC=a28ce51204d7c7dbd25c3352fea222cf \
KNAPSACK_PRO_REPOSITORY_ADAPTER=git \
KNAPSACK_PRO_PROJECT_DIR=. \
KNAPSACK_PRO_CI_NODE_TOTAL=${2:-2} \
KNAPSACK_PRO_CI_NODE_INDEX=${1:-0} \
KNAPSACK_PRO_CI_NODE_BUILD_ID=${3:-$CI_BUILD_ID} \
KNAPSACK_PRO_LOG_LEVEL=debug \
KNAPSACK_PRO_RSPEC_SPLIT_BY_TEST_EXAMPLES=true \
KNAPSACK_PRO_SLOW_TEST_FILE_THRESHOLD=1 \
bundle exec rake "knapsack_pro:queue:rspec[--format d]"

0 comments on commit 53f21c9

Please sign in to comment.