# Explicitly included jobs are being excluded?

**URL:** <https://travis-ci.community/t/explicitly-included-jobs-are-being-excluded/7410>\
**Category:** Linux\
**Created:** [March 1, 2020, 11:27am UTC](https://travis-ci.community/t/explicitly-included-jobs-are-being-excluded/7410 "2020-03-01T11:27:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![franz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/franz/32/3832_2.png) [@franz](https://travis-ci.community/u/franz)\
**Post date:** [March 1, 2020, 11:27am UTC](https://travis-ci.community/t/explicitly-included-jobs-are-being-excluded/7410/1 "2020-03-01T11:27:10Z")

</div>

Hi,

We’re building branches and PRs on three platforms: macOS, Linux with gcc 6 and Linux with gcc 7.

- Travis builds: [https://travis-ci.org/appleseedhq/appleseed](https://travis-ci.org/appleseedhq/appleseed)

- Top-level `.travis.yml` script: [https://github.com/appleseedhq/appleseed/blob/master/.travis.yml](https://github.com/appleseedhq/appleseed/blob/master/.travis.yml)

- Linux build script: [https://github.com/appleseedhq/appleseed/blob/master/scripts/travis/build-linux.sh](https://github.com/appleseedhq/appleseed/blob/master/scripts/travis/build-linux.sh)

**For three days now, both Linux builds are no longer being executed:**

- Here is the last `master` build that proceeded on all platforms (but failed on macOS for other known reasons), dated February 26th (four days ago):  
[https://travis-ci.org/appleseedhq/appleseed/builds/655239028](https://travis-ci.org/appleseedhq/appleseed/builds/655239028)

- The next `master` build (latest at the time of writing, started half an hour ago) is not proceeding on Linux:  
[https://travis-ci.org/appleseedhq/appleseed/builds/656897628](https://travis-ci.org/appleseedhq/appleseed/builds/656897628)

- Same thing for PRs: the last PR that was built on all three platforms was four days ago:  
[https://travis-ci.org/appleseedhq/appleseed/builds/655493712](https://travis-ci.org/appleseedhq/appleseed/builds/655493712)

- And the very next PR build was again only executed on macOS:  
[https://travis-ci.org/appleseedhq/appleseed/builds/655651831](https://travis-ci.org/appleseedhq/appleseed/builds/655651831)

Any idea?

---

<div class="post-metadata">

**Author:** ![franz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/franz/32/3832_2.png) [@franz](https://travis-ci.community/u/franz)\
**Post date:** [March 1, 2020, 12:57pm UTC](https://travis-ci.community/t/explicitly-included-jobs-are-being-excluded/7410/2 "2020-03-01T12:57:46Z")

</div>

We’ve simplified our `.travis.yml` file and it looks like it’s working now:

> <https://github.com/appleseedhq/appleseed/pull/2789/files>

Was our issue that we were both including and excluding Linux builds, and that the outcome was somehow implementation-defined (and something in the infrastructure changed three days ago)?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [March 1, 2020, 1:29pm UTC](https://travis-ci.community/t/explicitly-included-jobs-are-being-excluded/7410/3 "2020-03-01T13:29:51Z")

</div>

> [@franz](#):
>
> something in the infrastructure changed three days ago)?

> [@When configuration validation is on, environment variable definition order may change](https://travis-ci.community/t/when-configuration-validation-is-on-environment-variable-definition-order-may-change/6964/6):
>
> We are rolling out the configuration validator to more and more repositories.

* * *

> [@franz](#):
>
> Was our issue that we were both including and excluding Linux builds

Yes, your `exclude:` clauses exclude all Linux jobs. Previously, it had no effect on explicitly included jobs and now, it has.

It’s actually undocumented in [Build Matrix - Travis CI](https://docs.travis-ci.com/user/build-matrix/) whether `include:` or `exclude:` takes precedence. So yes,

> [@franz](#):
>
> the outcome was somehow implementation-defined

---

<div class="post-metadata">

**Author:** ![franz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/franz/32/3832_2.png) [@franz](https://travis-ci.community/u/franz)\
**Post date:** [March 1, 2020, 1:34pm UTC](https://travis-ci.community/t/explicitly-included-jobs-are-being-excluded/7410/4 "2020-03-01T13:34:17Z")

</div>

Awesome, thanks for the info!
