# Candidate probe for one selected protected dedicated runner. Runtime validation pending.
stages:
  - test

dedicated-runner-boundary:
  stage: test
  image:
    name: python@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
  tags:
    - <unique-protected-runner-tag>
  variables:
    GIT_STRATEGY: fetch
    GIT_SUBMODULE_STRATEGY: none
  rules:
    - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
  script:
    - python3 examples/dedicated-runner/probe.py --output dedicated-runner-report.json
    - python3 -c 'import time; time.sleep(12)'
  artifacts:
    when: always
    access: developer
    expire_in: 30 days
    paths:
      - dedicated-runner-report.json
