I have two workflows smoke_test_on_master_qa
and test_by_tag_workflow
. They each have the parameter resource_class_env
which I am using to set the recource_class in the executor. For some reason test_by_tag_workflow
works fine and the custom runner I specify is used correctly in the circleci pipeline. However, smoke_test_on_master_qa
is not utilizing resource_class_env: playon/qa
. it’s taking the default value default: playon/staging
. Why is the scheduled workflow smoke_test_on_master_qa
not taking the value I set for resource_class_env
? I also tried with single quotes. Any help would be appreciated. I could also include my full yml file if that would help diagnose the issue.
executors:
playwright-executor:
docker:
- image: mcr.microsoft.com/playwright:latest
resource_class: << pipeline.parameters.resource_class_env >>
environment:
TZ: 'America/New_York'
Below are the two workflows I mentioned above
smoke_test_on_master_qa:
triggers:
- schedule:
cron: '0 17 * * *' # every day / 8:00 PM UTC -- temporarily setting to 5:00 PM UTC
filters:
branches:
only: master
jobs:
- test:
test_env: 'qa1'
test_tag: '@smoke'
skip_bugs: true
submit_test_result_to_zephyr: false
send_slack_notification: true
resource_class_env: playon/qa
context: SLACK_SECRET
test_by_tag_workflow:
when: << pipeline.parameters.manual_trigger >>
jobs:
- test:
test_env: << pipeline.parameters.test_env >>
test_tag: << pipeline.parameters.test_tag >>
skip_bugs: << pipeline.parameters.skip_bugs >>
submit_test_result_to_zephyr: << pipeline.parameters.submit_test_result_to_zephyr >>
send_slack_notification: << pipeline.parameters.send_slack_notification >>
resource_class_env: << pipeline.parameters.resource_class_env >>
context: SLACK_SECRET