2022-06-14 16:22:56 +08:00
|
|
|
<!--
|
2023-01-02 20:51:48 +08:00
|
|
|
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 16:22:56 +08:00
|
|
|
|
|
|
|
SPDX-License-Identifier: curl
|
|
|
|
-->
|
|
|
|
|
2021-11-16 13:00:26 +08:00
|
|
|
# Continuous Integration for curl
|
|
|
|
|
|
|
|
Curl runs in many different environments, so every change is run against a large
|
|
|
|
number of test suites.
|
|
|
|
|
|
|
|
Every pull request is verified for each of the following:
|
|
|
|
|
|
|
|
- ... it still builds, warning-free, on Linux and macOS, with both
|
|
|
|
clang and gcc
|
|
|
|
- ... it still builds fine on Windows with several MSVC versions
|
|
|
|
- ... it still builds with cmake on Linux, with gcc and clang
|
|
|
|
- ... it follows rudimentary code style rules
|
|
|
|
- ... the test suite still runs 100% fine
|
|
|
|
- ... the release tarball (the "dist") still works
|
|
|
|
- ... it builds fine in-tree as well as out-of-tree
|
|
|
|
- ... code coverage does not shrink drastically
|
|
|
|
- ... different TLS backends still compile and pass tests
|
|
|
|
|
|
|
|
If the pull-request fails one of these tests, it will show up as a red X and
|
|
|
|
you are expected to fix the problem. If you do not understand when the issue is
|
|
|
|
or have other problems to fix the complaint, just ask and other project
|
|
|
|
members will likely be able to help out.
|
|
|
|
|
|
|
|
Consider the following table while looking at pull request failures:
|
|
|
|
|
|
|
|
| CI platform as shown in PR | State | What to look at next |
|
|
|
|
| ----------------------------------- | ------ | -------------------------- |
|
|
|
|
| CI / codeql | stable | quality check results |
|
|
|
|
| CI / fuzzing | stable | fuzzing results |
|
|
|
|
| CI / macos ... | stable | all errors and failures |
|
|
|
|
| Code scanning results / CodeQL | stable | quality check results |
|
|
|
|
| FreeBSD FreeBSD: ... | stable | all errors and failures |
|
|
|
|
| LGTM analysis: Python | stable | new findings |
|
|
|
|
| LGTM analysis: C/C++ | stable | new findings |
|
|
|
|
| buildbot/curl_winssl_ ... | stable | all errors and failures |
|
2022-09-21 05:30:19 +08:00
|
|
|
| AppVeyor | flaky | all errors and failures |
|
2021-11-16 13:00:26 +08:00
|
|
|
| curl.curl (linux ...) | stable | all errors and failures |
|
|
|
|
| curl.curl (windows ...) | flaky | repetitive errors/failures |
|
2022-09-21 05:30:19 +08:00
|
|
|
| CodeQL | stable | new findings |
|
2021-11-16 13:00:26 +08:00
|
|
|
|
|
|
|
Sometimes the tests fail due to a dependency service temporarily being offline
|
2022-09-21 05:30:19 +08:00
|
|
|
or otherwise unavailable, for example package downloads. In this case you can
|
|
|
|
just try to update your pull requests to rerun the tests later as described
|
|
|
|
below.
|
2021-11-16 13:00:26 +08:00
|
|
|
|
|
|
|
## CI servers
|
|
|
|
|
|
|
|
Here are the different CI environments that are currently in use, and how they
|
|
|
|
are configured:
|
|
|
|
|
2022-10-26 14:59:35 +08:00
|
|
|
### GitHub Actions
|
2021-11-16 13:00:26 +08:00
|
|
|
|
2022-10-26 14:59:35 +08:00
|
|
|
GitHub Actions runs the following tests:
|
2021-11-16 13:00:26 +08:00
|
|
|
|
|
|
|
- Mac OS tests with a variety of different compilation options
|
|
|
|
- Fuzz tests ([see tests/fuzz/README for
|
|
|
|
more info](https://github.com/curl/curl/blob/master/tests/fuzz/README)).
|
|
|
|
- Curl compiled using the Rust TLS backend with Hyper
|
|
|
|
- CodeQL static analysis
|
|
|
|
|
|
|
|
These are each configured in different files in `.github/workflows`.
|
|
|
|
|
|
|
|
### Azure
|
|
|
|
|
|
|
|
The following tests are run in Microsoft Azure CI environment:
|
|
|
|
|
|
|
|
- Ubuntu tests with a variety of different compilation options.
|
|
|
|
- Windows tests with a variety of different compilation options.
|
|
|
|
|
|
|
|
These are all configured in `.azure-pipelines.yml`.
|
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
As of November 2021 `@bagder` and `@mback2k` are the only people with
|
|
|
|
administrator access to the Azure CI environment. Additional admins/group
|
|
|
|
members can be added on request.
|
2021-11-16 13:00:26 +08:00
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
### AppVeyor
|
2021-11-16 13:00:26 +08:00
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
AppVeyor runs a variety of different Windows builds, with different compilation
|
2021-11-16 13:00:26 +08:00
|
|
|
options.
|
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
As of November 2021 `@bagder`, `@mback2k`, `@jay`, `@vszakats`, `@dfandrich`
|
|
|
|
and `@danielgustafsson` have administrator access to the AppVeyor CI
|
|
|
|
environment. Additional admins/group members can be added on request.
|
2021-11-16 13:00:26 +08:00
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
The tests are configured in `appveyor.yml`.
|
2021-11-16 13:00:26 +08:00
|
|
|
|
|
|
|
### Zuul
|
|
|
|
|
|
|
|
[Zuul](https://zuul-ci.org/) is an open source CI tool. A number of Curl tests
|
|
|
|
are run at [curl.zuul.vexxhost.dev](https://curl.zuul.vexxhost.dev/builds):
|
|
|
|
|
|
|
|
- Source code is formatted according to expectations (`make checksrc`).
|
|
|
|
- Curl compiled with a number of different TLS configurations (WolfSSL, rustls,
|
|
|
|
BoringSSL, etc).
|
|
|
|
- Curl compiled with different C compilers.
|
|
|
|
|
|
|
|
As of November 2021, the tests run (sometimes) but do not run consistently and
|
2022-10-26 14:59:35 +08:00
|
|
|
do not report results to the GitHub checks runner - you need to manually check
|
2021-11-16 13:00:26 +08:00
|
|
|
for failures. See [#7522](https://github.com/curl/curl/issues/7522) for more
|
|
|
|
information.
|
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
As of November 2021 Daniel Stenberg is the only person with administrator
|
|
|
|
access to the Zuul CI environment.
|
2021-11-16 13:00:26 +08:00
|
|
|
|
|
|
|
These are configured in `zuul.d` and have test runners in `scripts/zuul`.
|
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
### Circle CI
|
2021-11-16 13:00:26 +08:00
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
Circle CI runs a basic Linux test suite on Ubuntu for both x86 and ARM
|
2021-11-16 13:00:26 +08:00
|
|
|
processors. This is configured in `.circleci/config.yml`.
|
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
You can [view the full list of CI jobs on Circle CI's
|
2021-11-16 13:00:26 +08:00
|
|
|
website](https://app.circleci.com/pipelines/github/curl/curl).
|
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
`@bagder` has access to edit the "Project Settings" on that page. Additional
|
|
|
|
admins/group members can be added on request.
|
2021-11-16 13:00:26 +08:00
|
|
|
|
|
|
|
### Cirrus CI
|
|
|
|
|
|
|
|
Cirrus CI runs a basic test suite on FreeBSD and Windows. This is configured in
|
|
|
|
`.cirrus.yml`.
|
|
|
|
|
|
|
|
You can [view the full list of CI jobs on Cirrus CI's
|
|
|
|
website](https://cirrus-ci.com/github/curl/curl).
|
|
|
|
|
2022-09-21 05:30:19 +08:00
|
|
|
`@bagder` has access to edit the "Project Settings" on that page. Additional
|
|
|
|
admins/group members can be added on request.
|