47 Commits
Author SHA1 Message Date
Rick Newton-Rogers 75e5a978e8 Switch allocation benchmarks to GHA (#488)
### Motivation:

This will allow us to decommission the old CI hooks.

### Modifications:

* Migrate the existing tests to use the package-benchmark framework.
* Delete the obsolete integration tests
* Remove allocations test references from the docker files.

### Result:

Allocation counts are checked using GitHub Actions.
2024-10-25 16:17:41 +01:00
Rick Newton-Rogers 61cfaf9798 Migrate to GitHub Actions (#487)
Migrate CI to use GitHub Actions.

### Motivation:

To migrate to GitHub actions and centralised infrastructure.

### Modifications:

Changes of note:
* Disable warnings-as-errors until issues with recent NIO changes are
resolved
* Adopt swift-format using rules from SwiftNIO
* Remove scripts which are no longer needed

### Result:

Feature parity with old CI minus allocation tests which remain on the
old CI.
2024-10-25 09:32:23 +01:00
George Barnett 3b2a01c9de Raise minimum Swift version to 5.8 (#458) 2024-03-11 08:50:45 +00:00
Gustavo Cairo e0464ed61f Add cxx interop build pipeline (#454) 2024-01-02 13:55:07 +00:00
Rick Newton-Rogers c05ca760bd Bump minimum Swift version to 5.7 (#445)
Motivation:

Now that Swift 5.9 is GM we should update the supported versions and
remove 5.6

Modifications:

* Update `Package.swift`
* Remove `#if swift(>=5.7)` guards
* Delete the 5.6 docker compose file and make a 5.10 one
* Update docs

Result:

Remove support for Swift 5.6, add 5.10
2023-10-04 10:16:24 +01:00
Cory Benfield 5c57d8e64a Drop Swift 5.5 (#425)
* Drop Swift 5.5

This patch drops Swift 5.5 support. It removes docker-compose files and
deletes any conditional compilation guards that are no longer necessary.

* Remove test generation script
2023-04-13 16:48:55 +01:00
Yim Lee f042165759 Add docker-compose file for Swift 5.9 (#423) 2023-04-13 09:43:55 +01:00
Cory Benfield c608fe2787 Fix the docs and add infrastructure for CI-ing it (#422)
* Fix the docs and add infrastructure for CI-ing it

* Update soundness for 2023
2023-04-11 03:44:18 -07:00
George Barnett 845a97cbd5 Remove Jazzy doc generation (#417)
Motivation:

Docs are generated by and hosted on the Swift Package Index. We no
longer need the script to generate docs via Jazzy.

Modifications:

- Remove the generate_docs script
- Remove Jazzy from the Dockerfile but keep Ruby; it's used for
  generating test manifests.
- Remove SwiftFormat from the Dockerfile; we don't use it.

Result:

Fewer unused things.
2023-01-23 07:50:26 -08:00
David Nadoba 26cf90aafb Add Swift 5.8 CI and update nightly CI to Ubuntu 22.04 (#415) 2023-01-18 08:16:32 +01:00
George Barnett ef0baa9dcc Raise minimum supported Swift version from 5.4 to 5.5 (#401)
Motivation:

SwiftNIO periodically drops support for older Swift versions. Now that
5.7 has been released, 5.4 will be dropped.

Modifications:

- Remove 5.4 specific Package.swift and docker-compose
- Update the 5.7 docker-compose to use the released 5.7 and move from
  focal (2004) to jammy (2204)
- Fix the tools version in Package@swift-5.5.swift
- Update docs

Results:

Minimum Swift version is 5.5
2022-09-29 09:22:22 +01:00
Cory Benfield c250a5cdcc Validate missing imports in CI (#396) 2022-08-16 01:10:23 -07:00
Cory Benfield 1b16a07692 Use Docc for documentation (#390)
Motivation

Documentation is nice, and we can help support users by providing useful
clear docs.

Modifications

Add Docc to 5.6 and later builds
Make sure symbol references work
Add overview docs

Result

Nice rendering docs
2022-08-09 08:33:58 +01:00
Cory Benfield 2054785706 Use the 5.7 nightlies 2022-06-13 11:07:21 +01:00
Fabian Fett e018a45ee1 Drop support for Swift 5.2 and 5.3 (#353)
As outlined in a [Swift forums post in November ’21](https://forums.swift.org/t/swiftnio-swift-version-support/53232), SwiftNIO will only support the latest non-patch Swift release and the 2 immediately prior non-patch versions.

- drop support for Swift 5.2 and 5.3
- update CI for Swift 5.4 to run on bionic instead of focal to ensure that we still test bionic
2022-04-20 08:55:29 +02:00
tomer doron 389adf055c ci update (#349)
motivation: 5.6 is out

changes:
* use release version of 5.6
* add docker setup for 5.7 (using nightly for now)
2022-03-16 21:19:27 -07:00
Cory Benfield 59d9dcaf1a Add 5.6 nightly CI. (#339)
The 5.6 nightly images are available, let's use them.
2022-01-18 01:10:52 -08:00
Cory Benfield 044f90dfa0 Migrate to Swift 5.5 release in CI (#324) 2021-09-22 09:23:20 +01:00
George Barnett bf4b24679a Fix doc generation and jazzy version (#1950) (#313)
From: https://github.com/apple/swift-nio-extras/pull/141

Motivation:

The combination of Ruby and Jazzy are throwing up issues in CI on older
Ubuntu versions.

Modifications:

- Only install Jazzy on focal
- Fix doc generation script to use more recent source-kitten syntax

Results:

- CI doesn't complain
- Docs get built
2021-09-03 14:25:19 +01:00
David Evans 9317691e7e Remove support for Swift 5.0 and 5.1 (#302)
Changes made:

Removed CI config for 5.0 ad 5.1
Changed 5.2 to be based on 16.04 so we have some coverage there
Converted Package.swift to the latest syntax
Added a description to supported Swift versions in the README
2021-06-22 18:29:52 +01:00
Johannes Weiss 597f4ac6bf add Swift 5.5 job (#292) 2021-05-05 07:38:01 +01:00
Johannes Weiss 266a083bd8 docker: use 5.4 release instead of nightly (#291) 2021-05-04 16:59:10 +01:00
Cory Benfield 07c160b872 Add a correct docker-compose file for nightly (#283) 2021-03-17 13:22:55 +00:00
Johannes WeissandCory Benfield 9a1c88ef0e docker setup for main nightlies (#272)
* docker setup for main nightlies

* Update docker-compose.2004.main.yaml

Co-authored-by: Cory Benfield <lukasa@apple.com>
2021-03-17 11:22:36 +00:00
Johannes Weiss b986e0cefb Swift 5.4 Docker setup (#270) 2021-02-28 13:40:24 +00:00
Fabian Fett 00c264d7a5 Use welcoming language (#265) 2021-01-22 13:46:59 +00:00
Cory Benfield 4c66baf51d We use the main branch now. (#243) 2020-09-25 20:25:03 +01:00
Cory Benfield 3f26a3e8a1 Swift 5.3-RELEASE is out, let's use it. (#241) 2020-09-21 10:07:16 +01:00
Peter Adams 7efa8a714f Don't install Jazzy on Xenial (#234)
Motivation:

Ruby on Xenial is too old for the cocoapods downloader which jazzy uses.

Modifications:

Change Dockerfile to not install Jazzy on xenial.

Result:

Dockerfile will build again, but bionic or later is required for docs.
2020-07-21 18:05:48 +01:00
tomer doron 67303bd6d8 improve 5.3 docker setup (#214)
motivation: pin to 5.3 nighties 

changes: use swiftlang/swift:nightly-5.3-master-bionic instead of swiftlang/swift:nightly-master-bionic
2020-05-05 08:49:53 +01:00
Cory Benfield f02ae1bd04 Fix broken docker installation (#209) 2020-05-01 07:11:37 +01:00
tomer doron 0499d739b4 improve docker security (#178)
motivation: more secured ci setup

changes:
* enable :z selinux flag on bind mounts so we can enable selinux on ci
* drop potentially exploitable capabilities from docker-compose
2020-02-01 07:39:32 +00:00
Cory Benfield b015dcbe87 Add regression limits for allocation tests. (#160)
Motivation:

We missed these out, which means we failed to detect the massive
allocation win in #159.

Modifications:

Correctly add allocation limits.

Result:

We'll know if we regress.
2019-12-04 17:06:24 +00:00
tomer doron e5c7a18a91 add harness for performance tests (#156)
motivation: run performance tests 🎉

changes: add performance-test task in docker-compose setup, add script to analyze performance results to be used in CI
2019-12-02 09:20:11 +00:00
Cory Benfield f2ac69d154 Add regression test for executable stacks. (#152)
Motivation:

We want the CI to make sure we don't accidentally regress the executable
stack property of the binary.

Modifications:

Run execstack against our build output in the integration tests.

Result:

We shouldn't regress the executable stacks.
2019-11-26 09:50:39 +00:00
Johannes Weiss c277611ec3 enable TSan in CI (#145) 2019-10-25 01:28:55 -07:00
tomer doron 0ec8dcf248 api breakage detection (#138)
motivation: test for api breakage on PR

changes:

* add script to detect api breakage
* amend docker setup to include jq
* amend docker-compose setup to include a shell utility task
2019-10-07 15:00:16 -07:00
tomer doron 71aa686d58 swift 5.1 docker setup (#133)
* swift 5.1 docker setup

motivation: support swift 5.1

changes:
* use formal swift docker images
* refactor docker-compose to seperate unit tests, integration tests and full test suites
* add docker compose file for swift 5.1, will add CI job once merged
* update swiftformat version to 0.40.12
2019-09-24 20:51:18 +01:00
Johannes Weiss a5839aa4e6 run integration tests in CI (#114) 2019-06-27 15:12:47 +01:00
tomer doron 47d971e136 add doc generation script (#91)
motivation: publish API docs

changes:

amend docker file to include jazzy
add doc generation script based on what we have in swift-nio and swift-log
2019-03-27 08:38:30 +00:00
Johannes Weiss 769e8cbcfc use Swift 5.0 release (#90) 2019-03-26 11:20:36 +00:00
Cory Benfield 5995ce5eac Remove the static target from regular Package.swift. (#85)
Motivation:

We have a static library target that is used as part of the BoringSSL
vendoring setup to generate a list of hidden symbols. This works nicely,
but building it fires out a bunch of warnings due to files with no symbols
in them. That's fine during the build phase, but most developers should
never need to see it.

Modifications:

- Hide the static archive product most of the time.
- Update vendor script to un-hide the static archive product on vendoring.
- Enable warnings-as-errors.

Result:

Fewer warnings.
2019-03-13 16:34:56 +00:00
Cory Benfield 73c83809d6 Update Swift 5 version for CI (#67) 2019-02-20 12:54:36 +00:00
Cory Benfield 99501be40c Update the Swift 5 CI version. (#66)
Motivation:

The older Swift 5 we're using in CI breaks on our Package.swift. This
rather limits the utility of our CI.

Modifications:

Use a newer Swift 5 snapshot.

Result:

CI will actually work.
2019-01-25 11:39:24 +00:00
tomer doron 495ca1bf0f add docker compose setup for swift 5
motivation: move development to swift 5

changes:
* add docker compose file for swift 5
* adjust dockerfile to support how swift 5 is distributed
2019-01-22 14:30:31 -08:00
tomer doron 953b73818f add support for muliple build architectures and swift versions with docker compose (#33)
motivation: easier testing on different architectures and swift versions

changes:
* update dockerfile to match more closely what we do in swift-nio, including support for extenral versions of ubuntu and swift
* add docker-compose files representing different permutations of ubuntu and swift versions
2018-09-10 09:23:04 +01:00
tomer doron c73f4180ce prepare ci scripts (#7)
Motivation:

set up continuous integration

Modifications:

add docker file to include all dependencies required for build and tests

Result:

able to set up docker based continuous integration
2018-02-26 18:25:54 -08:00