-
Notifications
You must be signed in to change notification settings - Fork 9
🩹 [Patch]: Integration tests no longer collide and Organizations enterprise flow is reliable #599
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
Marius Storhaug (MariusStorhaug)
merged 23 commits into
main
from
fix/595-596-per-test-file-repos
May 14, 2026
Merged
🩹 [Patch]: Integration tests no longer collide and Organizations enterprise flow is reliable #599
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
0a4cff5
Use per-test-file repo names in Environments, Secrets, Variables, Rel…
MariusStorhaug c84380c
Provision and tear down per-test-file repositories in global setup an…
MariusStorhaug fe3248a
Clean up stale releases in Releases per-context BeforeAll to support …
MariusStorhaug 9da0e0a
Remove the test environment in Secrets and Variables AfterAll to prev…
MariusStorhaug 8f94994
Retry Install-GitHubApp on enterprise organization to absorb propagat…
MariusStorhaug 2b3cbe8
Document enterprise_organization_installations permission requirement…
MariusStorhaug d8def0c
Move Remove-GitHubOrganization (enterprise, Should -Throw) to after I…
MariusStorhaug 3362dc5
Clarify why enterprise IAT cannot delete an org (endpoint requires or…
MariusStorhaug f80b19d
Refactor test cleanup in AfterAll.ps1 and streamline organization rem…
MariusStorhaug e1d9609
Clean up stale enterprise org in BeforeAll and add assertions to New-…
MariusStorhaug 0d7811e
Append GITHUB_RUN_ATTEMPT to org name on reruns to avoid the 90-day o…
MariusStorhaug a84ae98
Extract testNames to shared TestRepos.ps1 data file; rethrow stale or…
MariusStorhaug bec6182
Address Copilot review: retry Install-GitHubApp (threads #3179013796)…
MariusStorhaug b22c2aa
Fix unresolved review threads: proper stale org cleanup and test orde…
MariusStorhaug 916f0b0
Address review feedback: separate org prefix variables and use -Enter…
MariusStorhaug 87addee
Optimize stale-org cleanup: use deterministic lookups instead of enum…
MariusStorhaug 2fe8af3
Address review feedback: use idiomatic if (\) over .Count; reword env…
MariusStorhaug e06d31d
Fix Organizations test review findings on stale-org lookup and logging
MariusStorhaug c5551d0
Harden stale enterprise org cleanup in Organizations tests
MariusStorhaug faa656f
Clarify stale org cleanup log with checked candidate names
MariusStorhaug 299352d
Fix Environments rerun cleanup per review
MariusStorhaug 35fd9be
Fix PSAlignAssignmentStatement: align TestNames and TestNamesWithExtr…
MariusStorhaug 859838d
Refactor test repository definitions for consistency and clarity
MariusStorhaug File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Test files that require their own per-test-file repository. | ||
| # Each test file's per-context BeforeAll also calls Set-GitHubRepository as a safety net, | ||
| # so this list is an optimization rather than a hard dependency. BeforeAll.ps1 and | ||
| # AfterAll.ps1 both source this file so setup and teardown always operate on the same set. | ||
| @{ | ||
| # Test files that each need a primary repository. | ||
| TestNames = @('Environments', 'Secrets', 'Variables', 'Releases', 'Actions') | ||
|
|
||
| # Subset that also need companion -2/-3 repositories for org-scoped SelectedRepository tests. | ||
| TestNamesWithExtraRepos = @('Secrets', 'Variables') | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.