Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f25b9e9
feat: add parity-api-coverage swiftpm targets and product
ChakornK Nov 11, 2026
7cc319a
feat: add api coverage data models
ChakornK Nov 11, 2026
6b440e5
feat: add name stoplist and permitted reason categories
ChakornK Nov 11, 2026
be9e9f0
feat: add path resolver with xcrun and artifactbundle fallback
ChakornK Nov 11, 2026
65a80d9
feat: add api surface extractor and symbol visitor
ChakornK Nov 11, 2026
12d0f0f
feat: add reference scanner with import and stoplist gating
ChakornK Nov 11, 2026
3f46114
feat: add coverage engine with name-match and signature-precise strat…
ChakornK Nov 11, 2026
76e3e73
feat: add allowlist validator with load and validate
ChakornK Nov 11, 2026
cec2322
feat: add report validator and emitter
ChakornK Nov 11, 2026
d9cb7b3
feat: add parity-api-coverage orchestrator entry point
ChakornK Nov 11, 2026
fff9ae6
test: add api surface extractor unit tests
ChakornK Nov 11, 2026
63e901b
test: add reference scanner, allowlist, and coverage engine tests
ChakornK Nov 11, 2026
40d002e
test: add report emitter and evaluation date tests
ChakornK Nov 11, 2026
05ff149
test: add property-based tests for 10 correctness properties
ChakornK Nov 11, 2026
ce03752
test: add signature-precise strategy verification
ChakornK Nov 11, 2026
0f776e0
fix: resolve build issues in runtime components
ChakornK Nov 11, 2026
dd8ede8
fix: resolve build issues in tests
ChakornK Nov 11, 2026
9801655
feat: add api coverage step to ci workflow and empty allowlist
ChakornK Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/swiftdata-parity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ jobs:
- name: Validate source coverage
if: always()
run: swift run --package-path Tests/SwiftDataParity/AppleRunner parity-validate
- name: Compare scenario observations
- name: Validate API surface coverage
if: always()
run: swift run --package-path Tests/SwiftDataParity/AppleRunner parity-api-coverage --sdk "$(xcrun --show-sdk-path)"
- name: Compare scenario observations
run: swift run --package-path Tests/SwiftDataParity/AppleRunner parity-compare --osd /tmp/osd-observations.json --apple /tmp/apple-observations.json --allowlist Tests/SwiftDataParity/parity-allowlist.json --matrix Tests/SwiftDataParity/parity-matrix.json --coverage-report parity-coverage-report.json --report /tmp/parity-diff.json
- name: Upload parity artifacts
if: always()
Expand All @@ -41,4 +43,5 @@ jobs:
/tmp/apple-observations.json
/tmp/parity-diff.json
parity-coverage-report.json
parity-api-coverage-report.json
if-no-files-found: warn
24 changes: 24 additions & 0 deletions Tests/SwiftDataParity/AppleRunner/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let package = Package(
.executable(name: "apple-parity-runner", targets: ["AppleParityRunner"]),
.executable(name: "parity-validate", targets: ["ParityValidate"]),
.executable(name: "parity-compare", targets: ["ParityCompare"]),
.executable(name: "parity-api-coverage", targets: ["ParityApiCoverage"]),
],
dependencies: [
.package(path: "../Contracts"),
Expand Down Expand Up @@ -42,6 +43,29 @@ let package = Package(
.target(
name: "ParityCompareRuntime",
dependencies: [.product(name: "ParityContracts", package: "contracts")]),
.executableTarget(
name: "ParityApiCoverage",
dependencies: [
.product(name: "ParityContracts", package: "contracts"),
"ParityApiCoverageRuntime",
],
path: "Sources/ParityApiCoverage"),
.target(
name: "ParityApiCoverageRuntime",
dependencies: [
.product(name: "ParityContracts", package: "contracts"),
.product(name: "SwiftParser", package: "swift-syntax"),
.product(name: "SwiftParserDiagnostics", package: "swift-syntax"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
],
path: "Sources/ParityApiCoverageRuntime"),
.testTarget(
name: "ParityApiCoverageTests",
dependencies: [
.product(name: "ParityContracts", package: "contracts"),
"ParityApiCoverageRuntime",
],
path: "Tests/ParityApiCoverageTests"),
.testTarget(
name: "ParityToolTests",
dependencies: [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Foundation
import ParityApiCoverageRuntime

// The `parity-api-coverage` executable entry point. Delegates all logic to
// `ParityApiCoverageRunner` in the runtime module so the test target can
// exercise the same code path without depending on the executable.

@main
struct ParityApiCoverage {
static func main() {
Foundation.exit(ParityApiCoverageRunner.run(args: CommandLine.arguments))
}
}
Loading
Loading