Skip to content

smoke test: switch to compile-check + use .product reference shape #10

Description

@TeoSlayer

After #9 the smoke gets past the checksum + awk + heredoc bugs but still fails on two structural issues:

  1. The smoke's generated `Package.swift` uses `dependencies: ["Pilot"]` shorthand:
    ```
    error: 'smoke': product 'Pilot' required by package 'smoke' target 'smoke' not found.
    Did you mean '.product(name: "Pilot", package: "sdk-swift")'?
    ```
  2. The current step is `swift run smoke`, but the README snippet calls `Pilot.start(...)` which dials a daemon socket. CI has no daemon.

Same shape as the sdk-node fix that just landed: switch from execution to compile-check against the freshly-built SDK. `swift build` (no `run`) catches the renames-and-signature-drifts the smoke is actually there to guard, without needing a daemon.

Steps:

  • Use `.product(name: "Pilot", package: "sdk-swift")` in the smoke's Package.swift
  • Replace `swift run smoke` with `swift build --target smoke` (or equivalent)
  • Confirm a deliberately-broken snippet (e.g. wrong method name) fails the build with a useful error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions