Skip to content

Commit

Permalink
Update knapsack_pro_queue_rspec_record_first_run_junit
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturT committed Dec 28, 2023
1 parent 914c7ec commit c321ee3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bin/knapsack_pro_queue_rspec_record_first_run_junit
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@

mkdir -p tmp/test-reports/rspec/queue_mode/

RANDOM_CI_BUILD_ID=$(openssl rand -base64 32)
CI_BUILD_ID=${3:-$RANDOM_CI_BUILD_ID}
RANDOM_COMMIT_HASH=$(ruby -e "require 'securerandom'; puts SecureRandom.hex")
COMMIT_HASH=${4:-$RANDOM_COMMIT_HASH}
COMMIT_HASH=${3:-$RANDOM_COMMIT_HASH}

RANDOM_CI_BUILD_ID=$(openssl rand -base64 32)
CI_BUILD_ID=${4:-$RANDOM_CI_BUILD_ID}

BRANCH_NAME=fake-junit-branch

export EXTRA_TEST_FILES_DELAY=10 # seconds
Expand All @@ -24,7 +26,7 @@ export KNAPSACK_PRO_SLOW_TEST_FILE_PATTERN="spec/**{,/*/**}/*_spec.rb"
KNAPSACK_PRO_ENDPOINT=http://api.knapsackpro.test:3000 \
KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC=fec3c641a3c4d2e720fe1b6d9dd780bc \
KNAPSACK_PRO_CI_NODE_BUILD_ID=$CI_BUILD_ID \
KNAPSACK_PRO_COMMIT_HASH=${3:-$COMMIT_HASH} \
KNAPSACK_PRO_COMMIT_HASH=$COMMIT_HASH \
KNAPSACK_PRO_BRANCH=$BRANCH_NAME \
KNAPSACK_PRO_CI_NODE_TOTAL=${2:-2} \
KNAPSACK_PRO_RSPEC_SPLIT_BY_TEST_EXAMPLES=true \
Expand Down

0 comments on commit c321ee3

Please sign in to comment.