Skip to content

noWarningFromRemoteDependencies tests in MiscellaneousTests fails against Swift Build #9078

@bkhouri

Description

@bkhouri

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

While working on #9039, which augmented the MiscellaneousTests to run against native and Swift Build build system, in addition to the debug and release build configuration, test noWarningFromRemoteDependencies failed when run against swiftbuild build system.

This issue is open to track the resolution of the test.

Search for the GitHub issue in the repository to track the impacted tests

Expected behavior

All tests pass without a withKnownIssue

Actual behavior

The noWarningFromRemoteDependencies(data:) test fails.

Test noWarningFromRemoteDependencies(data:) recorded an issue with 1 argument data → BuildData(buildSystem: SPMBuildCore.BuildSystemProvider.Kind.swiftbuild, config: PackageModel.BuildConfiguration.release) at MiscellaneousTests.swift:1154:13: Expectation failed: ((stdout + stderr) → "Building for production...
14:19:05  0%: Computing dependencies
14:19:05  0%: Computing dependencies
14:19:05  0%: Provisioning 4 / 7
14:19:05  0%: Constructing description
14:19:05  0%: Pre-planning 1 / 125
14:19:05  0%: Planning deferred tasks
14:19:05  15%: dep2 10 / 60
14:19:05  49%: dep2 31 / 62
14:19:05  54%: dep2 35 / 64
14:19:05  75%: 49 / 64
14:19:05  83%: app-product 57 / 68
14:19:05  96%: app 66 / 68
14:19:05  100%: 
14:19:05  Build complete! (3.51 secs)
14:19:05  Fetching /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep2
14:19:05  Fetching /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep1
14:19:05  Fetched /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep2 from cache (0.03s)
14:19:05  Fetched /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep1 from cache (0.03s)
14:19:05  Computing version for /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep2
14:19:05  Computed /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep2 at 1.2.3 (0.72s)
14:19:05  Computing version for /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep1
14:19:05  Computed /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep1 at 1.2.3 (0.71s)
14:19:05  Creating working copy for /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep1
14:19:05  Working copy of /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep1 resolved at 1.2.3
14:19:05  Creating working copy for /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep2
14:19:05  Working copy of /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/dep2 resolved at 1.2.3
14:19:05  warning: /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/app/.build/x86_64-unknown-linux-gnu/Intermediates.noindex/dep1.build/Release-linux/dep1.build/Objects-normal/x86_64/dep1-primary.dia Could not read serialized diagnostics file: unable to find libclang
14:19:05  warning: /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/app/.build/x86_64-unknown-linux-gnu/Intermediates.noindex/dep2.build/Release-linux/dep2.build/Objects-normal/x86_64/dep2-primary.dia Could not read serialized diagnostics file: unable to find libclang
14:19:05  warning: /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/app/.build/x86_64-unknown-linux-gnu/Intermediates.noindex/app.build/Release-linux/app.build/Objects-normal/x86_64/app-primary.dia Could not read serialized diagnostics file: unable to find libclang
14:19:05  warning: /tmp/Miscellaneous_DependenciesWarnings.h7bmF5/app/.build/x86_64-unknown-linux-gnu/Intermediates.noindex/app.build/Release-linux/app-1EC51E64-testable.build/Objects-normal/x86_64/app-1EC51E64-testable-primary.dia Could not read serialized diagnostics file: unable to find libclang
14:19:05  ").contains("'DeprecatedApp' is deprecated")

Steps to reproduce

  1. Remove the withKnownIssue block from the associated tests
  2. execute the associated tests.

Swift Package Manager version/commit hash

06fcc03f3b93325431d00e952e65b8ff4b4b30aa

Swift & OS version (output of swift --version ; uname -a)

❯ swiftly use    
main-snapshot-2025-08-27 (/Users/bkhouri/Documents/git/public/swiftlang/swift-package-manager-2/.swift-version)

❯ swift --version
Apple Swift version 6.2-dev (LLVM fa1f889407fc8ca, Swift 687e09da65c8813)
Target: arm64-apple-macosx26.0
Build config: +assertions

❯ uname -a
Darwin BKs-Work-M1Pro-MacBook-Pro-9.local 25.0.0 Darwin Kernel Version 25.0.0: Mon Aug 25 22:40:51 PDT 2025; root:xnu_development-12377.1.9~4/DEVELOPMENT_ARM64_T6000 arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugswift buildChanges impacting `swift build`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions