Can anyone explain why my job is not running on a tagged build

My circle workflow is configured, among other things, to run a cypress end to end test job on every branch and on tagged builds. This job uses the same filter patterns as many other jobs in the workflow. https://github.com/Financial-Times/treecreeper/blob/master/.circleci/config.yml

However, on the tagged builds the publish job, which is supposed to depend on the cypress job, runs though the cypress job doesn’t. I have no idea how that’s even remotely possible.

Here’s a master build https://circleci.com/workflow-run/3ab30f11-0aac-41ba-85c1-e408fe9b9e5b

Here’s a tagged build https://circleci.com/workflow-run/84e485f9-37d7-405a-a80a-c5facb56487a

Could somebody offer any ideas?

I think you might need to set up the tag filter on your build job as well. From my experience, tags work only if every job in the “chain” has the correct filters. Since end-to-end-tests requires build, and build does not run for tags (in the current config), this would explain why the job does not run.

Could you try changing this:

      - build:
          requires:
            - install

to this:

      - build:
          requires:
            - install
          filters: *only_version_tags
1 Like

Thanks @levlaz. So easy to miss. I really miss circleci 1’s ‘always run a task unless filtered not to’ semantics

1 Like

For sure, I have banged my head against my desk many times for little things like this. I am glad you got it sorted out.

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