Skip to content

[NFC] Rename SPMTestSupport to _InternalTestSupport #7676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 27, 2024

Conversation

MaxDesiatov
Copy link
Contributor

There's no such product or entity as "SPM", this contraction is just as invalid as "MOS" would be for macOS, or "SNIO" for SwiftNIO. All marketing and documentation materials consistently refer to it as "SwiftPM", and we should stay consistent in our codebase too. This also simplifies code search, as anything named as "SPM" almost never shows up in results when searching globally for "SwiftPM".

We're not using SwiftPMTestSupport name here, as it might mislead contributors into thinking this module is somehow related to the swift test command. This module is purely internal, used only in modules with unit tests for SwiftPM itself, and is not supposed to be used by any packages depending on SwiftPM. Thus all @_spi declarations in it were also changed to package.

There's no such product or entity as "SPM", this contraction is just as invalid as "MOS" would be for macOS, or "SNIO" for SwiftNIO. All marketing and documentation materials consistently refer to it as "SwiftPM", and we should stay consistent in our codebase too. This also simplifies code search, as anything named as "SPM" almost never shows up in results when searching globally for "SwiftPM".

We're not using `SwiftPMTestSupport` name here, as it might mislead contributors into thinking this module is somehow related to the `swift test` command. This module is purely internal, used only in modules with unit tests for SwiftPM itself, and is not supposed to be used by any packages depending on SwiftPM. Thus all `@_spi` declarations in it were also changed to `package`.
@MaxDesiatov MaxDesiatov added the no functional change No user-visible functional changes included label Jun 18, 2024
@MaxDesiatov MaxDesiatov self-assigned this Jun 18, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov force-pushed the maxd/internal-test-support branch from d212230 to 2eb73b9 Compare June 18, 2024 16:23
@MaxDesiatov MaxDesiatov marked this pull request as ready for review June 18, 2024 16:35
@MaxDesiatov MaxDesiatov enabled auto-merge (squash) June 18, 2024 17:11
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov disabled auto-merge June 20, 2024 18:00
@MaxDesiatov MaxDesiatov changed the title Rename SPMTestSupport to InternalTestSupport Rename SPMTestSupport to _InternalTestSupport Jun 20, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov changed the title Rename SPMTestSupport to _InternalTestSupport [NFC] Rename SPMTestSupport to _InternalTestSupport Jun 20, 2024
@MaxDesiatov MaxDesiatov enabled auto-merge (squash) June 20, 2024 19:44
@MaxDesiatov MaxDesiatov disabled auto-merge June 21, 2024 00:04
…xd/internal-test-support

# Conflicts:
#	Sources/SPMTestSupport/ResolvedTarget+Mock.swift
#	Sources/_InternalTestSupport/ResolvedModule+Mock.swift
#	Sources/_InternalTestSupport/ResolvedTarget+Mock.swift
#	Tests/FunctionalPerformanceTests/BuildPerfTests.swift
#	Tests/FunctionalTests/ModuleMapTests.swift
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) June 26, 2024 21:41
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test linux

@MaxDesiatov MaxDesiatov merged commit 33662ed into main Jun 27, 2024
5 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/internal-test-support branch June 27, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no functional change No user-visible functional changes included
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants