For each opened pull request we run a number of checks to ensure consistent formatting, no lint failures and that tests across all language bindings pass. These checks are required to pass before a Pull Request is merged. This includes by default the following tasks:
- Formatting & lints for Rust, Kotlin, Swift & Python
- Consistency checks for generated header files, license checks across dependencies and a schema check
- Builds & tests for Rust, Kotlin, Python & C#
- The Python language bindings are build for multiple platforms and Python versions
- Documentation generation for all languages and the book, including spell check & link check
- By default no Swift/iOS tests are launched. These can be run manually. See below.
- A full Android build & test
For all tasks you can always find the full log and generated artifacts by following the "Details" links on each task.
Due to the long runtime and costs iOS tests are not run by default on Pull Requests.
Admins of the
mozilla/glean repository can run them on demand.
- On the pull request scroll to the list of all checks running on that PR on the bottom.
- Find the job titled "ci/circleci: iOS/hold".
- Click "Details" to get to Circle CI.
- Click on the "hold" task, then approve it.
- The iOS tasks will now run.
When pull requests are merged to the
main branch we run the same checks as we do on pull requests.
Additionally we run the following tasks:
- Documentation deployment
- iOS build, unit & integration test
If you notice that they fail please take a look and open a bug to investigate build failures.
When cutting a new release of the Glean SDK our CI setup is responsible for building, packaging and uploading release builds. We don't run the full test suite again.
We run the following tasks:
- Build the iOS framework & push to a GitHub release
- Build the Python wheel & push to a GitHub release
- Build & package Glean for Android and push a release to Maven
- Build & package the Glean Gradle Plugin and push a release to Maven
On release the full TaskCluster suite takes up to 30 minutes to run.
- Go to GitHub releases and find the version
- Go to the release commit, indicated by its commit id on the left
- Click the green tick or red cross left of the commit title to open the list of all checks.
- Find the "Decision task" and click "Details"
- From the list of tasks pick the one you want to look at and follow the "View task in Taskcluster" link.
Documentation is deployed from CI, we therefore need it to run on documentation changes. However, some of the long-running code tests can be skipped. For that add the following literal string to the last commit message of your pull request:
It is possible to completely skip running CI checks on a pull request.
To skip tasks on CircleCI include the following literal string in the commit message.
To skip tasks on TaskCluster add the following to the title of your pull request.
This should only be used for metadata files, such as those in