Why wont this simple fan out workflow trigger a build

circle.yml
workflow

#1

I have the following config.yml

version: 2.0
jobs:
  checkout_code:
    docker:
      - image: circleci/node:8.9.0
    steps:
      - checkout
      - run: npm install
      - save_cache:
          key: dependency-cache-{{ checksum "package.json" }}
          paths:
            - node_modules
  nodefetch1:
    docker:
      - image: circleci/node:8.9.0
    steps:
      - restore_cache:
          key: dependency-cache-{{ checksum "package.json" }}
      - run: npm install node-fetch@1
      - run: ./node_modules/.bin/mocha test/server.js

workflows:
  version: 2
  checkout_and_test:
    jobs:
      - checkout_code
      - nodefetch1:
        requires:
          - checkout_code

When I commit with this file content no build is triggered. However, if I commit it without the requires beneath nodefetch1, it does run (though nodefetch1 errors as it fails to wait for checkout_code).

I don’t get any errors when I commit with the requires, and circleci config validator says the config is valid.

Anyone have any ideas why this is happening

See https://circleci.com/gh/wheresrhys/fetch-mock/tree/circleci


#2

Aha, I have found some errors in the UI https://circleci.com/workflow-run/6be6db28-0b95-4686-a0d5-54398088cea9.

Does the circleci cli need to be more strict in its validations?


#3

Duplicate of this problem Workflows "Config does not conform to schema" error - solved


#4

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.