Skip to content

Swift Experimental=>Default-On - #1900

Merged
Ryan Brandenburg (ryanbrandenburg) merged 1 commit into
mainfrom
users/rybrande/SwiftDefaultOn
Oct 20, 2026
Merged

Ryan Brandenburg (ryanbrandenburg) merged 1 commit into
mainfrom
users/rybrande/SwiftDefaultOn

Conversation

@ryanbrandenburg

Copy link
Copy Markdown
Contributor

Everything looks good for Swift so we're looking to take it to Default-On.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Snapshot verification needs to handle Swift dependency graphs absent from experimental baselines.

1 open issue
What changed in this PR

Promotes Swift Package Manager detection to default-on, including discovered dependencies in normal scan results.

Changes:

  • Removes Swift’s experimental status and experiment registration.
  • Updates lifecycle tests and removes obsolete experiment tests.
  • Documents Swift detection as stable and enabled by default.
File Description
test/​Microsoft.ComponentDetection.Orchestrator.Tests/​Experiments/​SwiftDetectorExperimentTests.cs Removes obsolete experiment tests.
test/​Microsoft.ComponentDetection.Orchestrator.Tests/​Experiments/​ExperimentServiceTests.cs Removes Swift-specific experiment scenarios.
test/​Microsoft.ComponentDetection.Orchestrator.Tests/​Experiments/​ExperimentConfigTests.cs Checks Swift is outside experiment groups.
test/​Microsoft.ComponentDetection.Detectors.Tests/​ComponentDetectorTests.cs Checks default-on status.
src/​Microsoft.ComponentDetection.Orchestrator/​Extensions/​ServiceCollectionExtensions.cs Removes Swift experiment registration.
src/​Microsoft.ComponentDetection.Orchestrator/​Experiments/​Configs/​SwiftDetectorExperiment.cs Deletes retired experiment configuration.
src/​Microsoft.ComponentDetection.Detectors/​swiftpm/​SwiftResolvedComponentDetector.cs Removes experimental marker.
docs/​detectors/​swift.md Documents default-on behavior.
docs/​detectors/​README.md Marks Swift detection stable.

Review effort: Balanced

@ryanbrandenburg

Copy link
Copy Markdown
Contributor Author

Snapshot failures are expected, Swift being default-on means it's seeing Package.resolved for the first time.

@ryanbrandenburg
Ryan Brandenburg (ryanbrandenburg) merged commit 73c64da into main Oct 20, 2026
13 of 16 checks passed
@ryanbrandenburg
Ryan Brandenburg (ryanbrandenburg) deleted the users/rybrande/SwiftDefaultOn branch October 20, 2026 15:49
@github-actions

Copy link
Copy Markdown

👋 Hi! It looks like you modified some files in the Detectors folder.
You may need to bump the detector versions if any of the following scenarios apply:

  • The detector detects more or fewer components than before
  • The detector generates different parent/child graph relationships than before
  • The detector generates different devDependencies values than before

If none of the above scenarios apply, feel free to ignore this comment 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants