Commit Graph

24 Commits

Author SHA1 Message Date
Peter Adams 79e5fb4fe4
Raise minimum swift version to 5.8 (#147)
Motivation:

It's consistant with support policy (see https://github.com/apple/swift-metrics/pull/141).
It matches what's being tested.
It will make future changes adopting new features easier.

Modifications:

Bump swift tools version to 5.8
Remove linux tests and test discovery flag which are not required.

Result:

Will not longer build using swift before 5.8 - older compilers will find older
versions of this library when resolving versions.
2024-06-12 10:53:26 +01:00
Franz Busch 7e53749103
Align supported Swift versions with rest of the ecosystem (#141)
# Motivation

Most of the server ecosystem follows the supported Swift versions from `swift-nio`. This means supporting the latest 3 Swift releases.

# Modification

This PR drops support for all Swift versions before 5.8.

# Result

This makes maintaining this repository easier and allows us to clean up some no longer needed stuff.
2024-05-09 11:19:06 +09:00
Yim Lee 9c0646af4d
Add CI for Swift 5.10 (#138) 2024-01-23 08:24:32 -08:00
tomer doron 32eef8ae84
add "meter" - a new type of metric and metric handler (#123)
motivation: seperate gauge from recorder in a backwards compatible way

changes:
* add new meter and meter handler pair
* add increment and decrement to meter handler
* add default implementation based on recorder for backwards compatibility
* add and adjust tests
2023-05-24 13:55:56 -07:00
Yim Lee a79936ffc1
Update CI (#124)
- Swift 5.8 docker images are available
- Add docker-compose file for Swift 5.9
2023-04-04 20:30:21 -07:00
Yim Lee cbfde655cf
Add CI for Swift 5.8 and update nightly to Ubuntu 22.04 (#121) 2023-01-24 13:34:45 -08:00
Konrad `ktoso` Malawski bcea8c19fe
+docc prepare for docc publishing (#118)
* +docc prepare for docc publishing

* fix test discovery on 5.5 and 5.6

* Delete Package@swift-5.6.swift

* Update Package.swift

* Apply suggestions from code review

Co-authored-by: Yim Lee <yim_lee@apple.com>

Co-authored-by: Yim Lee <yim_lee@apple.com>
2022-08-24 11:20:06 +09:00
tomer doron d885a4f5e9
adopt sendable (#109)
motivation: adjust to swift 5.6

changes:
* define sendable shims for protocols and structs that may be used in async context
* refactor Gauge to include rather than inherit Recorder
* adjust tests
* add a test to make sure no warning are emitted
2022-07-01 16:38:50 -07:00
tomer doron e00284be24
ci update (#108)
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:04:42 -07:00
Cory Benfield ea66bbc2b5
Add 5.6 nightly CI (#105)
The 5.6 nightly images are avaialable, let's use them.
2022-01-18 11:52:54 -08:00
tomer doron 6bc8aa8a06
add docker-compose setup for 5.5 (#104)
motivation: tests on 5.5

changes: add docker compose file for testing on 5.5
2021-12-16 16:38:36 -08:00
tomer doron 495aca6d51
update doc generation script (#103)
motivation: source-kitten has changed how its invoked

changes:
* invoke source-kitten with the correct flags
* make location of source-kitten source checkout more robust
* udpate docker to install jazzy on on focal
2021-12-16 15:17:27 -08:00
tomer doron e2c4a510b6
update 5.4 to release docker image (#94)
motivation: 5.4 is out!

changes: use release docker images instead of nightly
2021-05-06 18:24:14 -07:00
tom doron de1a7d570b add docker setup for 5.4 and nightly
motivation: CI for 5.4 and latest

changes: add docker setup files for 5.4 and main nightly images
2021-02-27 10:58:36 +09:00
Yim Lee 923775a5f6
Use welcoming language (#90) 2021-01-22 00:42:50 -08:00
tomer doron cf757fe4eb
remove symbolicate-linux-fatal from Docker (#81)
motivation: we are not actually using symbolicate-linux-fatal in any meaningful way in CI and it's pinned to the master branch which has been removed

changes: remove symbolicate-linux-fatal fetching from Docker
2020-10-07 16:46:50 -07:00
tomer doron 69cc955761 Swift 5.3 was released, use if for CI
motivation: Swift 5.3 was released, use if for CI

changes: update docker setup to use the release version of 5.3
2020-09-20 12:09:04 +09:00
tomer doron 56ae451f00
improve 5.3 docker setup (#71)
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 12:00:16 -07:00
tomer doron 41d2db7675
update ci setup (#67)
motivation: 5.2 adoption, prepare for 5.3

changes:
* add 5.2 docker-compose setup
* add 5.3 docker-compose setup (placeholder)
* remove 4.2 docker-compose setup
* format
2020-04-03 19:50:13 -07:00
tom doron b2de986030 improve docker security
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-01-30 12:25:55 +09:00
tomer doron c471ec9b35
check for api breakage and prepare to test with thread sanitizer in ci (#49)
motivation: better ci testing

changes:
* add api breakage script to test api breakage in ci
* add "shell" utility docker-compose task to run api breakage script
* change test task to treat warning as errors
* prepare to test with thread sanitizer in 5.1
2019-11-04 16:43:49 -08:00
tomer doron 18d9833602 swift 5.1 docker setup
motivation: support swift 5.1

changes:
* add docker compose file for swift 5.1, will add CI job once merged
* update swiftformat version to 0.40.12
2019-09-24 12:41:39 +09:00
tomer doron 25c2c17b45 test formatting issues as part of sanity check
motivaiton: unified format

changes:
* use official docker image 🎉
* fix outstanding formatting issues
* add a call to swiftformat as part of sanity script
* fix sanity script language check debugging statements
2019-07-30 14:10:30 +09:00
tomer doron 585a41d684
prepare to release (#1)
* prepare to release

motivation: the sswg voted to adopt the API. this is to prepare to a release

changes:
* rewrite readme
* add API docs
* add utilitiy scripts and docker setup for CI
* adjust linux tests
2019-04-08 18:58:55 -07:00