The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of swift-prometheus, reference 2.0.0 (bfcd4b), with Swift 6.0 for macOS (SPM) on 8 Nov 2024 17:12:15 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server/swift-prometheus.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swift-server/swift-prometheus
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at bfcd4bb Merge pull request from GHSA-x768-cvr2-345r
Cloned https://github.com/swift-server/swift-prometheus.git
Revision (git rev-parse @):
bfcd4bbfabe11aae4b035424ee9724582e288501
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server/swift-prometheus.git at 2.0.0
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-docc-plugin.git
Fetching https://github.com/apple/swift-metrics.git
[1/2085] Fetching swift-metrics
[168/4123] Fetching swift-metrics, swift-docc-plugin
[4124/5692] Fetching swift-metrics, swift-docc-plugin, swift-atomics
Fetched https://github.com/apple/swift-docc-plugin.git from cache (3.31s)
Fetched https://github.com/apple/swift-metrics.git from cache (3.31s)
Fetched https://github.com/apple/swift-atomics.git from cache (3.31s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.52s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.3 (0.66s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3168] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.28s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.69s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.5.0 (0.48s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.3
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.5.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-prometheus",
      "name": "swift-prometheus",
      "url": "https://github.com/swift-server/swift-prometheus.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-prometheus",
      "dependencies": [
        {
          "identity": "swift-atomics",
          "name": "swift-atomics",
          "url": "https://github.com/apple/swift-atomics.git",
          "version": "1.2.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-metrics",
          "name": "swift-metrics",
          "url": "https://github.com/apple/swift-metrics.git",
          "version": "2.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-metrics",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/swift-server/swift-prometheus.git
[1/2463] Fetching swift-prometheus
Fetched https://github.com/swift-server/swift-prometheus.git from cache (1.27s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-metrics.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (1.16s)
Fetched https://github.com/apple/swift-metrics.git from cache (1.16s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.04s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.5.0 (0.03s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/swift-server/swift-prometheus.git
Working copy of https://github.com/swift-server/swift-prometheus.git resolved at 2.0.0 (bfcd4bb)
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.5.0
warning: '.resolve-product-dependencies': dependency 'swift-prometheus' is not used by any target
Found 2 product dependencies
  - swift-atomics
  - swift-metrics
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/swift-server/swift-prometheus.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/7] Write sources
[5/7] Write swift-version--7754E27361AE5C74.txt
[6/10] Compiling _AtomicsShims.c
[8/29] Compiling Atomics ManagedAtomic.swift
[9/29] Compiling Atomics ManagedAtomicLazyReference.swift
[10/29] Compiling Atomics UnsafeAtomic.swift
[11/29] Compiling Atomics UnsafeAtomicLazyReference.swift
[12/31] Compiling Atomics AtomicOptionalWrappable.swift
[13/31] Compiling Atomics AtomicReference.swift
[14/31] Compiling Atomics AtomicMemoryOrderings.swift
[15/31] Compiling Atomics DoubleWord.swift
[16/31] Compiling Atomics AtomicStorage.swift
[17/31] Compiling Atomics AtomicValue.swift
[18/31] Compiling Atomics IntegerOperations.swift
[19/31] Compiling Atomics Unmanaged extensions.swift
[20/31] Compiling CoreMetrics Metrics.swift
[21/31] Emitting module CoreMetrics
[22/31] Compiling CoreMetrics Locks.swift
[23/31] Compiling Atomics Primitives.shims.swift
[24/31] Compiling Atomics AtomicInteger.swift
[25/31] Compiling Atomics OptionalRawRepresentable.swift
[26/31] Compiling Atomics RawRepresentable.swift
[27/31] Compiling Atomics PointerConformances.swift
[28/31] Compiling Atomics Primitives.native.swift
[29/31] Emitting module Atomics
[30/31] Compiling Atomics AtomicBool.swift
[31/31] Compiling Atomics IntegerConformances.swift
[32/39] Compiling Prometheus PrometheusMetricsFactory.swift
[33/39] Compiling Prometheus NIOLockedValueBox.swift
[34/39] Compiling Prometheus PrometheusCollectorRegistry.swift
[35/39] Emitting module Prometheus
[36/39] Compiling Prometheus NIOLock.swift
[37/39] Compiling Prometheus Gauge.swift
[38/39] Compiling Prometheus Counter.swift
[39/39] Compiling Prometheus Histogram.swift
Build complete! (27.46s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "swift-metrics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.4.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-metrics.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin.git"
    }
  ],
  "manifest_display_name" : "swift-prometheus",
  "name" : "swift-prometheus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "Prometheus",
      "targets" : [
        "Prometheus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrometheusTests",
      "module_type" : "SwiftTarget",
      "name" : "PrometheusTests",
      "path" : "Tests/PrometheusTests",
      "sources" : [
        "CounterTests.swift",
        "GaugeTests.swift",
        "HistogramTests.swift",
        "PrometheusCollectorRegistryTests.swift",
        "PrometheusMetricsFactoryTests.swift",
        "ValidNamesTests.swift"
      ],
      "target_dependencies" : [
        "Prometheus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Prometheus",
      "module_type" : "SwiftTarget",
      "name" : "Prometheus",
      "path" : "Sources/Prometheus",
      "product_dependencies" : [
        "Atomics",
        "CoreMetrics"
      ],
      "product_memberships" : [
        "Prometheus"
      ],
      "sources" : [
        "Counter.swift",
        "Gauge.swift",
        "Histogram.swift",
        "NIOLock.swift",
        "NIOLockedValueBox.swift",
        "PrometheusCollectorRegistry.swift",
        "PrometheusMetricsFactory.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/swift-server/swift-prometheus/2.0.0
Repository:               swift-server/swift-prometheus
Swift version used:       6.0
        .package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.3.0"),
Target:                   Prometheus
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
 * branch            88815688627177b9716a01ca41da19397bd30e47 -> FETCH_HEAD
HEAD is now at 8881568 Update the artifact
Extracting symbol information for 'Prometheus'...
Finished extracting symbol information for 'Prometheus'. (2.57s)
Building documentation for 'Prometheus'...
warning: 'Timer' doesn't exist at '/Prometheus/swift-metrics'
   --> swift-metrics.md:114:16-114:21
112 | #### Default buckets
113 |
114 + Swift Metric ``Timer``s are backed by a Prometheus ``DurationHistogram`` and Swift Metric
115 | ``Recorder``s that aggregate are backed by a Prometheus ``ValueHistogram``. As a user, you can
116 | specify which buckets shall be used within the backing ``Histogram``s.
warning: 'Recorder' doesn't exist at '/Prometheus/swift-metrics'
   --> swift-metrics.md:115:3-115:11
113 |
114 | Swift Metric ``Timer``s are backed by a Prometheus ``DurationHistogram`` and Swift Metric
115 + ``Recorder``s that aggregate are backed by a Prometheus ``ValueHistogram``. As a user, you can
116 | specify which buckets shall be used within the backing ``Histogram``s.
117 |
warning: 'init(client:)' doesn't exist at '/Prometheus/PrometheusMetricsFactory/defaultRegistry'
  --> ../PrometheusMetricsFactory.swift:22:38-22:51
20 |
21 |     /// The default ``PrometheusCollectorRegistry``, which is used inside the ``PrometheusMetricsFactory``
22 +     /// if no other is provided in ``init(client:)`` or set via ``PrometheusMetricsFactory/client``
23 |     public static var defaultRegistry: PrometheusCollectorRegistry {
24 |         self._defaultRegistry
warning: 'client' doesn't exist at '/Prometheus/PrometheusMetricsFactory'
  --> ../PrometheusMetricsFactory.swift:22:92-22:98
20 |
21 |     /// The default ``PrometheusCollectorRegistry``, which is used inside the ``PrometheusMetricsFactory``
22 +     /// if no other is provided in ``init(client:)`` or set via ``PrometheusMetricsFactory/client``
23 |     public static var defaultRegistry: PrometheusCollectorRegistry {
24 |         self._defaultRegistry
warning: 'TimeHistogram' doesn't exist at '/Prometheus/PrometheusMetricsFactory/defaultDurationHistogramBuckets'
  --> ../PrometheusMetricsFactory.swift:30:47-30:60
28 |     public var registry: PrometheusCollectorRegistry
29 |
30 +     /// The default histogram buckets for a ``TimeHistogram``. If there is no explicit overwrite
31 |     /// via ``durationHistogramBuckets``, the buckets provided here will be used for any new
32 |     /// Swift Metrics `Timer` type.
warning: 'TimeHistogram' doesn't exist at '/Prometheus/PrometheusMetricsFactory/durationHistogramBuckets'
  --> ../PrometheusMetricsFactory.swift:35:39-35:52
33 |     public var defaultDurationHistogramBuckets: [Duration]
34 |
35 +     /// The histogram buckets for a ``TimeHistogram`` per Timer label
36 |     public var durationHistogramBuckets: [String: [Duration]]
37 |Finished building documentation for 'Prometheus' (0.15s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/swift-server/swift-prometheus/2.0.0
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit Names.swift
[8/57] Compiling SymbolKit SPI.swift
[9/57] Compiling SymbolKit Snippet.swift
[10/57] Compiling SymbolKit Extension.swift
[11/57] Compiling SymbolKit SourceRange.swift
[12/57] Compiling SymbolKit Metadata.swift
[13/57] Compiling SymbolKit Module.swift
[14/57] Compiling SymbolKit OperatingSystem.swift
[15/57] Compiling SymbolKit Platform.swift
[16/57] Compiling SymbolKit DeclarationFragments.swift
[17/57] Compiling SymbolKit Fragment.swift
[18/57] Compiling SymbolKit FragmentKind.swift
[19/57] Compiling SymbolKit FunctionParameter.swift
[20/57] Compiling SymbolKit FunctionSignature.swift
[21/57] Compiling SymbolKit SemanticVersion.swift
[22/57] Compiling SymbolKit AccessControl.swift
[23/57] Compiling SymbolKit Availability.swift
[24/57] Compiling SymbolKit AvailabilityItem.swift
[25/57] Compiling SymbolKit Domain.swift
[26/57] Compiling SymbolKit Mixin+Equals.swift
[27/57] Compiling SymbolKit Mixin+Hash.swift
[28/57] Compiling SymbolKit Mixin.swift
[29/57] Compiling SymbolKit LineList.swift
[30/57] Compiling SymbolKit Position.swift
[31/57] Compiling SymbolKit Identifier.swift
[32/57] Compiling SymbolKit KindIdentifier.swift
[33/57] Compiling SymbolKit Location.swift
[34/57] Compiling SymbolKit Mutability.swift
[35/57] Compiling SymbolKit GenericConstraint.swift
[36/57] Compiling SymbolKit GenericParameter.swift
[37/57] Compiling SymbolKit Generics.swift
[38/57] Compiling SymbolKit Namespace.swift
[39/57] Compiling SymbolKit Symbol.swift
[40/57] Compiling SymbolKit SymbolKind.swift
[41/57] Compiling SymbolKit SymbolGraph.swift
[42/57] Compiling SymbolKit GraphCollector.swift
[43/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[44/57] Compiling SymbolKit UnifiedSymbol.swift
[45/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[46/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[47/57] Compiling SymbolKit Relationship.swift
[48/57] Compiling SymbolKit RelationshipKind.swift
[49/57] Compiling SymbolKit SourceOrigin.swift
[50/57] Compiling SymbolKit GenericConstraints.swift
[51/57] Compiling SymbolKit Swift.swift
[52/57] Compiling Snippets Snippet.swift
[53/57] Emitting module Snippets
[54/57] Compiling Snippets SnippetParser.swift
[55/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[56/61] Compiling snippet_extract SnippetBuildCommand.swift
[57/61] Compiling snippet_extract URL+Status.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.98s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/23] Compiling CoreMetrics Locks.swift
[3/23] Compiling Atomics OptionalRawRepresentable.swift
[4/23] Compiling Atomics RawRepresentable.swift
[5/25] Compiling Atomics UnsafeAtomic.swift
[6/25] Compiling Atomics UnsafeAtomicLazyReference.swift
[7/25] Compiling Atomics ManagedAtomic.swift
[8/25] Compiling Atomics ManagedAtomicLazyReference.swift
[9/25] Compiling Atomics Primitives.shims.swift
[10/25] Compiling Atomics AtomicInteger.swift
[11/25] Compiling Atomics AtomicOptionalWrappable.swift
[12/25] Compiling Atomics AtomicReference.swift
[13/25] Compiling Atomics AtomicMemoryOrderings.swift
[14/25] Compiling Atomics DoubleWord.swift
[15/25] Compiling Atomics IntegerOperations.swift
[16/25] Compiling Atomics Unmanaged extensions.swift
[17/25] Compiling CoreMetrics Metrics.swift
[18/25] Emitting module CoreMetrics
[19/25] Compiling Atomics AtomicStorage.swift
[20/25] Compiling Atomics AtomicValue.swift
[21/25] Compiling Atomics PointerConformances.swift
[22/25] Compiling Atomics Primitives.native.swift
[23/25] Compiling Atomics AtomicBool.swift
[24/25] Compiling Atomics IntegerConformances.swift
[25/25] Emitting module Atomics
[26/33] Compiling Prometheus NIOLockedValueBox.swift
[27/33] Compiling Prometheus Counter.swift
[28/33] Emitting module Prometheus
[29/33] Compiling Prometheus PrometheusMetricsFactory.swift
[30/33] Compiling Prometheus Histogram.swift
[31/33] Compiling Prometheus NIOLock.swift
[32/33] Compiling Prometheus Gauge.swift
[33/33] Compiling Prometheus PrometheusCollectorRegistry.swift
Build of target: 'Prometheus' complete! (1.62s)
     194
2	/Users/admin/builder/spi-builder-workspace/.docs/swift-server/swift-prometheus/2.0.0
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/swift-server/swift-prometheus/2.0.0
File count: 194
Doc size:   2.0MB
Preparing doc bundle ...
Uploading prod-swift-server-swift-prometheus-2.0.0-911d0e69.zip to s3://spi-docs-inbox/prod-swift-server-swift-prometheus-2.0.0-911d0e69.zip
Copying... [13%]
Copying... [26%]
Copying... [39%]
Copying... [52%]
Copying... [65%]
Copying... [78%]
Copying... [91%]
Copying... [100%]
Done.