Skip to content

CI doesn't always run the service tests #2314

@paulmelnikow

Description

@paulmelnikow

CircleCI builds often don't correctly detect that they are on a PR. Currently the only way to know whether or not the service tests ran is to inspect the build logs.

That's because there is no way to reliably distinguish branch and PR builds in CircleCI.

Somtimes the cause is having CircleCI set up on the fork where the PR originates, triggering a branch build ahead of time, though we've also had cases where this happened on forks without CircleCI. Plus Dependabot branches are never on a fork.

As it turns out, there is a workaround suggested by Danger: configure CircleCI to run only on PRs.

That would necessitate either:

  1. A separate CI service – or simply a separate repo – to run the daily tests
  2. A PR-triggered bot that triggers the service-test builds on Circle programmatically
  3. A cron-triggered bot that triggers the nightly Circle build programmatically

I experimented in #1936 with a radically different alternative, which is to specify the affected services in the commit history. This has an advantage of making development a bit easier, but it didn't really pan out. Maybe that work could be harvested for a dev-only tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs in badges and the frontenddeveloper-experienceDev tooling, test framework, and CI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions