Issue with splitting tests by workflows

rspec

#1

We have an issue wrt splitting tests within workflows. Basically, there are 2 workflows defined

  stream1:
    <<: *defaults
    parallelism: 2
    steps:
      - attach_workspace:
          at: /home/circleci
      - run:
          name: "✔︎ Importing database..."
          command: bin/ci circleci restore db
      - run:
          name: "✔︎ Run specs"
          command: bin/rspec-ci
      - store_artifacts:
          path: /tmp/artifacts
      - store_test_results:
          path: "~/test-reports"
  stream2:
    <<: *defaults
    parallelism: 2
    steps:
      - attach_workspace:
          at: /home/circleci
      - run:
          name: "✔︎ Importing database..."
          command: bin/ci circleci restore db
      - run:
          name: "✔︎ Run specs"
          command: bin/rspec-ci
      - store_artifacts:
          path: /tmp/artifacts
      - store_test_results:
          path: "~/test-reports"

workflows:
  version: 2
  run-all-tests:
    jobs:
      - checkout_code
      - stream1:
          requires:
            - checkout_code
      - stream2:
          requires:
            - checkout_code

Each of them is running this script:

mkdir -p ~/test-reports
TESTFILES=$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
bundle exec rspec \
  --backtrace \
  --order random \
  --format progress \
  --format RspecJunitFormatter \
  --out ~/test-reports/results.xml \
  -- ${TESTFILES}

This leads to either both of workflows (stream1, stream2) are running the same spec files (within workflows). We want to have them split by workflows and per containers. Could someone advise here. Are we missing something?