Skip to content

SwiftPackageIndex/spi-s6-preview-analysis

Repository files navigation

Swift 6 Preview Analysis

Run via

swift run spi-s6-preview-analysis analysis.json

Input files

Package selection files

Generated via queries on snapshot spi_dev-2024-05-04.dump.

  • all packages
-- SELECT-ALL-01
SELECT
    r.last_commit_date::date AS last_commit,
    p.url
FROM
    packages p JOIN repositories r ON p.id = r.package_id
WHERE
    p.created_at < DATE '2024-03-19'
    AND r.last_commit_date > DATE '2023-03-19'
ORDER BY
    p.url
;
  • Apple packages
-- SELECT-APPLE-01
SELECT
    r.last_commit_date::date AS last_commit,
    p.url
FROM
    packages p JOIN repositories r ON p.id = r.package_id
WHERE
    p.created_at < DATE '2024-03-19'
    AND r.last_commit_date > DATE '2023-03-19'
    AND r.owner = 'apple'
ORDER BY
    p.url
;
  • SSWG packages
-- SELECT-SSWG-01
SELECT
    r.last_commit_date::date AS last_commit,
    p.url
FROM
    packages p JOIN repositories r ON p.id = r.package_id
WHERE
    p.url in ('https://github.com/apple/swift-cassandra-client.git', 'https://github.com/apple/swift-crypto.git', 'https://github.com/apple/swift-distributed-actors.git', 'https://github.com/apple/swift-distributed-tracing.git', 'https://github.com/apple/swift-log.git', 'https://github.com/apple/swift-metrics.git', 'https://github.com/apple/swift-nio.git', 'https://github.com/apple/swift-openapi-generator.git', 'https://github.com/apple/swift-service-context.git', 'https://github.com/apple/swift-statsd-client.git', 'https://github.com/DiscordBM/DiscordBM.git', 'https://github.com/GraphQLSwift/Graphiti.git', 'https://github.com/GraphQLSwift/GraphQL.git', 'https://github.com/grpc/grpc-swift.git', 'https://github.com/hummingbird-project/hummingbird.git', 'https://github.com/lovetodream/oracle-nio.git', 'https://github.com/mattpolzin/OpenAPIKit.git', 'https://github.com/mongodb/mongo-swift-driver.git', 'https://github.com/orlandos-nl/MongoKitten.git', 'https://github.com/soto-project/soto.git', 'https://github.com/swift-server-community/APNSwift.git', 'https://github.com/swift-server-community/mqtt-nio.git', 'https://github.com/swift-server/async-http-client.git', 'https://github.com/swift-server/RediStack.git', 'https://github.com/swift-server/swift-aws-lambda-runtime.git', 'https://github.com/swift-server/swift-backtrace.git', 'https://github.com/swift-server/swift-prometheus.git', 'https://github.com/swift-server/swift-service-lifecycle.git', 'https://github.com/vapor/multipart-kit.git', 'https://github.com/vapor/postgres-nio.git', 'https://github.com/vapor/sqlite-nio.git', 'https://github.com/vapor/vapor.git')
    AND p.created_at < DATE '2024-03-19'
ORDER BY
    p.url
;

Result files

Generated by loading the appropriate database dump and then running the query:

-- RESULTS-01
select p.id, p.url, b.status, platform, build_errors->>'numSwift6Errors' swift6_errors, log_url, job_url
from builds b
join versions v on b.version_id = v.id
join packages p on v.package_id = p.id
where swift_version->>'major' = '6'
order by p.url, platform
;

About

Package to process the "Ready for Swift 6" preview results

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages